Pages

Recently Viewed

Showing posts with label Fusion - BIP. Show all posts
Showing posts with label Fusion - BIP. Show all posts

Wednesday, August 16, 2023

How to default report data for logged in user ? 

This is applicble for reports having personal information for users. 

Report can be parameterized as below - 

 

:XDO_USER_NAME captures session username. 


 select username from per_users where upper(username) = upper(:xdo_user_name)

Wednesday, February 1, 2023

Execute BI Publisher Report from URL

Construct url using following variables in order to invoke a BIP report 

<InstanceDetails>/xmlpserver/<FolderPath>/<ReportName.xdo>?_xpt=0&_xmode=4&<Paramaters=ParamValue)


Example: 

InstanceDetails = https://fa-skp-test.fa.oraclecloud.com

FolderPath = /Custom/XXX

ReportName= XX Custom Report.xdo ( Replace spaces with '+') 

Paramaters = 

P_TYPE
S - Summary
D - Detailed 

P_BU
0 = AU Region
1 = NZ Region

 

URL to invoke and run this report would be - 


https://fa-skp-test.fa.oraclecloud.com/xmlpserver/Custom/XXX/XX+Custom+Report.xdo?_xpt=0&_xmode=4&P_TYPE=S&P_BU=0

Monday, January 9, 2023

Shortcut to run BIP report in Fusion (Sandbox)

 Requirement 
How to access Oracle BIP Report from fusion without accessing Tools >  Reports and Analytics and ESS job. 


Solution
We can use sandbox to setup a shorcut in required screen in Oracle fusion. 

Create a sandbox using Structure option.


 

 




Select create page entry option. 








Select the group name where you want to keep this shortcut. 













EL expression can be used to control access for specifc user or role 






Select Link type = Dynamic URL and provide the report path and name ( as shown) in destination for web application. 





Save and publish the sandbox. 

Go to path and a shortcut will be shown on selected group. 




Different methods to access BIP Report in Oracle Fusion

Requirement 
What are different ways one can access BIP Reports 


Solution 
Reports can be accessed via - 

1) Reports and Analytics - Go to report path and run or schedule report 

2) Oracle Fusion Scheduled Process - Setup and ESS job for BIP report and access report data by running ESS job from Oracle fusion. 

3) Oracle Fusion (any screen) -  We can use sandbox to create new page entry and link this with report path. A BIP report can be linked using Static and Dynamic options. 

Static - This will be not instance dependent and report URL will be full link including instance details. 
Dynamic -  Suggested to use as this need only report path and name. Instance name will be automatically added based on used instance. 



Sunday, January 8, 2023

Working with Bursting in Oracle Fusion

Requirement 
How to define delivery details for an BIP report at run time ? 


Solution
Similar to e-Business BIP reports are delivered to use bursting concept for run time delivery selection. 

Bursting SQL need to be defined at Data Model. 


Following are the options to run data model and bursting scope - 

  • Data Model - Data model can be executed directly from data model by using view button.
    Bursting does not execute in this.

  • Report (Online View) - Report can be run using Open option in Oracle analytics. Bursting  defined at associated Data model does not execute in this. 

  • Report submitted as Job - Report can be run using (More > Schedule) option in Oracle analytics. Bursting  defined at associated Data model may/may not execute in this. In order to execute Report ned to be updated by selecting properties option and enable bursting need to be checked if bursting is defined at linked data model. 


 







  • ESS Job - If ESS job is setup in Oracle fusion and linked with BIP report. Any bursting defined at associated data model will be executed when report run using ESS job. 

Saturday, December 31, 2022

How to schedule a report with timestamp in filename

 Requirement 
Schedule a report to deliver output file with timestamp in filename so it can be differentiated 

Solution
Dynamic filename can be achieved using 2 ways - 


1) User delivery option manually in schedule

In this method in delivery tab, select the delivery method and use below syntex in filename - BIPReport_%y%m%d%H24%M%S.txt



2) Define bursting and use SQL method of appending timestamp in filename parameter -  

'BIPReport_'||to_char(SYSDATE, 'YYYYMMDDH24MISS'||'.txt' PARAMETER5





How to default Date value in parameter


Requirement
Default dynamic date parameter values 


Solution 
Use following predefined function to default date para,eters -

 {$SYSDATE()$}                            – current date
 {$FIRST_DAY_OF_MONTH()$} – first day of the current month
 {$LAST_DAY_OF_MONTH()$}  – last day of the current month
 {$FIRST_DAY_OF_YEAR)$}      – first day of the current year
 {$LAST_DAY_OF_YEAR)$}       – last day of the current year

*Dates are system date of the server on which BI Publisher is running.

Example 







How to add new attribute in Seeded Data Model - Simple Reports

Requirement 
Enhance a simple seeded report by adding additional attributes is very common. 


Solution1
We can enhance the seeded data set by modifying SQL statement using new attributes. 

Example
DataSet SQL -
SELECT
invoice_num
, invoice_id
, invoice_date
FROM
ap_invoices_all 

Need to display Business Unit Name. 

Modified Data Set SQL 

SELECT
invoice_num
, invoice_id
, invoice_date
,fbu.bu_name
FROM
ap_invoices_all apa
,fun_all_business_units_v fbu
WHERE
apa.org_id = fbu.bu_id

OR 

SELECT
invoice_num
, invoice_id
, invoice_date
,(SELECT bu_name from fun_all_business_units_v where bu_id = apa.org_id) bu_name
FROM
ap_invoices_all apa




Solution2
We can add a new data set for requested attributes and common attribute from existing data set. Then link the new data set using common attribute. 


DataSet1 SQL -
SELECT
invoice_num
, invoice_id
, invoice_date
,org_id
FROM
ap_invoices_all 

Need to display Business Unit Name. 

DataSet2 SQL 

SELECT
bu_id
,bu_name 
FROM
fun_all_business_units_v 

Linke DataSet 1 with DataSet2 using attribute Org_id (DS1) and Bu_id (DS2).