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);
Hi,
ReplyDeleteI am getting API Error as ORG ID is invalid.
While Inserting Records for Resource.Kindly can u give me correct solution to resolve it.
This comment has been removed by the author.
DeleteKindly Check the Given Org_id IS Correct or Nor.CHeck the Table Name HR_OPERATING_UNITS
ReplyDelete