Thursday, 16 October 2025

Oracle Fusion SQL Queries to get Sales Person/Sales Representative information for an Order

1) Get sales person details if the Sales Person ID is known

SELECT  jrs.SALESREP_NUMBER  ,
        jrs.status           ,
        jrs.START_DATE_ACTIVE,
        jrs.end_date_active  ,
        hp.PARTY_Number      ,
        hp.party_name        ,
        hp.person_first_name ,
        hp.person_last_name
FROM    fusion.JTF_RS_SALESREPS JRS ,
        fusion.HZ_PARTIES HP
WHERE   jrs.resource_id     = :P_SALESPERSON_ID
        AND jrs.RESOURCE_ID = PARTY_ID 


SELECT  JRS.RESOURCE_SALESREP_ID    ,
        JRS.RESOURCE_ID             ,
        JRS.SALESREP_NUMBER         ,
        JRS.STATUS                  ,
        asg.ASSIGNMENT_TYPE         ,
        HZP.PARTY_NAME SALESREP_NAME,
        HZP.PARTY_NUMBER            ,
        u.person_id                 ,
        asg.BUSINESS_UNIT_ID        ,
        STS.SET_NAME                ,
        u.USERNAME
FROM    fusion.JTF_RS_SALESREPS JRS      ,
        fusion.HZ_PARTIES HZP            ,
        fusion.per_users u               ,
        fusion.per_all_assignments_f asg ,
        fusion.FND_SETID_SETS_VL sts
WHERE   JRS.RESOURCE_ID         = HZP.PARTY_ID
        AND u.user_guid         = HZP.user_guid
        AND asg.person_id       = u.person_id
        AND jrs.set_id          = sts.set_ID
        AND asg.ASSIGNMENT_TYPE = 'E'
        AND JRS.STATUS          = 'A';

2) Get Sales Person Information set at Order Header


SELECT  dha.source_order_number ,
        dha.salesperson_id      ,
        dsc.SALESPERSON_ID      ,
        dsc.PERCENT             ,
        dsc.SALES_CREDIT_TYPE_ID,
        jrs.SALESREP_NUMBER     ,
        jrs.status              ,
        hp.PARTY_Number         ,
        hp.party_name           ,
        hp.person_first_name    ,
        hp.person_last_name
FROM    fusion.doo_headers_all dha   ,
        fusion.DOO_SALES_CREDITS DSC ,
        fusion.JTF_RS_SALESREPS JRS  ,
        fusion.HZ_PARTIES HP
WHERE   dha.source_order_number IN ('&ORDER_NUMBER')
        AND DHA.header_id        = DSC.header_id
        AND dha.submitted_flag   = 'Y'
        AND dsc.salesperson_id   = jrs.RESOURCE_ID
        AND dha.creation_date BETWEEN jrs.START_DATE_ACTIVE AND jrs.end_date_active
        AND jrs.RESOURCE_ID = PARTY_ID
ORDER BY dha.creation_Date DESC

3) Get sales person details from Order line 

SELECT  dha.source_order_number ,
        dha.salesperson_id      ,
        dfla.fulfill_line_id    ,
        dfla.FULFILL_LINE_NUMBER,
        dfla.source_line_number ,
        dsc.SALESPERSON_ID      ,
        dsc.PERCENT             ,
        dsc.SALES_CREDIT_TYPE_ID,
        jrs.SALESREP_NUMBER     ,
        jrs.status              ,
        hp.PARTY_Number         ,
        hp.party_name           ,
        hp.person_first_name    ,
        hp.person_last_name
FROM    fusion.doo_headers_all dha       ,
        fusion.doo_fulfill_lines_all dfla,
        fusion.DOO_SALES_CREDITS DSC     ,
        fusion.JTF_RS_SALESREPS JRS      ,
        fusion.HZ_PARTIES HP
WHERE   dha.source_order_number IN ('&ORDER_NUMBER')
        AND dha.header_id        = dfla.header_id
        AND Dfla.fulfill_line_id = DSC.fulfill_line_id
        AND dha.submitted_flag   = 'Y'
        AND dsc.salesperson_id   = jrs.RESOURCE_ID
        AND dha.creation_date BETWEEN jrs.START_DATE_ACTIVE AND jrs.end_date_active
        AND jrs.RESOURCE_ID = PARTY_ID
ORDER BY dfla.fulfill_line_id DESC

Monday, 2 September 2024

AP Invoice Notes related Table details in Oracle Fusion

 What is the table that stores the AP Invoice notes?


AP notes are stored in ZMM_NOTES table with SOURCE_OBJECT_CODE = 'AP_STANDARD_INVOICE' and SOURCE_OBJECT_UID being the invoice_id of the payables invoice.


Query :


select

        zn.note_txt

from

        ap_invoices_all aia,

        zmm_notes       zn

where

        invoice_num=:P_Invoice_Num

and     zn.SOURCE_OBJECT_UID  =aia.invoice_id

