DBA Data[Home] [Help]

APPS.WIP_OSP dependencies on MO_GLOBAL

Line 1700: mo_global.set_policy_context('S',p_ou_id);

1696: SAVEPOINT s_update_po_nbd;
1697: x_return_status := fnd_api.g_ret_sts_success;
1698: -- Set OU context before calling PO API. This change is mandatory for
1699: -- MOAC change in R12.
1700: mo_global.set_policy_context('S',p_ou_id);
1701: -- Update PO need by date and promise date
1702: IF(p_po_req_type IN('STANDARD', 'BLANKET')) THEN
1703: IF(p_approval_status IS NULL OR -- INCOMPLETE
1704: p_approval_status IN('INCOMPLETE',

Line 2239: mo_global.set_policy_context('S',l_update_po_qty.ou_id);

2235: -- Update PO quantity
2236: FOR l_update_po_qty IN c_update_po_qty LOOP
2237: -- Set OU context before calling PO API. This change is
2238: -- mandatory for MOAC change in R12.
2239: mo_global.set_policy_context('S',l_update_po_qty.ou_id);
2240: IF (l_update_po_qty.po_req_type IN ('STANDARD', 'BLANKET')) THEN
2241: IF (l_update_po_qty.approval_status IS NULL OR -- INCOMPLETE
2242: l_update_po_qty.approval_status IN ('INCOMPLETE',
2243: 'APPROVED',

Line 2546: mo_global.set_policy_context('S',l_po_req.ou_id);

2542: FOR l_po_req IN c_po_req LOOP
2543: BEGIN
2544: -- Set OU context before calling PO API. This change is
2545: -- mandatory for MOAC change in R12.
2546: mo_global.set_policy_context('S',l_po_req.ou_id);
2547: IF (l_po_req.po_req_type IN ('STANDARD', 'BLANKET'))THEN
2548: -- Call PO API to cancel PO/release. If unable to cancel PO/release
2549: -- for any reason,skip the error one and try to cancel the next one.
2550: