Friday, June 14, 2013

INVALID ORG ID error in Oracle Apps R12 API ( while calling ASO_QUOTE_PUB.COPY_QUOTE() API)

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);

3 comments:

  1. Hi,

    I am getting API Error as ORG ID is invalid.
    While Inserting Records for Resource.Kindly can u give me correct solution to resolve it.

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
  2. Kindly Check the Given Org_id IS Correct or Nor.CHeck the Table Name HR_OPERATING_UNITS

    ReplyDelete