Hi,
If you are getting error as Invalid ORG Id error in Oracle Apps R12 while calling the seeded API means you need to follow the below steps.
Do the following before calling the API in R12
begin
mo_global.init('<Module>');
mo_global.set_policy_context('<S/M>',<org_id>); -- S for single Operating Unit and M for multiple Operating Unit
-- Call the Ar_receipt_api_pub.Create_cash API
END;
Also some of the public or Private API requires the Apps Initilization.
fnd_global.APPS_INITIALIZE (l_user_id, l_responsibility_id, l_appllication_id);
Example: mo_global.set_policy_context('S',FND_GLOBAL.ORG_ID);
If you are getting error as Invalid ORG Id error in Oracle Apps R12 while calling the seeded API means you need to follow the below steps.
Do the following before calling the API in R12
begin
mo_global.init('<Module>');
mo_global.set_policy_context('<S/M>',<org_id>); -- S for single Operating Unit and M for multiple Operating Unit
-- Call the Ar_receipt_api_pub.Create_cash API
END;
Also some of the public or Private API requires the Apps Initilization.
fnd_global.APPS_INITIALIZE (l_user_id, l_responsibility_id, l_appllication_id);
Example: mo_global.set_policy_context('S',FND_GLOBAL.ORG_ID);