DBA Data[Home] [Help]

APPS.WIP_OSP dependencies on MO_GLOBAL

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

1603: SAVEPOINT s_update_po_nbd;
1604: x_return_status := fnd_api.g_ret_sts_success;
1605: -- Set OU context before calling PO API. This change is mandatory for
1606: -- MOAC change in R12.
1607: mo_global.set_policy_context('S',p_ou_id);
1608: -- Update PO need by date and promise date
1609: IF(p_po_req_type IN('STANDARD', 'BLANKET')) THEN
1610: IF(p_approval_status IS NULL OR -- INCOMPLETE
1611: p_approval_status IN('INCOMPLETE',

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

2109: -- Update PO quantity
2110: FOR l_update_po_qty IN c_update_po_qty LOOP
2111: -- Set OU context before calling PO API. This change is
2112: -- mandatory for MOAC change in R12.
2113: mo_global.set_policy_context('S',l_update_po_qty.ou_id);
2114: IF (l_update_po_qty.po_req_type IN ('STANDARD', 'BLANKET')) THEN
2115: IF (l_update_po_qty.approval_status IS NULL OR -- INCOMPLETE
2116: l_update_po_qty.approval_status IN ('INCOMPLETE',
2117: 'APPROVED',

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

2381: FOR l_po_req IN c_po_req LOOP
2382: BEGIN
2383: -- Set OU context before calling PO API. This change is
2384: -- mandatory for MOAC change in R12.
2385: mo_global.set_policy_context('S',l_po_req.ou_id);
2386: IF (l_po_req.po_req_type IN ('STANDARD', 'BLANKET'))THEN
2387: -- Call PO API to cancel PO/release. If unable to cancel PO/release
2388: -- for any reason,skip the error one and try to cancel the next one.
2389: