146: d_progress := 12;
147:
148: --the current org id is now derived using the get_current_org_id
149: --function because org context is not set in java
150: l_old_org_id := PO_MOAC_UTILS_PVT.get_current_org_id;
151:
152: d_progress := 13;
153: IF (PO_LOG.d_stmt) THEN
154: PO_LOG.stmt(d_module, d_progress, 'l_old_org_id', l_old_org_id);
155: PO_LOG.stmt(d_module, d_progress, 'l_doc_org_id', l_doc_org_id);
156: PO_LOG.stmt(d_module, d_progress, 'Setting org context.');
157: END IF;
158:
159: po_moac_utils_pvt.set_org_context(l_doc_org_id); --
161:
162: -- if necessary, lock the document
163:
433: -- We do not need to check for org context being
434: -- set to null as this is a valid scenario from HTML
435: -- A null org id implies multiple org context
436:
437: po_moac_utils_pvt.set_org_context(l_old_org_id); --
439: --
440:
441: p_action_ctl_rec.return_status := l_ret_sts;
471: -- the org context to document's org context
472: --
473: --IF (l_old_org_id IS NOT NULL)
474: --THEN
475: po_moac_utils_pvt.set_org_context(l_old_org_id); --
477: --
478: RETURN;
479: