All posts on BI Publisher

Bursting attachment to Email along with html content in body

  • Post category:BI Publisher
  • Post comments:4 Comments
  • Post last modified:June 16, 2020
  • Reading time:2 mins read

Normally when we burst the BI Reports we either do the html bursting so that the content will appear in the email body or burst with an attachment so that the end user can open the pdf and view it. However if there is a requirement to combine both of them, then we can use the below bursting SQL: select…

Continue ReadingBursting attachment to Email along with html content in body

Most Frequently Used SQLs for List of Values (LOVs)

  • Post category:BI Publisher
  • Post comments:0 Comments
  • Post last modified:June 16, 2020
  • Reading time:4 mins read

Below are the list of SQLs that are most frequently used to get the list of values for business objects. Legislative Data Group: Select name from per_legislative_data_groups_vl Secured Persons List: SELECT DISTINCT PERSON_NUMBER FROM PER_PERSON_SECURED_LIST_V Secured Departments List: SELECT DISTINCT SUBSTR(DEPT.NAME,1,INSTR(DEPT.NAME,’-‘,1)-1) DEPCODE FROM PER_DEPARTMENT_SECURED_LIST_V SEC_DEPT, PER_DEPARTMENTS DEPT WHERE DEPT.ORGANIZATION_ID=SEC_DEPT.ORGANIZATION_ID Payroll Name: select distinct payroll_name from pay_all_payrolls_f where TRUNC(SYSDATE) BETWEEN effective_start_date…

Continue ReadingMost Frequently Used SQLs for List of Values (LOVs)

SQL Query to get Fast Formula and related info

  • Post category:BI Publisher
  • Post comments:0 Comments
  • Post last modified:June 26, 2020
  • Reading time:2 mins read

Below are the SQL's to extract Fast Formula related data from underlying tables:Fast Formula Functions and their underlying Packages: SELECT f.BASE_FUNCTION_NAME ,f.description ,f.DEFINITION || '(' || listagg(fp.name || ' ' || decode(fp.class, 'I', 'IN', 'O', 'OUT') || ' ' || decode(fp.data_type, 'N', 'NUMBER', 'T', 'VARCHAR2', 'D', 'DATE'), ',') WITHIN GROUP (ORDER BY fp.sequence_number) || ') RETURN ' || decode(f.data_type,'N','NUMBER','T','VARCHAR2','D','DATE') AS…

Continue ReadingSQL Query to get Fast Formula and related info

Prevent Merging Columns in Excel Output using RTF template

  • Post category:BI Publisher
  • Post comments:2 Comments
  • Post last modified:June 12, 2020
  • Reading time:1 min read

While creating a BI Publisher Report, we develop templates using RTF template as it provides multiple output formats like Interactive Mode, PDF, XLSX, XML, CSV etc which are not possible with any other templates like XLS, E-TEXT, etc. One problem most of the people face is when they try to download the excel output using RTF template, the excel output contains merged…

Continue ReadingPrevent Merging Columns in Excel Output using RTF template

Password Protect Excel Output in BI Publisher

  • Post category:BI Publisher
  • Post comments:3 Comments
  • Post last modified:June 12, 2020
  • Reading time:2 mins read

One of the missing piece in BI Publisher earlier was the password protection for Excel 2007 Output and it has been introduced in 18c update. Earlier password protection was possible for PDF output only and there have been a number of bugs and enhancements pending around the feasibility for password protection for Excel Output. And finally Oracle has worked on…

Continue ReadingPassword Protect Excel Output in BI Publisher

SQL Query to get Geography Information

  • Post category:BI Publisher
  • Post comments:0 Comments
  • Post last modified:June 12, 2020
  • Reading time:3 mins read

In this article we will look into getting the Country, State, County, City and Zipcode information from backend tables. These queries will be handy when there is a requirement to get the Country Name, State Names etc apart from the Country Code and State Code which are present in most of the address tables. Countries:SELECT TERRITORY_CODE ,TERRITORY_SHORT_NAME ,CURRENCY_CODE ,DESCRIPTIONFROM FND_TERRITORIES_VLWHERE…

Continue ReadingSQL Query to get Geography Information

How to default date parameters in BI Report dynamically?

  • Post category:BI Publisher
  • Post comments:5 Comments
  • Post last modified:June 9, 2023
  • Reading time:2 mins read

For most of the BI Reports, we have the input parameter as "AsOfDate" alias sysdate or current date... Sometimes we also have a date range "From Date" and "To Date" to fetch transactions between those dates. And these dates need to have a default value when we open the report/schedule the report.  If the scheduled report includes date parameters, when…

Continue ReadingHow to default date parameters in BI Report dynamically?

SQL Query to get User last login information

Most of the customers want to know the list of users who logged in to Fusion Applications and want to encourage other employees too to use the Fusion system. For this, the customer needs to generate a report with the list of users who have logged in within a period of time like last 30days or on specific date or…

Continue ReadingSQL Query to get User last login information

SQL Query to get the HDL file from staging tables

  • Post category:BI Publisher
  • Post comments:1 Comment
  • Post last modified:June 12, 2020
  • Reading time:1 min read

Normally when we load the data using HCM Data Loader aka HDL, the File Delete Option would be defaulted to 'Y' and the input zip file would be deleted post processing of that file. However out of my enthusiasm, I searched for options to get that HDL file from staging tables and finally figured out a way to get it…

Continue ReadingSQL Query to get the HDL file from staging tables