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
Continue with Google
or use


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
Continue with Google
or use

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.

Continue with Google
or use

Forgot Password?

Need An Account, Sign Up Here

You must login to ask a question.

Continue with Google
or use

Forgot Password?

Need An Account, Sign Up Here

Sorry, you do not have permission to add post.

Continue with Google
or use

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
Ask A Question
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Dev Tools
    • Online Compiler
    • Base64 Converter
    • Oraask XML Formatter
    • Oraask JSON Formatter
  • Wiki
    • SQL Tutorials
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials

Hassan AbdElrahman

MasterOracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
Ask Hassan AbdElrahman
1k Visits
29 Followers
0 Questions
Home/ Hassan AbdElrahman/Answers
  • About
  • Questions
  • Answers
  • Best Answers
  • Posts
  • Polls
  • Asked Questions
  • Comments
  1. 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
  2. Asked: April 30, 2017In: Oracle E-Business Suite

    What is FNDLOAD command to move Value Sets from one instance to another ?

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on May 1, 2017 at 6:35 pm
    This answer was edited.

    Hello Matheo, You can use this command to download and upload value sets : FNDLOAD to Download Valueset: $FND_TOP/bin/FNDLOAD username/password 0 Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct XX_CUSTOM_VS.ldt VALUE_SET FLEX_VALUE_SET_NAME="XX Value Set Name" FNDLOAD to Upload Valueset: $FND_TOP/Read more

    Hello Matheo,

    You can use this command to download and upload value sets :

    FNDLOAD to Download Valueset:

    $FND_TOP/bin/FNDLOAD username/password 0 Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct XX_CUSTOM_VS.ldt VALUE_SET FLEX_VALUE_SET_NAME="XX Value Set Name"

    FNDLOAD to Upload Valueset:

    $FND_TOP/bin/FNDLOAD username/password 0 Y UPLOAD $FND_TOP/patch/115/import/afffload.lct XX_CUSTOM_VS.ldt - WARNING=YES UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE
    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  3. Asked: April 8, 2017In: Oracle Forms

    Repeat same previous record or item in oracle forms ?

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on April 21, 2017 at 7:32 pm

    You can use DUPLICATE_RECORD built-in

    You can use DUPLICATE_RECORD built-in

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  4. Asked: April 8, 2017In: Oracle Reports

    How to show a message in a report at runtime?

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

    hi Albert, You can display a message in Oracle report builder by using the standard built-in srw.message. The basic syntax for using this package is: srw.message(error_no,'YOUR MESSAGE'); the error no will appear along with the message text. and here is the sample to do this in a particular functionRead more

    hi Albert,

    You can display a message in Oracle report builder by using the standard built-in srw.message.

    The basic syntax for using this package is:

    srw.message(error_no,'YOUR MESSAGE');

    the error no will appear along with the message text. and here is the sample to do this in a particular function

    FUNCTION chck_sal RETURN BOOLEAN IS
    BEGIN
      IF :sal < 0 THEN SRW.MESSAGE(
        100,
        'There is employee that take negative salary.'
      );
    RAISE SRW.PROGRAM_ABORT;
    ELSE :bonus := :sal * .01;
    END IF;
    RETURN(TRUE);
    END;
    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  5. Asked: March 26, 2017In: Oracle E-Business Suite

    How to add “Auto Refresh” feature in EBS submit request form like version 12.2.6?

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on March 27, 2017 at 10:07 am

    Hello Beter,here you will find how to implement this functionality inside 12.1.3 + versions:Click Here : Implement Auto Refresh functionality in EBS 12.1.3+

    Hello Beter,

    here you will find how to implement this functionality inside 12.1.3 + versions:

    Click Here : Implement Auto Refresh functionality in EBS 12.1.3+

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  6. Asked: March 18, 2017In: Oracle E-Business Suite

    Oracle R12 EBS not working on Firefox 52

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on March 18, 2017 at 3:59 pm

    hello albert,the problem with mozilla firefox new version 52, there is another version working good called mozilla firefox ESR.Mozilla Firefox 52 Extended Support Release (ESR) is certified as a Windows-based client browser for Oracle E-Business Suite 12.1 and 12.2.you can download your version fromRead more

    hello albert,

    the problem with mozilla firefox new version 52, there is another version working good called mozilla firefox ESR.

    Mozilla Firefox 52 Extended Support Release (ESR) is certified as a Windows-based client browser for Oracle E-Business Suite 12.1 and 12.2.

    you can download your version from this link :

    Download Now

    Note : you should download 86 bit version NOT x64.

     

    hope this will help.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  7. Asked: September 12, 2016In: Oracle Forms

    How to pass date parameter to oracle reports from oracle forms

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on September 12, 2016 at 10:10 pm

    your code looking good but let me ask you some questions : 1- is your report exists in the directory you provide it to your code ? 2- is your report compiled and working fine itself ? then please share full error message and number with when this error is throwing. thanks.

    your code looking good but let me ask you some questions :
    1- is your report exists in the directory you provide it to your code ?
    2- is your report compiled and working fine itself ?
    then please share full error message and number with when this error is throwing.
    thanks.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  8. Asked: June 24, 2016In: PL/SQL

    How to INSERT row when only doesn't exist ?

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on September 11, 2016 at 2:19 pm

    hello albert, as mr. sandeeptiwari mentioned on your question as comment you can use merge statement and here i will share with you sample example for merge and not exists with regular insert statement first we need to create dummy table to test our code on it : CREATE TABLE testtab ( id NUMBER PRIMRead more

    hello albert,
    as mr. sandeeptiwari mentioned on your question as comment you can use merge statement and here i will share with you sample example for merge and not exists with regular insert statement
    first we need to create dummy table to test our code on it :

    CREATE TABLE testtab
    (
     id NUMBER PRIMARY KEY
     ,last_name VARCHAR2 (200)
    );

    now we will using not exists clause with regular insert statement but with select like this :

    INSERT INTO testtab
      SELECT 1, 'albert'
      FROM   dual
      WHERE  NOT EXISTS
               (SELECT NULL
                FROM   testtab
                WHERE  last_name = 'albert');

    now the result would be :
    1 row created.
    then trying to execute same statement again and check the result :
    0 rows created.
    that because the row is already exists before

    now we will trying to do the same but in this time we will using merge statement :

    MERGE INTO testtab a
    USING      (SELECT 2 id, 'jonny' last_name FROM dual) b
    ON         (a.last_name = b.last_name)
    WHEN NOT MATCHED THEN
      INSERT     (id, last_name)
      VALUES     (b.id, b.last_name);

    now the result would be :
    1 row merged.
    then trying to execute same statement again and check the result :
    0 row merged.

    hope this help 🙂

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  9. Asked: July 3, 2016In: Oracle SQL

    is there oracle function to remove spaces in the string ?

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on September 11, 2016 at 12:09 am

    hi albert, try this : select replace('Oracle Forms 10G', chr(32), '') from dual; hope this help.

    hi albert,
    try this :

    select replace('Oracle Forms 10G', chr(32), '') from dual;

    hope this help.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  10. Asked: July 6, 2016In: Oracle Forms

    FRM-47001: Cannot create parameter list myparam : list with this name already exists

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on September 10, 2016 at 10:54 pm

    just you need every time to check if the parameter list exists.... If so , delete it before you try to create it. DECLARE pl_id ParamList; BEGIN pl_id := Get_Parameter_List('tempdata'); IF NOT Id_Null(pl_id) THEN Destroy_Parameter_List(pl_id); END IF; END; hope this helpfull :)

    just you need every time to check if the parameter list exists…. If so , delete it before you try to create it.

    DECLARE pl_id ParamList;
    BEGIN
    pl_id := Get_Parameter_List('tempdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List(pl_id);
    END IF;
    END;

    hope this helpfull 🙂

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
1 … 12 13 14 15 16 17

Sidebar

Adv 250x250

Explore

  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Dev Tools
    • Online Compiler
    • Base64 Converter
    • Oraask XML Formatter
    • Oraask JSON Formatter
  • 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.