Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

1/24/22, 12:01 PM Document 1910762.

1
Copyright (c) 2022, Oracle. All rights reserved. Oracle Confidential.

Fusion Applications BI Publisher : How Can I Use BI Publisher to Run SQL Against the Fusion Applications Database ? (Doc ID 1910762.1)

In this Document

Goal
Solution
  Stage 1 - Creating the Data Model
  Stage 2 - Viewing the full output
References

APPLIES TO:

Oracle Fusion Receivables Cloud Service - Version 11.1.11.1.0 to 11.13.20.10.0 [Release 1.0]
Oracle Fusion Application Toolkit Cloud Service - Version 11.1.5.0.0 and later

Oracle Fusion CX Sales Cloud Service - Version 11.12.1.0.0 to 11.12.1.0.0 [Release 1.0]
Oracle Fusion Application Toolkit - Version 11.1.5.0.0 and later

Oracle Fusion Financials Common Module Cloud Service - Version


11.13.18.02.0 to 11.13.18.02.0 [Release 1.0]
Information in this document applies to any platform.

GOAL

 This document details how a user can make use of BI Publisher functionality to run a SQL query against the Fusion Applications Database and review the result set.

SOLUTION

In order to run a SQL query against the Fusion Applications Database the user is required to add the SQL to a BI Publisher SQL Data Model and then to execute the Data Model.

The process is a two stage one, the first stage being to create the data model containing the appropriate SQL and the second being to display the result set in a BI Publisher report.

Stage 1 - Creating the Data Model

There are two approaches to access BI Publisher dependent on the starting point.

The most straightforward approach is to directly access BI Publisher via its own URL, this being /xmlpserver. For users working in an existing Fusion environment this extension can
be added to the existing Fusion Application host, for example :

If the Fusion Application is being accessed through a URL such as 'https://XXX.oracleoutsourcing.com/homePage' then the equivalent URL to access BI Publisher directly would be
'https://XXX.oracleoutsourcing.com/xmlpserver'

This can be seen in the screenshot below :

The second approach is to access BI Publisher via the Reports & Analytics link in the Fusion Applications Navigator as shown below :

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=118q9euyry_4&id=1910762.1 1/8
1/24/22, 12:01 PM Document 1910762.1

Once the user has access the Reports & Analytics link, clicking on Create > Report will take the user into Report creation in BI Publisher, cancelling this leaves the user in BI
Publisher mode (the URL will reflect as ..../analytics/saw.dll?bipublisherEntry as you are working in BI Publisher implicitly) :

From this point on the user can then click on New > Data Model :

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=118q9euyry_4&id=1910762.1 2/8
1/24/22, 12:01 PM Document 1910762.1

The Data Model defines the SQL which we are going to issue. For the purposes of this document and the functionality detailed within it it may be useful to define and save a data
model which you can then re-use to issue SQL statements as required. There is no need to create and save multiple data models, one for each SQL statement, unless you have an
expectation that a given SQL statement may be issued regularly, in which case having a static data model for that statement may be useful. In this case we are going to create and
save a dummySQLDataModel which we will use to issue our SQL statement.

The user will be taken to the default Data Model definition page. Click on the Data Set dropdown highlighted in the screenshot and select 'SQL Query' :

At this point the next step is then to define the SQL which we would like to issue. Ensure that the data set is given a name, the datasource should be ApplicationDB_xxx (the xxx
being either HCM, FSCM, or CRM, dependent on the Fusion Application application being used), and that the Type of SQL shows 'Standard SQL' :

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=118q9euyry_4&id=1910762.1 3/8
1/24/22, 12:01 PM Document 1910762.1

Once the SQL is defined, click on OK, and the screen will then change to show a diagram and the fields which were included in the SQL statement :

Click on the 'View Data' link in the top right hand corner of the screen, set 'Rows' to a value like 200 (note this is the max value allowed in the Data Model), click on the 'View'
button, and finally, select 'Table View', at which point the user will be presented with the result set :

You can use the Query Builder button to view all the tables and columns however; you have to select the FUSION schema rather than the FUSION_RUNTIME schema, which is
what the Query Builder defaults to.

Stage 2 - Viewing the full output

The second part of the process involves the creation of a report template which will then allow generation of the full set of output for the query being issued.

Continuing from the above steps, assuming the output is as required the next step would be to save the data model which we can then use for the template creation later :

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=118q9euyry_4&id=1910762.1 4/8
1/24/22, 12:01 PM Document 1910762.1

With the data model saved at a suitable location we should then perform  a 'View Data' should then be performed again and the output saved as sample data for the data model,
this is then used to build the report template :

Once the data is saved as Sample Data you can then click on 'Create Report' and will be taken to the Report Creation wizard, the data model you have just created will be shown,
click on Next :

Select a basic Landscape layout and Table output to aid presentation of the results, and then click Next :

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=118q9euyry_4&id=1910762.1 5/8
1/24/22, 12:01 PM Document 1910762.1

A preview of the results will be displayed at which point you can adjust the layout and drag and drop columns from and to the table, and then click Next :

Select View Report and then click 'Finish' :

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=118q9euyry_4&id=1910762.1 6/8
1/24/22, 12:01 PM Document 1910762.1

Save the report:

You will then be presented with the report output, can scroll through the result set, and export the results to various output types as required :

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=118q9euyry_4&id=1910762.1 7/8
1/24/22, 12:01 PM Document 1910762.1

The query used for the above example is attached.

REFERENCES

NOTE:2079410.1 - Fusion Apps BI Publisher: How To Enable The Create Data Model Option
Didn't find what you are looking for?

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=118q9euyry_4&id=1910762.1 8/8

You might also like