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

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

Walaa Mohamed

Junior
Ask Walaa Mohamed
47 Visits
3 Followers
0 Questions
Home/ Walaa Mohamed/Followers Answers
  • About
  • Questions
  • Answers
  • Best Answers
  • Posts
  • Polls
  • Asked Questions
  • Followed
  • Favorites
  • Comments
  • Followers Questions
  • Followers Answers
  • Followers Posts
  • Followers Comments
  1. Asked: May 18, 2025In: Oracle Fusion Queries

    Query to Get Oracle Fusion Users and their Attached Roles

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on May 18, 2025 at 9:26 am

    Here's a sample SQL query that you can use to retrieve a list of users and their attached roles in Oracle Fusion: /* For Oraask.com */ SELECT pu.user_id ,pu.username ,ppnf.full_name ,prdt.role_id ,prdt.role_name ,prd.role_common_name ,prdt.description ,TO_CHAR (pur.start_date, 'DD-MON-YYYY') role_stRead more

    Here’s a sample SQL query that you can use to retrieve a list of users and their attached roles in Oracle Fusion:

    /* For Oraask.com */
    SELECT pu.user_id
    ,pu.username
    ,ppnf.full_name
    ,prdt.role_id
    ,prdt.role_name
    ,prd.role_common_name
    ,prdt.description
    ,TO_CHAR (pur.start_date, 'DD-MON-YYYY') role_start_date
    ,TO_CHAR (pur.end_date, 'DD-MON-YYYY') role_end_date
    ,prd.abstract_role
    ,prd.job_role
    ,prd.data_role
    ,prd.duty_role
    ,prd.active_flag
    FROM per_user_roles pur
    ,per_users pu
    ,per_roles_dn_tl prdt
    ,per_roles_dn prd
    ,per_person_names_f ppnf
    WHERE 1 = 1
    AND pu.user_id = pur.user_id
    AND prdt.role_id = pur.role_id
    AND prdt.language = USERENV ('lang')
    AND prdt.role_id = prd.role_id
    AND NVL (pu.suspended, 'N') = 'N'
    AND ppnf.person_id = pu.person_id
    AND ppnf.name_type = 'GLOBAL'
    AND pu.active_flag = 'Y'
    AND NVL (pu.start_date, SYSDATE) <= SYSDATE
    AND NVL (pu.end_date, SYSDATE) >= SYSDATE
    AND pu.username = :p_username
    ORDER BY pu.username, prdt.role_name

    You can adjust the query based on your specific requirements. If you need further customization or have any questions, let me know!

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  2. Asked: April 27, 2025In: Oracle Fusion ERP

    What is the Impact if we change the username in Oracle Fusion

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on April 27, 2025 at 2:03 pm

    Changing usernames can have several significant impacts: Pending Approval Transactions: Users will lose all pending approval transactions from their worklist and will be unable to approve them. Approval History: The history of approval transactions will be lost. Delegation and Vacation Rules: TheseRead more

    Changing usernames can have several significant impacts:

    • Pending Approval Transactions: Users will lose all pending approval transactions from their worklist and will be unable to approve them.
    • Approval History: The history of approval transactions will be lost.
    • Delegation and Vacation Rules: These rules will also be lost.
    • Scheduled Processes: All scheduled processes submitted under the old username will remain associated with the old username. These may fail, so it’s advisable to cancel the old schedules and reschedule them with the new user IDs.
    • Favorites: All items saved in favorites will be lost.
    • WHO columns: For existing transactions, the “created by” and “last updated by” fields will retain the old username. For new transactions, these fields will reflect the updated username.

    Note: The recommended approach is to deactivate the old username and create a new one.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  3. Asked: March 21, 2025In: Oracle Fusion ERP

    How to use AND , OR in IF() function of " add element by expression" in data model

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on April 20, 2025 at 1:42 pm
    This answer was edited.

    You can use && for AND, || for OR. examples: IF (P_ORG_ID==1 && P_CUSTOMER_ID==2, 'yes','no') IF (P_ORG_ID==1 || P_CUSTOMER_ID==2, 'yes','no')

    You can use && for AND, || for OR.

    examples:

    
    IF (P_ORG_ID==1 && P_CUSTOMER_ID==2, 'yes','no')
    
    IF (P_ORG_ID==1 || P_CUSTOMER_ID==2, 'yes','no')
    
    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  4. Asked: June 3, 2023In: Oracle Fusion Queries, Oracle Fusion SCM

    What is Inventory Item Table in Oracle Fusion

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on June 3, 2023 at 11:28 pm
    This answer was edited.

    The table containing inventory item details in Oracle Fusion is "EGP_SYSTEM_ITEMS_B". It has one composite primary key (INVENTORY_ITEM_ID, ORGANIZATION_ID). and here you can find a sample query to get the most used information about items in Oracle Fusion: Query Inventory Item in Oracle Fusion SELECRead more

    The table containing inventory item details in Oracle Fusion is “EGP_SYSTEM_ITEMS_B“. It has one composite primary key (INVENTORY_ITEM_ID, ORGANIZATION_ID). and here you can find a sample query to get the most used information about items in Oracle Fusion:

    Query Inventory Item in Oracle Fusion

    SELECT ITEM_NUMBER
    ,INVENTORY_ITEM_ID
    ,FULL_LEAD_TIME
    ,PLANNER_CODE
    ,DECODE (MRP_PLANNING_CODE, 3, 'MRP Planned', 4, 'MPS Planned', 6, 'Not Planned', 7, 'MRP/MPP Planned', 8, 'MPS/MPP Planned', 9, 'MPP Planned', NULL)
    MRP_PLANNING_CODE
    ,INVENTORY_ITEM_STATUS_CODE
    ,MINIMUM_ORDER_QUANTITY
    ,MAXIMUM_ORDER_QUANTITY
    ,FIXED_ORDER_QUANTITY
    ,FIXED_LOT_MULTIPLIER
    ,DECODE (INVENTORY_PLANNING_CODE, 6, 'Not Planned', 2, 'Min-Max', 1, 'Reorder Point', 7, 'Vendor Managed') INVENTORY_PLANNING_CODE
    ,MIN_MINMAX_QUANTITY
    ,MAX_MINMAX_QUANTITY
    ,MTL_TRANSACTIONS_ENABLED_FLAG
    ,CUSTOMER_ORDER_ENABLED_FLAG
    ,SO_TRANSACTIONS_FLAG
    ,PRIMARY_UOM_CODE
    ,UNIT_LENGTH
    ,UNIT_WIDTH
    ,UNIT_HEIGHT
    ,UNIT_WEIGHT
    ,CREATED_BY
    ,CREATION_DATE
    ,LAST_UPDATED_BY
    ,LAST_UPDATE_DATE
    FROM EGP_SYSTEM_ITEMS_B
    WHERE ORGANIZATION_ID = NVL(:INV_ORG_ID,ORGANIZATION_ID);

    In the above query, we have one parameter, “:P_INV_ORG_ID” to get the item information in a specific inventory organization.

    You can refer to the Oracle doc to know all columns in this table.

    Hope this help.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  5. Asked: April 2, 2023In: Oracle EBS Queries

    How to Initialize Oracle APPS session using SQL Developer

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on April 3, 2023 at 12:50 am
    This answer was edited.

    You can use this script to initialize a session in SQL Developer and to be able to select from multi-org views in Oracle EBS R12 DECLARE l_user_id NUMBER; l_resp_id NUMBER; l_app_id NUMBER; l_org_id NUMBER; l_err_num VARCHAR2(1000); l_err_msg VARCHAR2(1000); BEGIN SELECT user_id INTO l_user_id FROMRead more

    You can use this script to initialize a session in SQL Developer and to be able to select from multi-org views in Oracle EBS R12

    DECLARE
        l_user_id NUMBER;
        l_resp_id NUMBER;
        l_app_id NUMBER;
        l_org_id NUMBER;
        l_err_num VARCHAR2(1000);
        l_err_msg VARCHAR2(1000);
    
    BEGIN
    
        SELECT user_id
        INTO l_user_id
        FROM fnd_user
        WHERE user_name = 'OPERATIONS';
    
        SELECT responsibility_id, application_id
        INTO l_resp_id,l_app_id
        FROM fnd_responsibility
        WHERE responsibility_key = 'PAYABLES_MANAGER';
    
        BEGIN
    
            fnd_global.apps_initialize(l_user_id,l_resp_id,l_app_id);
    
            fnd_global.set_nls_context(p_nls_language => 'AMERICAN'
                                      ,p_nls_date_format => NULL
                                      ,p_nls_date_language => NULL
                                      ,p_nls_numeric_characters => NULL
                                      ,p_nls_sort => NULL
                                      ,p_nls_territory => NULL);
    
            fnd_profile.get(name => 'DEFAULT_ORG_ID',val => l_org_id);
            mo_global.set_policy_context(p_access_mode => 'S',p_org_id => l_org_id);
            mo_global.init(p_appl_short_name => 'SQLAP');
    
        EXCEPTION WHEN OTHERS THEN
            l_err_num := sqlcode;
            l_err_msg := substr(sqlerrm,1,1000);
            raise_application_error(l_err_num,l_err_msg);
        END;
    END;
    
    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  6. 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 ♠ | 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
  7. Asked: February 21, 2023In: Oracle EBS Queries

    Query to Get Supplier Details in Oracle APPS R12

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on February 22, 2023 at 12:03 am
    This answer was edited.

    Hi @Beter, Please find below a query to get the master supplier informations: SELECT HOU.NAME OU_NAME ,APPS.ORG_ID ,APS.SEGMENT1 SUPPLIER_NUMBER ,APS.VENDOR_TYPE_LOOKUP_CODE SUPPLIER_TYPE ,APS.VENDOR_NAME SUPPLIER_NAME ,APS.VENDOR_NAME_ALT SUPPLIER_NAME_ALT ,APS.NUM_1099 TAXPAYER_ID ,APS.VAT_REGISTRRead more

    Hi Beter, Please find below a query to get the master supplier informations:

    SELECT HOU.NAME OU_NAME
    ,APPS.ORG_ID
    ,APS.SEGMENT1 SUPPLIER_NUMBER
    ,APS.VENDOR_TYPE_LOOKUP_CODE SUPPLIER_TYPE
    ,APS.VENDOR_NAME SUPPLIER_NAME
    ,APS.VENDOR_NAME_ALT SUPPLIER_NAME_ALT
    ,APS.NUM_1099 TAXPAYER_ID
    ,APS.VAT_REGISTRATION_NUM TAX_REGISTRATION_NUM
    ,APS.ALLOW_AWT_FLAG SUPPLIER_ALLOW_WITHHOLDING_TAX
    ,DECODE (APS.END_DATE_ACTIVE, NULL, 'ACTIVE', 'IN ACTIVE') ACTIVE_CODE
    ,APPS.VENDOR_SITE_ID
    ,APPS.INACTIVE_DATE
    ,APPS.VENDOR_SITE_CODE SUPPLIER_SITE_CODE
    ,APPS.VENDOR_SITE_CODE_ALT SITE_CODE_ALT
    ,APPS.ALLOW_AWT_FLAG SITE_ALLOW_WITHHOLDING_TAX
    ,APPS.ADDRESS_LINE1
    ,APPS.ADDRESS_LINE2
    ,APPS.ADDRESS_LINE3
    ,APPS.ADDRESS_LINE4
    ,APPS.CITY
    ,APPS.STATE
    ,APPS.ZIP POST_CODE
    ,APPS.SUPPLIER_NOTIF_METHOD SITE_PO_NOTIF_METHOD
    ,APPS.EMAIL_ADDRESS SITE_PO_EMAIL
    ,APS.PAY_GROUP_LOOKUP_CODE
    FROM AP_SUPPLIERS APS, AP_SUPPLIER_SITES_ALL APPS, HR_OPERATING_UNITS HOU
    WHERE APS.VENDOR_ID = APPS.VENDOR_ID(+)
    AND APS.END_DATE_ACTIVE IS NULL
    AND APPS.INACTIVE_DATE IS NULL
    AND HOU.ORGANIZATION_ID(+) = APPS.ORG_ID;

    Above query will list all suppliers details: OU_NAME, ORG_ID, SUPPLIER_NUMBER, SUPPLIER_TYPE, SUPPLIER_NAME, SUPPLIER_NAME_ALT, TAXPAYER_ID, TAX_REGISTRATION_NUM, SUPPLIER_ALLOW_WITHHOLDING_TAX, ACTIVE_CODE, VENDOR_SITE_ID, INACTIVE_DATE, SUPPLIER_SITE_CODE, SITE_CODE_ALT, SITE_ALLOW_WITHHOLDING_TAX, ADDRESS_LINE1, ADDRESS_LINE2, ADDRESS_LINE3, ADDRESS_LINE4 ,CITY, STATE, POST_CODE, SITE_PO_NOTIF_METHOD, and SITE_PO_EMAIL. And the list is open to add any other column/s you prefer. Note: If you are looking also about other details for the supplier you can find them in the list below:

    • Supplier Bank Details Query

     

    Hope this helps.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  8. Asked: January 23, 2023In: Oracle Database

    How to Find Queries Running For More than 5 Minutes

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on January 28, 2023 at 3:09 am

    To find the queries running for more than 5 or x of minutes you can try the below query and change the seconds parameter as per your need: Query: SELECT S.USERNAME ,Q.SQL_ID ,ROUND (S.LAST_CALL_ET, 2) TIME_IN_SECONDS ,ROUND (S.LAST_CALL_ET / 60, 2) TIME_IN_MINS ,S.SID ,Q.SQL_TEXT FROM GV$SESSION S,Read more

    To find the queries running for more than 5 or x of minutes you can try the below query and change the seconds parameter as per your need:

    Query:

    SELECT S.USERNAME
    ,Q.SQL_ID
    ,ROUND (S.LAST_CALL_ET, 2) TIME_IN_SECONDS
    ,ROUND (S.LAST_CALL_ET / 60, 2) TIME_IN_MINS
    ,S.SID
    ,Q.SQL_TEXT
    FROM GV$SESSION S, V$SQL Q
    WHERE S.SQL_ID = Q.SQL_ID
    AND STATUS = 'ACTIVE'
    AND USERNAME LIKE '%APPS%'
    AND S.LAST_CALL_ET > 300;

    Output:

    USERNAME SQL_ID TIME_IN_SECONDS TIME_IN_MINS
    —————————— ————- ————— ————
    SID
    ———-
    SQL_TEXT
    ——————————————————————————–
    APPS 497wh6n7hu14f 10562436 176040.6
    331
    BEGIN FND_CP_GSM_IPC.Get_Message(:1,:2,:3,:4,:5,:6,:7,:8,:9,:10); END;

    1 row selected.

    Note: 300 is (5*60). change it as you want to.

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  9. Asked: January 25, 2023In: Oracle EBS Queries

    Query to get posted AP invoice in Oracle APPS R12

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on January 27, 2023 at 9:53 pm

    There is a seeded standard function provided from oracle to identify whether the invoice is posted or not. Which is (AP_INVOICES_PKG.GET_POSTING_STATUS) . This function take the invoice_id parameter and return one of four values: 'Y' - Posted 'N' - Unposted 'S' - Selected 'P' - Partially Posted ThesRead more

    There is a seeded standard function provided from oracle to identify whether the invoice is posted or not. Which is (AP_INVOICES_PKG.GET_POSTING_STATUS) .

    This function take the invoice_id parameter and return one of four values:

    ‘Y’ – Posted
    ‘N’ – Unposted
    ‘S’ – Selected
    ‘P’ – Partially Posted

    These values is the invoice posting status flag.

    Example:

    SELECT AIA.INVOICE_NUM, AP_INVOICES_PKG.GET_POSTING_STATUS (AIA.INVOICE_ID) INVOICE_POSTING_FLAG
    FROM AP_INVOICES_ALL AIA;
    

    Output:

    INVOICE_NUM
    ————————————————–
    INVOICE_POSTING_FLAG
    ——————————————————————————–
    ERS-9163-109073
    Y

    19879-781
    N

    ERS-4400-109091
    Y

    ERS-9164-109093
    P

    ERS-6970-109094
    Y

    ERS-6971-109095
    Y

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  10. Asked: November 24, 2022In: Oracle Database

    Directory Object vs BLOB

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on January 23, 2023 at 12:16 am

    It depends on the number and size of files you want to store. If you have a small amount of files you can store them into the database however, the database size will get bigger by time. On the other side the directory you can assign a specific space you need based on your size of the files and youRead more

    It depends on the number and size of files you want to store. If you have a small amount of files you can store them into the database however, the database size will get bigger by time. On the other side the directory you can assign a specific space you need based on your size of the files and you can leverage other advantages like to open the file write into it and so on.

    This a brief and for sure there are other benefits for each option but hopefully my answer give you a little insight.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
1 2 3 … 17

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.