and     zn.SOURCE_OBJECT_CODE = 'AP_STANDARD_INVOICE'

        --and zn.ATTRIBUTE_CATEGORY='GENERAL'


Thursday, 29 August 2024

Page Break syntax split-by-page-break: is not working in RTF template for BIP report issue Solution

 If you are facing issue for Page Break syntax  <?split-by-page-break:?> is not working in RTF template for BIP report.

Please try below given solution and check it will work.

This issue for page break problem occurs on the last record of the report. It makes no different what that record is, it's always the last record.

Solution :

The solution is to change the page break tag.

Within the rtf template in Word, right click the first page break tag (below the first table) and select BI Publisher > Properties

A new box entitled BI Publisher Properties should appear on the screen. Within the Code box you should see this code

<?split-by-page-break:?>

Replace that code with this code

<xsl:attribute name="break-before">page</xsl:attribute>

Run the report again.

Thursday, 25 January 2024

How to resolve issue for BIP RTF template XML tags showing value as

 How to resolve issue for BIP RTF template XML tags showing value as <?ref: 0000xx?> 

Sometime these xml data tags automatically changes to <?ref:xdoXXXX> format when opened in RTF. This is because of fields compatibility (BI Desktop version) with MS Word.


To resolve this issue we need open new Word file and modify Add-on setting for publisher as given below.

1. Navigate to Add-on Publisher -> Options -> Options


2. Change Field Labels from Business View to XML Tag Name.




3. Then in Build Tab select below given option


click on OK. 

After this changes now try to open BIP RTF template again and it will show you now correct XML tag as expected.






Thursday, 7 December 2023

How to submit ESS Job request using SoapUI in Oracle Fusion

Submit ESS Job request using SOAP UI using SOAP web service ERP Integration Service

Step1: Navigate to oracle document.

https://docs.oracle.com/en/cloud/saas/financials/23d/oeswf/erpintegrationservice-d16476e420.html#u30243249

 

Step2: Select ERP Integration Service

Step3: Copy Service WSDL URL


Step4 : Replace servername with Fusion ERP URL from Service WSDL URL: https://servername/fscmService/ErpIntegrationService?WSDL

e.g. if your fusion ERP URL is https://fa-makd-saasfademo1.ds-fa.oraclepdemos.com/fscmUI

Then replace server name with fusion URL as given below.

e.g. WSDL URL: https://fa-makd-saasfademo1.ds-fa.oraclepdemos.com/fscmService/ErpIntegrationService?WSDL

Step5: Open SoapUI tool and enter project name and WSDL


Step6: Click on OK button , it will fetch service details 


Step7: Expand ERPINtegrationServiceSoapHttp service and select SubmitESSJobRequest


Step8 : Login to Fusion application and got to Manage Job and schedule from Setup and Maintenance 

Step9: Enter details for Job package name and Job Definition Name 


Step10 : submit SOAP request

Check output


You can see same ESS job request id get submitted in ERP application 




Monday, 4 December 2023

How to load GL daily rates using FBDI in oracle cloud ERP

 Step1) Download FBDI file for GL daily rates

https://docs.oracle.com/en/cloud/saas/financials/23b/oefbf/importandcalculatedailyrates-3135.html#u30240265



Download DailyRatesImportTemplate.xlsm file

Step2) Open FBDI file and EDIT as per your requirements.


Step3. Click on Generate Daily Rates button generate zip file


Step4) Login to cloud application and check existing rates for given date.


Step5) Run Load Interface File for Import job in application


Pass parameter for daily rates


Browse zip file from computer and submit Job

It will run below given 4 program one by one automatically.


Once last program import and calculate Rates get successful check latest updated daily rates for given date. FBDI program loaded data successfully in cloud.





Friday, 24 November 2023

Integration Style In OIC

 


1) App Driven Orchestration:

Create an integration that uses an event or a business object to trigger the integration. For example, you create an integration with an Oracle RightNow Adapter as a trigger and an Oracle CX Sales and B2B Service Adapter as an invoke. The Oracle RightNow Adapter subscribes to an event from the Oracle RightNow application to trigger the integration. Orchestration integrations include features such as the following:

Switch activities to create multiple routing expressions.

For-each activities for looping over repeating elements.

Assign activities for assigning values to scalar variables.

Ad-hoc mappings on switch branches.

Callback activities (to end a process and respond back to the sender) and end activities (to end a process without responding back to the sender) in asynchronous integrations.

2) Scheduled Orchestration:

Create an integration that uses a schedule to trigger the integration instead of an adapter. For example, you add an initial invoke adapter to read a trigger file and a second FTP adapter to download the file for further processing. After designing this integration, you schedule when to run it.


3) File Transfer:

Create an integration to move files across a network.

4)Basic Routing:

Create an integration with a blank trigger and invoke in which to add your own adapters. You can also create a single routing expression and request and response enrichments, as needed. You cannot create multiple routing expressions. If your integration requires this feature, create an orchestrated integration.


