Incomplete An Invoice
Incomplete An Invoice
DECLARE
l_customer_trx_id NUMBER := 347006177;
o_return_status VARCHAR2 (1);
o_msg_count NUMBER;
o_msg_data VARCHAR2 (2000);
l_err_msg VARCHAR2 (1000);
l_msg_index_out NUMBER;
v_user NUMBER := 0;
v_res VARCHAR2 (4000) := NULL;
v_app VARCHAR2 (4000) := NULL;
BEGIN
----------------------------------------------------------------------
---- Setting the org context for the particular session
apps.mo_global.set_policy_context ('S', 128);
---- Setting the oracle applications context for the particular session
apps.fnd_global.apps_initialize (v_user, v_res, v_app);
----------------------------------------------------------------------
arp_trx_util.lock_transaction(l_customer_trx_id);
dbms_output.put_line ('********************************');
IF o_return_status = fnd_api.g_ret_sts_error
OR o_return_status = fnd_api.g_ret_sts_unexp_error THEN
dbms_output.put_line ('O_RETURN_STATUS = ' || o_return_status);
dbms_output.put_line ('O_MSG_COUNT = ' || o_msg_count);
dbms_output.put_line ('********************************');
EXCEPTION
WHEN OTHERS THEN
l_err_msg := substr (sqlerrm, 0, 1000);
dbms_output.put_line ('***************************');
dbms_output.put_line ('There is an exception has been raised from API with the
following error message: ' || l_err_msg);
dbms_output.put_line ('***************************');
END;
/