Sign Up

Sign Up to our social questions and Answers to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In


Have an account? Sign In Now

Sign In

Login to our social questions & Answers to ask questions, answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Sorry, you do not have permission to add post.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Oraask Logo Oraask Logo
Sign InSign Up

Oraask

  • Write
    • Add A New Post
    • Ask A Question

Oraask Navigation

Search
Ask A Question

Mobile menu

Close
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Dev Tools
    • Online Compiler
    • Base64 Converter
  • Wiki
    • SQL Tutorials
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials

Oracle Ebs Api’s

Oracle Ebs Api’s

Share
  • Facebook
0 Followers
14 Answers
12 Questions
Home/Oracle E-Business Suite/Oracle Ebs Api’s
  • Recent Questions
  • Answers
  • No Answers
  1. Asked: March 21, 2023In: Oracle Ebs Api’s

    API to close workflow notifications in Oracle APPS R12

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on March 21, 2023 at 11:57 pm

    You can use the following script to close a workflow notification from the backend using API: ------------------------------------------ -- Description: API to close Workflow Notification in oracle EBS R12 -- nid - Notification Id -- resp - Respond Required? 0 - No, 1 - Yes -- responder - User or roRead more

    You can use the following script to close a workflow notification from the backend using API:

    
    ------------------------------------------
    -- Description: API to close Workflow Notification in oracle EBS R12
    --   nid - Notification Id
    --   resp - Respond Required?  0 - No, 1 - Yes
    --   responder - User or role close this notification
    -- Created By: Hassan @ Oraask.com
    -- Creation Date: 21-MAR-2023
    ------------------------------------------
    
    DECLARE
    L_RESPONDER FND_USER.USER_NAME%TYPE := 'SYYADMIN';
    
    CURSOR NOTIFICATIONS_CUR
    IS
    --
    --Modify the below query as per your requirement
    --
    SELECT ITEM_KEY, NOTIFICATION_ID, RECIPIENT_ROLE
    FROM WF_NOTIFICATIONS
    WHERE MESSAGE_TYPE LIKE '%HRSSA%'
    AND STATUS = 'OPEN'
    AND NOTIFICATION_ID = NVL ( :P_NOTIFICATION_ID, NOTIFICATION_ID);
    BEGIN
    --
    FOR NOTIFICATIONS_REC IN NOTIFICATIONS_CUR
    LOOP
    BEGIN
    --
    WF_NOTIFICATION.CLOSE (NID => NOTIFICATIONS_REC.NOTIFICATION_ID, RESPONDER => L_RESPONDER);
    
    DBMS_OUTPUT.PUT_LINE ('Closing Notification ID: ' || NOTIFICATIONS_REC.NOTIFICATION_ID);
    --
    END;
    END LOOP;
    
    --
    COMMIT;
    --
    END;
    
    

    In the above example we created a cursor that fetchs the open notifications in HRMS which is HRSSA workflow item type and we have used the NOTIFICATION_ID if we need to close specific notification. We have used WF_NOTIFICATION standard package to achieve our goal.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  2. Asked: August 1, 2022In: Oracle Ebs Api’s

    INV_ITEM_CATEGORY_PUB.update_category_assignment API returned status ‘E’ but without error message

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on August 2, 2022 at 12:07 pm

    Sometimes this due to Item Categories Key flexfields needs to be recompiled. So, follow this steps to recompile Item Categories KFF: Go to System Administrator > Application > Flexfield > Key > Segments Query for: Flexfield - Item Categories Query or Select your KFF Structure Uncheck theRead more

    Sometimes this due to Item Categories Key flexfields needs to be recompiled.

    So, follow this steps to recompile Item Categories KFF:

    1. Go to System Administrator > Application > Flexfield > Key > Segments
    2. Query for:
      Flexfield – Item Categories
    3. Query or Select your KFF Structure
    4. Uncheck the option “Freeze Flexfield Definition” if it’s checked and then save (ctrl+s)
    5. Recheck the option “Freeze Flexfield Definition” and then save (ctrl+s)
    6. System throws a message that the flex-field is being recompiled.

    Now retest the API again.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  3. Asked: April 29, 2022In: Oracle Ebs Api’s

    Payables Import Invoices

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on April 29, 2022 at 10:45 pm
    This answer was edited.

    Unfortunately, you can't achieve this kind of requirement without create a distribution set as per Oracle note Doc ID 1954890.1 Also currently there is no an API or interface table available to create a new distribution set from the backend. The only way is to create a temporary distribution set andRead more

    Unfortunately, you can’t achieve this kind of requirement without create a distribution set as per Oracle note Doc ID 1954890.1

    Also currently there is no an API or interface table available to create a new distribution set from the backend. The only way is to create a temporary distribution set and delete it’s account distributions once you have done from your task.

    If you go with creating distribution set you have to pass either distribution_set_id or distribution_set_name while populating “ap_invoice_lines_interface” interface table.

    check: Create AP Invoice using AP open interface in oracle apps R12 for your reference.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  4. Asked: February 17, 2021In: Oracle Ebs Api’s

    API to update AR invoice in oracle apps R12?

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on February 18, 2021 at 6:51 pm

    Hello @matheo, Unfortunately this functionality doesn't exist until now. There is no Public API available from Oracle to update AR invoice. And regarding the API you mentioned in your question it's not the correct API, and please don't use it because basically it's not public and official released fRead more

    Hello matheo,

    Unfortunately this functionality doesn’t exist until now. There is no Public API available from Oracle to update AR invoice.

    And regarding the API you mentioned in your question it’s not the correct API, and please don’t use it because basically it’s not public and official released from oracle as per this Doc ID 1388129.1.

    The only way for now to update AR transaction is to perform this action from application specifically from  transaction workbench.

    Hope That will help you.

    Best Regards.

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  5. Asked: January 29, 2021In: Oracle Ebs Api’s

    How to Cancel payable invoice using API in oracle apps?

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on January 30, 2021 at 12:00 am

    Hi @Sanjeeb Sorry to till you that canceling invoice using API ( AP_CANCEL_PKG.AP_CANCEL_SINGLE_INVOICE) is not supported from oracle as per this note Doc ID 1568115.1 You can only use the Invoice Workbench (Or the Payment Workbench) to cancel the invoice. It is not supported to cancel the Invoice uRead more

    Hi Sanjeeb

    Sorry to till you that canceling invoice using API ( AP_CANCEL_PKG.AP_CANCEL_SINGLE_INVOICE) is not supported from oracle as per this note Doc ID 1568115.1

    You can only use the Invoice Workbench (Or the Payment Workbench) to cancel the invoice.
    It is not supported to cancel the Invoice using ap_cancel_pkg.Ap_Cancel_Single_Invoice API and hence even accounting through API is also not supported.

    Note: above API is published on the internet on different blogs, but it’s not supported.

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  6. Asked: July 15, 2019In: Oracle Ebs Api’s

    When creating a Work Request via the APIs am I able to set the CREATED_BY?

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on August 2, 2019 at 10:05 pm

    by default who columns as (CREATED_BY) is one of them is handled automatically from oracle by database triggers like HRMS and when you call any API's from sql*plus or sql developer. who columns are set also automatically by anonymous user. but still you can control of this behavior by calling fnd_glRead more

    by default who columns as (CREATED_BY) is one of them is handled automatically from oracle by database triggers like HRMS and when you call any API’s from sql*plus or sql developer. who columns are set also automatically by anonymous user.

    but still you can control of this behavior by calling

    fnd_global.apps_initialize

    before call your API. but keep in mind that it is your responsibility to pass in valid values, as incorrect values are not rejected.

    Regards.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  7. Asked: January 12, 2018In: Oracle Ebs Api’s

    It’s possible to call an oracle API from custom schema ?

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on August 2, 2019 at 9:53 pm

    it's better and recommended from oracle to create your procedure on apps schema not on your custom schema. regards.

    it’s better and recommended from oracle to create your procedure on apps schema not on your custom schema.

    regards.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  8. Asked: February 16, 2019In: Oracle Ebs Api’s

    Why fnd_global.conc_request_id returns -1 ?

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on February 16, 2019 at 8:01 pm

    hello Alan The problem is that your request is not being submitted properly then it will be whatever fnd_global returns, which is most likely -1.

    hello Alan

    The problem is that your request is not being submitted properly then it will be whatever fnd_global returns, which is most likely -1.

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  9. Asked: October 8, 2018In: Oracle Ebs Api’s

    How to SKIP or RETRY an oracle workflow by API from database ?

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on February 16, 2019 at 7:39 am
    This answer was edited.

    Hi Saly, this script to RETRY workflow from the backend BEGIN wf_engine.handleerror ( itemtype => ‘APINVAPR’, itemkey => 5211111_1, activity => ‘ESCALATE_DOC_APPROVAL’, command => ‘RETRY’, RESULT => NULL ); COMMIT; END; and here you can find the script for the SKIP workflow BEGIN wf_eRead more

    Hi Saly,

    this script to RETRY workflow from the backend

    BEGIN
    wf_engine.handleerror
    (
    itemtype => ‘APINVAPR’,
    itemkey => 5211111_1,
    activity => ‘ESCALATE_DOC_APPROVAL’,
    command => ‘RETRY’,
    RESULT => NULL
    );
    COMMIT;
    END;

    and here you can find the script for the SKIP workflow

    BEGIN
    wf_engine.handleerror
    (
    itemtype => ‘APINVAPR’,
    itemkey => 5211111_2,
    activity => ‘ESCALATE_DOC_APPROVAL’,
    command => ‘SKIP’,
    RESULT => NULL
    );
    COMMIT;
    END;

    Note :

    itemtype: this is the item type of the workflow

    itemkey: this is a unique key you give to workflow

    activity: is the point for the activity internal name which you need to retry or skip.

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  10. Asked: March 24, 2017In: Oracle Ebs Api’s

    API to create and update Inventory Items in Oracle Apps R12

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on July 11, 2017 at 10:25 am
    This answer was edited.

    Hello @Jone,   you can create or update inventory item by using API (ego_item_pub.process_item) and this an example :   Note : before using both API's be aware that we are not committing the changes. You have to perform explicit commit manually from IDE or set parameter (p_commit = 'T') to commit yoRead more

    Hello Jone,   you can create or update inventory item by using API (ego_item_pub.process_item) and this an example :  

    Note : before using both API’s be aware that we are not committing the changes. You have to perform explicit commit manually from IDE or set parameter (p_commit = ‘T’) to commit your changes.

    1. Create new inventory item using this API example:
    DECLARE
      l_inventory_item_id   NUMBER;
      l_organization_id     NUMBER;
      l_return_status       VARCHAR2 (4000);
      l_msg_data            VARCHAR2 (4000);
      l_msg_count           NUMBER;
      x_message_list        error_handler.error_tbl_type;
    BEGIN
      fnd_global.apps_initialize (user_id => 1318, --> OPERATIONS
                                  resp_id => 50583, --> Inventory, Vision Operations (USA)
                                  resp_appl_id => 401); --> Inventory
    
      ego_item_pub.process_item (p_api_version                  => 1.0
                                ,p_init_msg_list                => 'T' -- (F:- False), (T:- True)
                                ,p_commit                       => 'F' -- (F:- False), (T:- True)
                                ,p_transaction_type             => 'CREATE' -- UPDATE FOR Updating item
                                ,p_segment1                     => 'Oraask_Item01' -- ITEM CODE
                                ,p_description                  => 'Oraask Test Item Description' -- ITEM DESCRIPTION
                                ,p_long_description             => 'Oraask Test Long Item Description' -- ITEM LONG DESCRIPTION
                                ,p_organization_id              => 204 -- Vision Operations
                                ,p_apply_template               => 'ALL'
                                ,p_template_id                  => 2 -- Purchased Item — select * from mtl_item_templates_vl
                                -- P_TEMPLATE_NAME => '@Purchased Item',
                                -- P_ITEM_TYPE => 'P',
                                ,p_inventory_item_status_code   => 'Active'
                                ,p_approval_status              => 'A'
                                ,x_inventory_item_id            => l_inventory_item_id
                                ,x_organization_id              => l_organization_id
                                ,x_return_status                => l_return_status
                                ,x_msg_count                    => l_msg_count
                                ,x_msg_data                     => l_msg_data);
    
      IF l_return_status = fnd_api.g_ret_sts_success THEN
        dbms_output.put_line ('Item is Created Successfully, Inventory Item ID : ' || l_inventory_item_id);
    
      ELSE
        dbms_output.put_line ('Item Creation is Failed');
        error_handler.get_message_list (x_message_list => x_message_list);
    
        FOR i IN 1 .. x_message_list.count
        LOOP
          dbms_output.put_line (x_message_list (i).message_text);
        END LOOP;
    
        ROLLBACK;
      END IF;
    --> EXCEPTIONS HANDLING PART
    EXCEPTION
      WHEN OTHERS THEN
        FOR i IN 1 .. l_msg_count
        LOOP
          dbms_output.put_line (substr (fnd_msg_pub.get (p_encoded => fnd_api.g_false), 1, 255));
          dbms_output.put_line ('message is: ' || l_msg_data);
        END LOOP;
    END;

     

    • Update existing inventory item using this API example:
    DECLARE
      l_inventory_item_id   NUMBER;
      l_organization_id     NUMBER;
      l_return_status       VARCHAR2 (4000);
      l_msg_data            VARCHAR2 (4000);
      l_msg_count           NUMBER;
      x_message_list        error_handler.error_tbl_type;
    BEGIN
      fnd_global.apps_initialize (user_id => 1318, --> OPERATIONS
                                  resp_id => 50583, --> Inventory, Vision Operations (USA)
                                  resp_appl_id => 401); --> Inventory
     
      ego_item_pub.process_item (p_api_version                  => 1.0
                                ,p_init_msg_list                => 'T' -- (F:- False), (T:- True)
                                ,p_commit                       => 'F' -- (F:- False), (T:- True)
                                ,p_transaction_type             => 'UPDATE' -- UPDATE FOR Updating item
                                ,p_Inventory_Item_Id            => 53899
                                ,p_description                  => 'Oraask test description' -- ITEM DESCRIPTION
                                ,p_organization_id              => 204 -- Vision Operations
                                ,x_inventory_item_id            => l_inventory_item_id
                                ,x_organization_id              => l_organization_id
                                ,x_return_status                => l_return_status
                                ,x_msg_count                    => l_msg_count
                                ,x_msg_data                     => l_msg_data);
     
      IF l_return_status = fnd_api.g_ret_sts_success THEN
        dbms_output.put_line ('Inventory Item has been updated Successfully, Inventory Item ID : ' || l_inventory_item_id);
    
      ELSE
        dbms_output.put_line ('Update inventory item is Failed');
        error_handler.get_message_list (x_message_list => x_message_list);
     
        FOR i IN 1 .. x_message_list.count
        LOOP
          dbms_output.put_line (x_message_list (i).message_text);
        END LOOP;
     
        ROLLBACK;
      END IF;
    --> EXCEPTIONS HANDLING PART
    EXCEPTION
      WHEN OTHERS THEN
        FOR i IN 1 .. l_msg_count
        LOOP
          dbms_output.put_line (substr (fnd_msg_pub.get (p_encoded => fnd_api.g_false), 1, 255));
          dbms_output.put_line ('message is: ' || l_msg_data);
        END LOOP;
    END;
    

    — By executing above code we have updated item description to be “Oraask test description” for inventory item id “53899”

    Hopefully, this code snippet helps you 🙂

    See less
      • 7
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp

Sidebar

Adv 250x250

Explore

  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Dev Tools
    • Online Compiler
    • Base64 Converter
  • Wiki
    • SQL Tutorials
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials

Footer

Oraask

About

Oraask is a website for developers and software engineers who want to learn new skills, share their knowledge, and solve their coding problems. Oraask provides free content on various programming languages and topics, such as Oracle, Python, Java, etc. Oraask also allows users to ask questions and get answers from other members of the community.

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy
  • Terms & Conditions

Follow

Oraask is licensed under CC BY-NC-SA 4.0Oraask CopyrightOraask CopyrightOraask CopyrightOraask Copyright

© 2019 Oraask. All Rights Reserved
With Love by Oraask.