Pages

Recently Viewed

Sunday, January 8, 2023

How to use Fast Formula in HCM Extract

Requirement 
Can we use Fast Formula in HCM Extrat to derive any Database calculation ?


Solution 
Oralce provides rule type attribute in HCM extract.  We can use this type to use fast formula driven attribute. 


In order to access Fast formula in Extract attributes, use type = "Extract Rule" 






If using GET_VALUE_SET method to cal value set ( only TABLE type value set are supported). Please ensure you pass value to ID field as well.  






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).




 


Profile Utilities:Diagnostics

 Utilities:Diagnostics to enable Access to  custom code under HELP > Diagnostics


Wednesday, February 10, 2021

JAR Files

Create JAR File 

jar cvf  <jar file name> <class name>....

Example 

jar cvf  TEST.jar A.class B.class



Execute Jar file 

java -cp ./<jar file name> <class name> <properties file>

Example 

java -cp ./SKPDebugREST.jar DebugREST DebugREST.properties

CURL

Open Command Prompt 

SKP>curl -help 

This shows curl utility is installed 


This shows utility is missing and need to install. 


Download and install - Win64OpenSSL-1_1_1i.exe

Thursday, June 25, 2020

Oracle Fusion URLs Tips


Oracle Fusion Login URL 
https://<POD_NAME>.login.<DOMAIN>.oraclecloud.com
https://san-test.login.ap1.oraclecloud.com/


Oracle Fusion Application URL
https://<POD_NAME>.<APPLICATION_NAME>.<DOMAIN>.oraclecloud.com
https://san-test.fa.ap1.oraclecloud.com/


Oracle Fusion UCM URL 
https://<POD_NAME>.<APPLICATION_NAME>.<DOMAIN>.oraclecloud.com/cs
https://san-test.fa.ap1.oraclecloud.com/cs


Oracle Transnational BI Publisher  URL 
https://<POD_NAME>.<APPLICATION_NAME>.<DOMAIN>.oraclecloud.com/analytics
https://san-test.fa.ap1.oraclecloud.com/analytics


Oracle Fusion BI Publisher Enterprise URL 
https://<POD_NAME>.<APPLICATION_NAME>.<DOMAIN>.oraclecloud.com/xmlpserver
https://san-test.fa.ap1.oraclecloud.com/xmlpserver


Oracle Business Intelligence Cloud Connector Console  
https://<POD_NAME>.<APPLICATION_NAME>.<DOMAIN>.oraclecloud.com/biacm
https://san-test.fa.ap1.oraclecloud.com/xmlpserver





How to backup and migrate OTBI objects in Fusion Cloud

Following  approaches one can use to promote OTBI objects from one instance to another. 


1) Manual :  Old school method. Manually follow same instruction as development. This is beneficial if change is simple only in layout or in one data set and you are unsure about other changes in development instance. 

2) Archieve/Unarchieve : 
On catalog screen we can see Archive and Unarchive options. 
Select the object and click archive for export OR
Click on More and select archive option. 
*.Catalog file will be created. 

Login to target instance and use unarchive option and select catalog file.

3) Upload/Download :
On catalog screen another option available is upload/download.
if download option is not available, open XMLPSERVER
<POD_URL>/xmlpserver
 Example :  https://san-test.fa.ap1.oraclecloud.com/xmlpserver

This will open BI Publisher Enterprise ( Old BI Publisher feature - Only BIP Data Model and Report are available). 
*.xdoz (Report)  & *.xdmz (Data Model) file will be downloaded. 

Friday, April 24, 2020

Oracle WFR scans comma as decimal in LineItem fields

This can not be resolved by using field properties ( Exclude Char) feature since Line Item is of Table type and there is no such properties.

Custom Sub Routine would be way forward, following is a sample -

Private Sub LineItems_ValidateTable(pTable As SCBCdrPROJLib.ISCBCdrTable, pWorkdoc As SCBCdrPROJLib.ISCBCdrWorkdoc, pValid As Boolean)
'======================================
'By Sandeep
'======================================
Dim i As Integer

For i = 0 To pWorkdoc.Fields("LineItems").Table(0).RowCount -1

'Replacing some known characters identified during debug
pWorkdoc.Fields("LineItems").Table(0).CellText("Unit Price", i)=Trim(Replace(CStr(pWorkdoc.Fields("LineItems").Table(0).CellText("Unit Price", i)),".",""))

pWorkdoc.Fields("LineItems").Table(0).CellText("Total", i)= Trim(Replace(CStr(pWorkdoc.Fields("LineItems").Table(0).CellText("Total", i)),".",""))

pWorkdoc.Fields("LineItems").Table(0).CellText("Total", i)= Trim(Replace(CStr(pWorkdoc.Fields("LineItems").Table(0).CellText("Total", i)),".",""))

Next

End Sub


Above is a sample code to replace any char and assign the replaced value back to line Items.
Based on business required we can change the values and assign the calculated values agaain.

If Total field has comma replaced by decimal,  form a logic to check length of post decimal string and decide if decimal is actual decimal or comma. Accordingly replace comma with "" and assign back.