5) Publish to OIC:

Create an integration in which you add a trigger adapter to publish messages to Oracle Integration through a predefined Oracle Integration Messaging invoke. No configuration of the invoke subscriber is required.

The publisher and subscribers participating in this integration style can be activated and deactivated independently of each other.


6) Subscribe to OIC:

Create an integration in which you add an invoke adapter to subscribe to messages from Oracle Integration through an Oracle Integration Messaging trigger. You are prompted to select the publisher to which to subscribe. You must have already created a publisher to which to subscribe. The publisher does not need to be active, but must already be completely configured.

Any business identifiers defined on fields in the published integration are copied to the subscriber. Any changes made to the published integration’s business identifiers after copying are not reflected in the subscriber. The publisher and subscribers participating in this integration style can be activated and deactivated independently of each other.



Fusion OTBI Report Subject Areas for Payables and Receivables

 1) Payables

Payables Invoices- Installments Real time

Payables Invoices- Prepayment Application Real Time

Payables Invoices- Transactions Real time

Payables Invoices- Trial Balance Real time

Payables Invoices- With Holding Real time

Payables Payment-  Disbursement Real Time

Payables Payment- Payments History Real Time

2) Receivables

Receivables- Adjustments Real time

Receivables- Bills Receivables Real Time

Receivables- Credit memo Application Real Time

Receivables- Credit Memo Request Real Time

Receivables- Customer Real Time

Receivables- Miscellenious Receipt Real Time

Receivables- Payments Schedule Real Time

Receivables- Transactions Real Time

Receivables- Receipts Details Real Time

Thursday, 23 November 2023

How to unlock as locked Fusion/Cloud user?

 Here are the steps you can follow to find a locked user:


    a. Login to Oracle Fusion Cloud Application as Admin user (must have IT Security Manager job role)

    b. Navigate to Tools > Security Console > Users page

    c. Search for the locked user

    d. Click on the Username or Display Name to get to the User Information page and then click the Edit button

    e. Under Account Information, uncheck the Locked check box

Wednesday, 8 November 2023

How to create PGP encryption key in Oracle fusion

 Step1. Login to Oracle cloud application

Navigate to Tools-> Security Console


Select certificate from lefts side menu


Step 2- Click on Generate Button


Step3- Select PGP radio button and enter details


Save and close



click on OK

Step4.  Export both public and private key



Check downloaded public and private key










Monday, 6 November 2023

How to resolve OIC Integration Error for Missing Primary business identifier for tracking

 Error Details:

Missing Primary Business Identifiers for tracking. Please define primary identifier using tracking option from the menu.


Step1 : Click on buzzer icon on right hand side and click on tracking


Step2. Drag primary identifier from left side source list to right side tracking field


Step3. Click on save integration and it will remove error.

Also this will change integration status from draft to configure. 

Wednesday, 7 September 2022

HCM Extract in Oracle Fusion Cloud

 Steps for creation of HCM Extract in Oracle Fusion Cloud.

Login as HCM Implementation User

Navigate to My client Group -> Data exchange


Under HCM Extract section click on Extract Definitions


It will Open Extract Definition Page 

Click on + icon to create new extract 


Enter necessary details for creation of HCM Extract

Name, Type , check Box for changes only (for getting incremental extracts), Consumer

Then click on OK

It will take you to define extract screen


 In parameter you can see some predefine parameter as we select check box for changes only.

If you wanted to add any new parameter, then you can click on + Add icon


 Once all details enter save changes and then click on Design

Enter details for root data group


If you wanted to add any condition, then add filter


Under record group now create record

Right click on person record group and add new record


Enter details for name and tag for record


Then click on attributes too add attribute from data base item

From search test you can search attributes and select check box to add it.

After selecting attribute please save record.


Now for adding child data group

 right click on record group and add child data group

Enter details for child data group

Then click on connect data groups and check data group join condition

If you want to remove/add any condition you can do it

If you want to add any filter, then you can add it in filter section.

Then save child record group.

Now add record under child data group (Assignments)

Right click on Assignments record group and add new record


Enter details for name and tag

Save record


Then click on attributes to add attribute for assignment record. after selecting attribute from list for child data group save record.


Now click on Delivery

Click on + add button to add delivery option for this extract

And enter details


Enter details for delivery options 

Click on save button and then validate HCM extract


Now from extract list submit extract

Enter required parameter and submit extract

 Click on extract link to check execution details

From delivery option you can download file as well

Generated file


 On UCM search it using content id populated on delivery option

You will find HCM Extract file generated on UCM


Thanks all for reading this post.

Oracle Fusion SQL Queries to get Sales Person/Sales Representative information for an Order

1) Get sales person details if the Sales Person ID is known SELECT  jrs.SALESREP_NUMBER  ,         jrs.status           ,         jrs.START_...