Facing issue withMass Closure of Purchase Orders
Hi All,
I am using the below mentioned in order to Finally Close a list of purchase orders in R12 system:
Begin
fnd_global.apps_initialize (user_id => 62190, resp_id => 54198, resp_appl_id => 201);
FOR po_head in c_po_details LOOP
mo_global.set_policy_context ('S', po_head.org_id);
x_returned := po_actions.close_po(
p_docid => po_head.po_header_id,
p_doctyp => po_head.document_type_code,
p_docsubtyp => po_head.document_subtype,
p_lineid => NULL,
p_shipid => NULL,
p_action => x_action,
p_reason => NULL,
p_calling_mode => x_calling_mode,
p_conc_flag => x_conc_flag