Tuesday, May 27, 2014

BI Publisher Locale codes

Supported languages and code pages

You can specify that the text documents be parsed using a particular language when you first create a text search index. You can also specify that the query terms be interpreted in a particular language while searching. In addition, you can specify a code page when you create a text search index on a binary data type column.

Language specification

A locale is a combination of language and territory (region or country) information and is represented by a five-character locale code. You define the message locale for a text search administration procedure by passing the procedure the locale code. Refinements of these locale codes are possible depending on the locales installed on the DB2® server.
There is an important difference between specifying a language when you create a text search index and specifying a language when you issue a search query:
  • The locale that you specify in your db2ts CREATE INDEX command determines the language used to tokenize or analyze documents for indexing. If you know that all documents in the column to be indexed use a specific language, specify the applicable locale when you create the text search index. If you do not specify a locale, the database territory will be used to determine the default setting for LANGUAGE. To have your documents automatically scanned to determine the locale, in the SYSIBMTS.TSDEFAULTS view, set the LANGUAGE attribute to AUTO. The SYSIBMTS.TSDEFAULTS view describes database defaults for text search using attribute-value pairs.
  • The locale that you specify in a search query is used to perform linguistic processing on the query and to help identify the base forms of the query term. After the locale of the base form has been identified, the locale does not play any part in the search process itself. Thus, you could use the English language for a query and obtain German documents in the search result if the search term in its base form is present in the documents.
The following table lists the locales that DB2 Text Search supports for document processing.
Table 1. Supported locales
Locale code Language Territory
ar_AA Arabic Arabic countries or regions
cs_CZ Czech Czech Republic
da_DK Danish Denmark
de_CH German Switzerland
de_DE German Germany
el_GR Greek Greece
en_AU English Australia
en_GB English United Kingdom
en_US English United States
es_ES Spanish Spain
fi_FI Finnish Finland
fr_CA French Canada
fr_FR French France
it_IT Italian Italy
ja_JP Japanese Japan
ko_KR Korean Korea, Republic of
nb_NO Norwegian Bokmål Norway
nl_NL Dutch Netherlands
nn_NO Norwegian Nynorsk Norway
pl_PL Polish Poland
pt_BR Portuguese Brazil
pt_PT Portuguese Portugal
ru_RU Russian Russia
sv_SE Swedish Sweden
zh_CN Chinese China
zh_TW Chinese Taiwan

Code page specification

You can index documents if they use one of the supported DB2 code pages. Although specifying the code page when creating a text search index is optional, doing so helps to identify the character encoding of binary columns. If you do not specify a code page for binary columns, the code page from the column property is used. The list of supported territory codes and code pages can be found here.

FND SCRIPTS

The Generic Loader (FNDLOAD) is a concurrent program that can transfer Oracle Application entity data between database and text file. The loader reads a configuration file to determine which entity to access. In simple words FNDLOAD is used to transfer entity data from one instance/database to other. For example if you want to move a concurrent program/menu/value sets developed in DEVELOPMENT instance to PRODUCTION instance you can use this command.


Steps to Move a Concurrent program from one instance(Database) to other


Define your concurrent program and save it in first instance(for how to register a concurrent program click here)
Connect to your UNIX box on first instance and run the following command to download the .ldt file
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct file_name.ldt PROGRAM APPLICATION_SHORT_NAME=”Concurrent program application short name” CONCURRENT_PROGRAM_NAME=”concurrent program short name”
Move the downloaded .ldf file to new instance(Use FTP)
Connect to your UNIX box on second instance and run the following command to upload the .ldt file
FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/afcpprog.lct file_name.ldt
Note: Make sure you are giving proper .lct file in the commands and don’t confuse with .lct and .ldt files


These following are the other entity data types that we can move with FNDLOAD


1 – Printer Styles
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afcppstl.lct file_name.ldt STYLE PRINTER_STYLE_NAME=”printer style name”


2 – Lookups
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/aflvmlu.lct file_name.ldt FND_LOOKUP_TYPE APPLICATION_SHORT_NAME=”FND”
LOOKUP_TYPE=”lookup name”


3 – Descriptive Flexfield with all of specific Contexts
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct file_name.ldt DESC_FLEX P_LEVEL=COL_ALL:REF_ALL:CTX_ONE:SEG_ALL APPLICATION_SHORT_NAME=”FND” DESCRIPTIVE_FLEXFIELD_NAME=”desc flex name” P_CONTEXT_CODE=”context name”


4 – Key Flexfield Structures
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct file_name.ldt KEY_FLEX P_LEVEL=COL_ALL:FQL_ALL:SQL_ALL:STR_ONE:WFP_ALL:SHA_ALL:CVR_ALL:SEG_ALL APPLICATION_SHORT_NAME=”FND” ID_FLEX_CODE=”key flex code” P_STRUCTURE_CODE=”structure name”


5 – Concurrent Programs
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct file_name.ldt PROGRAM APPLICATION_SHORT_NAME=”FND” CONCURRENT_PROGRAM_NAME=”concurrent name”


6 – Value Sets
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct file_name.ldt VALUE_SET_VALUE FLEX_VALUE_SET_NAME=”value set name”


7 – Value Sets with values
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct file_name.ldt VALUE_SET FLEX_VALUE_SET_NAME=”value set name”


8 – Profile Options
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afscprof.lct file_name.ldt PROFILE PROFILE_NAME=”profile option” APPLICATION_SHORT_NAME=”FND”


8 – Request Groups
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afcpreqg.lct file_name.ldt REQUEST_GROUP REQUEST_GROUP_NAME=”request group” APPLICATION_SHORT_NAME=”FND”


10 – Request Sets
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afcprset.lct file_name.ldt REQ_SET
APPLICATION_SHORT_NAME=”FND” REQUEST_SET_NAME=”request set”


11 – Responsibilities
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afscursp.lct file_name.ldt FND_RESPONSIBILITY RESP_KEY=”responsibility”


12 – Menus
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afsload.lct file_name.ldt MENU MENU_NAME=”menu_name”


13 – Forms Personalization
FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/affrmcus.lct file_name.ldt FND_FORM_CUSTOM_RULES function_name=FUNCTION_NAME


Note: UPLOAD command is same for all except replacing the .lct and passing any extra parameters if you want to pass


FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/corresponding.lct upload_file.ldt


sql_Queries

1)Display the records between two range


select rownum, empno, ename from emp where rowid in
(select rowid from emp where rownum <=&upto
minus
select rowid from emp where rownum<&Start);
        (or)
select rownum, empno, ename from emp where rownum <=&upto
minus
select rownum, empno, ename from emp where rownum<&Start

output:


SQL> select rownum, empno, ename from emp where rownum <=&upto
  2  minus
  3  select rownum, empno, ename from emp where rownum<&Start;
Enter value for upto: 4
old   1: select rownum, empno, ename from emp where rownum <=&upto
new   1: select rownum, empno, ename from emp where rownum <=4
Enter value for start: 1
old   3: select rownum, empno, ename from emp where rownum<&Start
new   3: select rownum, empno, ename from emp where rownum<1

ROWNUM EMPNO ENAME
------ ----- ----------
     1  7369 SMITH
     2  7499 ALLEN
     3  7521 WARD
     4  7566 JONES

2)Display the number value in Words
SQL> select sal,(to_char(to_date(sal,'j'),'jsp')) as words from emp where deptno=10
  2  ;

            SAL WORDS
--------------- ------------------------------------------------------------------------------
           2450 two thousand four hundred fifty
           5000 five thousand
           1300 one thousand three hundred

3)To view installed Oracle version information

SQL> select * from v$version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE    10.2.0.3.0      Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production

SQL> desc V$version;
 Name                                                                                                              Null?
 ---------------------------------------------------------------------------------------------------
 BANNER                                                                                                                 

4)Find out nth highest salary from emp table

SQL> SELECT DISTINCT (a.sal) FROM EMP A WHERE &N = (SELECT COUNT (DISTINCT (b.sal)) FROM EMP B
  2  WHERE a.sal<=b.sal);

Enter value for n: 2
old   1: SELECT DISTINCT (a.sal) FROM EMP A WHERE &N = (SELECT COUNT (DISTINCT (b.sal)) FROM EMP B
new   1: SELECT DISTINCT (a.sal) FROM EMP A WHERE 2 = (SELECT COUNT (DISTINCT (b.sal)) FROM EMP B

            SAL
---------------
           3000

5)Display Odd/ Even number of records

Odd number of records:

SQL> select * from emp where (rowid,1) in (select rowid, mod(rownum,2) from emp);

          EMPNO ENAME      JOB                   MGR HIREDATE              SAL            COMM          DEPTNO
--------------- ---------- --------- --------------- --------- --------------- --------------- -----
           7369 SMITH      CLERK                7902 17-DEC-80             800                              20
           7521 WARD       SALESMAN             7698 22-FEB-81            1250             500              30
           7654 MARTIN     SALESMAN             7698 28-SEP-81            1250            1400              30
           7782 CLARK      MANAGER              7839 09-JUN-81            2450                              10
           7839 KING       PRESIDENT                 17-NOV-81            5000                              10
           7876 ADAMS      CLERK                7788 23-MAY-87            1100                              20
           7902 FORD       ANALYST              7566 03-DEC-81            3000                              20

7 rows selected.

Even number of records:

SQL> select * from emp where (rowid,0) in (select rowid, mod(rownum,2) from emp);

          EMPNO ENAME      JOB                   MGR HIREDATE              SAL            COMM          DEPTNO
--------------- ---------- --------- --------------- --------- --------------- --------------- -----
           7499 ALLEN      SALESMAN             7698 20-FEB-81            1600             300              30
           7566 JONES      MANAGER              7839 02-APR-81            2975                              20
           7698 BLAKE      MANAGER              7839 01-MAY-81            2850                              30
           7788 SCOTT      ANALYST              7566 19-APR-87            3000                              20
           7844 TURNER     SALESMAN             7698 08-SEP-81            1500               0              30
           7900 JAMES      CLERK                7698 03-DEC-81             950                              30
           7934 MILLER     CLERK                7782 23-JAN-82            1300                              10

7 rows selected.

6)Other way to replace query result null value with a text
SQL> set null 'n/a'
SQL> select comm from emp where deptno=10
  2  ;

           COMM
---------------
n/a
n/a
n/a


To Reset:

SQL> set NULL ''
SQL> select comm from emp where deptno=10
  2  ;

           COMM
---------------


8)How do I eliminate the duplicate rows ?

delete from table_name where rowid not in (select max(rowid) from table group by
duplicate_values_field_name);

SQL> delete from emp where rowid not in (select max(rowid) from emp group by deptno);

11 rows deleted.

SQL> select * from emp;

          EMPNO ENAME      JOB                   MGR HIREDATE              SAL            COMM          DEPTNO
--------------- ---------- --------- --------------- --------- --------------- --------------- -----
           7900 JAMES      CLERK                7698 03-DEC-81             950                              30
           7902 FORD       ANALYST              7566 03-DEC-81            3000                              20
           7934 MILLER     CLERK                7782 23-JAN-82            1300                              10

9)To clear the sql propmpt screen we can use

sql>cl scr
sql>clear screen
sql>cl screen
sql>clear scr

10)Change SQL prompt name

SQL> set sqlprompt "raj>"
raj>set sqlprompt "sql>"

11)display 1st and last records of a table

SQL> select * from emp where rownum=1 union select * from emp where rowid in(select max(rowid) from emp)
        or
     select * from emp where rowid in((select max(rowid) from emp),(select min(rowid) from emp))

EMPNO ENAME      JOB        MGR HIREDATE   SAL COMM DEPTNO
----- ---------- --------- ---- --------- ---- ---- ------
 7369 SMITH      CLERK     7902 17-DEC-80  800          20
 7934 MILLER     CLERK     7782 23-JAN-82 1300          10




Friday, May 23, 2014

Oracle Built in functions

Refer
http://psoug.org/reference/builtin_functions.html

http://sairamgoudmalla.blogspot.in/2008/12/oracle-built-in-functions.html

Sunday, May 11, 2014

USER EXITS

USER EXITS

User Exits are C and Pro C programs which is used to initialize and capture profile values and flex fields.
User Exits are C and Pro C compilers which are used to capture values of different environment variables.

Type of User Exits

SRW.USER_EXIT (‘FND SRWINIT’);
SRW.USER_EXIT (‘FND SRWEXIT’);
SRW.USER_EXIT (‘FND FLEXSQL’);
SRW.USER_EXIT (‘FND FLEXVALID’);
SRW.USER_EXIT (‘FND FORMAT_CURRENCY’);

Description

1)  SRW.USER_EXIT (‘FND SRWINIT’);
                Is used to initialize profile values.

2)  SRW.USER_EXIT (‘FND SRWEXIT’);
      Is used to free the memory allocated.

3)       SRW.USER_EXIT (‘FND FLEXSQL’);
                Is used to capture description of code combinations.

4)  SRW.USER_EXIT (‘FND FLEXVALID’);
      Is used to capture code combination ID.

5)  SRW.USER_EXIT (‘FND FORMAT_CURRENCY’);
      Is used to format currency.

Where the five User Exits are used

In Before Report trigger
SRW.USER_EXIT (‘FND SRWINIT’);
SRW.USER_EXIT (‘FND FLEXSQL’);
SRW.USER_EXIT (‘FND FLEXVALID’);
SRW.USER_EXIT (‘FND FORMAT_CURRENCY’);

In After Report trigger
SRW.USER_EXIT (‘FND SRWEXIT’);

FND_LOAD

Download LDT Files using FND_LOAD based on Custom Selection:

Sometimes we have the requirement like we need to create hundreds of concurrent programs from one instance to another. One option is to download LDT files for each concurrent program. But we need to create 100 command to download and upload the file.

Here is the simple, you can do. Write the select query in SQL Developer and develop the script like that based on your selection.

SELECT 'FNDLOAD apps/ur_password O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct '||A.CONCURRENT_PROGRAM_NAME||'.ldt PROGRAM APPLICATION_SHORT_NAME= "' 
       || B.APPLICATION_SHORT_NAME ||'"' || ' CONCURRENT_PROGRAM_NAME="'|| A.CONCURRENT_PROGRAM_NAME||'"'
FROM 
FND_CONCURRENT_PROGRAMS A, FND_APPLICATION B
WHERE 1=1
AND A.APPLICATION_ID = B.APPLICATION_ID
AND A.CONCURRENT_PROGRAM_NAME LIKE 'XX%'
AND B.APPLICATION_SHORT_NAME LIKE 'XX%';

Take all the rows and paste it in Notepad++ and change the file type to SH e.g. Sample_LDT_Files.sh.
Run that Shell script in Putty in your specified folder and it will download all the files to your folder.

Move the Files to your next instance and run the UPLAOD command in the same way in that instance.
It will create all the objects there :)

FND_LOAD commands:
FND in Oracle:
1. FND is short for “Foundation” which was the name Oracle initially wanted to use for the Application Object Library- the application with common components shared between all the other applications in the Oracle E-Business Suite.

Profile Options:

Source:
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afscprof.lct XXPRNAME.ldt PROFILE PROFILE_NAME="XXPRNAME" APPLICATION_SHORT_NAME="PN"
Target:
1. FNDLOAD apps/apps O Y UPLOAD $FND_TOP/patch/115/import/afscprof.lct XXPRNAME.ldt
2. FNDLOAD apps/apps 0 Y UPLOAD_PARTIAL $FND_TOP/patch/115/import/afscprof.lct XXPRNAME.ldt PROFILE PROFILE_NAME=" XXPRNAME" APPLICATION_SHORT_NAME="PN"

Forms:

Source:
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afsload.lct XXFRMNAME.ldt FORM APPLICATION_SHORT_NAME="PN" FORM_NAME="XXFRMNAME"
Target:
FNDLOAD apps/apps 0 Y UPLOAD @FND:patch/115/import/afsload.lct XXFRMNAME.ldt

Functions:

Source:
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afsload.lct XXFUNNAME.ldt FUNCTION FUNC_APP_SHORT_NAME="PN" FUNCTION_NAME="XXFUNNAME"
Target:
FNDLOAD apps/apps O Y UPLOAD @FND:patch/115/import/afsload.lct XXFUNNAME.ldt

Menus:

Source:
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afsload.lct XXMNNAME.ldt MENU MENU_NAME="XXMNNAME"
Target:
FNDLOAD apps/apps 0 Y UPLOAD @FND:patch/115/import/afsload.lct XXMNNAME.ldt

Responsibilities:

Source:
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afscursp.lct XXRESNAME.ldt FND_RESPONSIBILITY RESP_KEY="XXRESNAME"
Target:
1. FNDLOAD apps/apps O Y UPLOAD $FND_TOP/patch/115/import/afscursp.lct XXRESNAME.ldt
2. FNDLOAD apps/apps 0 Y UPLOAD_PARTIAL $FND_TOP/patch/115/import/afscursp.lct XXRESNAME.ldt FND_RESPONSIBILITY RESP_KEY="XXRESNAME" APPLICATION_SHORT_NAME="PN"

Request Groups:

Source:
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afcpreqg.lct XXRQGNAME.ldt REQUEST_GROUP REQUEST_GROUP_NAME="XXRQGNAME" APPLICATION_SHORT_NAME="PN"
Target:
1. FNDLOAD apps/apps O Y UPLOAD $FND_TOP/patch/115/import/afcpreqg.lct XXRQGNAME.ldt
2. FNDLOAD apps/apps 0 Y UPLOAD_PARTIAL $FND_TOP/patch/115/import/afcpreqg.lct XXRQGNAME.ldt REQUEST_GROUP REQUEST_GROUP_NAME="XXRQGNAME" APPLICATION_SHORT_NAME="PN"

Request Sets:

Source:
Step1:
FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcprset.lct XXRQSNAME.ldt REQ_SET REQUEST_SET_NAME="XXRQSNAME"
Step2:
FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcprset.lct XXRQSLNAME.ldt REQ_SET_LINKS REQUEST_SET_NAME="XXRQSNAME"

Target:

Step1:
FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/afcprset.lct XXRQSNAME.ldt
Step2:
FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/afcprset.lct XXRQSLNAME.ldt

Lookups:

Source:
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/aflvmlu.lct XXLKPNAME.ldt FND_LOOKUP_TYPE APPLICATION_SHORT_NAME="PN" LOOKUP_TYPE="XXLKPNAME"

Target:

1. FNDLOAD apps/apps 0 Y UPLOAD aflvmlu.lct XXLKPNAME.ldt
2. FNDLOAD apps/apps 0 Y UPLOAD_PARTIAL $FND_TOP/patch/115/import/aflvmlu.lct XXLKPNAME.ldt FND_LOOKUP_TYPE LOOKUP_TYPE="XXLKPNAME" APPLICATION_SHORT_NAME="PN"

Value Sets:

Source:
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct XXVALSNAME.ldt VALUE_SET FLEX_VALUE_SET_NAME="XXVALSNAME"
Target:
1. FNDLOAD apps/apps 0 Y UPLOAD afffload.lct XXVALSNAME.ldt
2. FNDLOAD apps/apps 0 Y UPLOAD_PARTIAL $FND_TOP/patch/115/import/afffload.lct XXVALSNAME.ldt VALUE_SET FLEX_VALUE_SET_NAME="XXVALSNAME" APPLICATION_SHORT_NAME="PN"

Descriptive Flex-fields:

Source:
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct XXDFFNAME.ldt DESC_FLEX P_LEVEL='COL_ALL:REF_ALL:CTX_ONE:SEG_ALL' APPLICATION_SHORT_NAME="PN" DESCRIPTIVE_FLEXFIELD_NAME="PN_LEASE_DETAILS" P_CONTEXT_CODE="Global Data Elements"
Target:
FNDLOAD apps/apps 0 Y UPLOAD @FND:patch/115/import/afffload.lct XXDFFNAME.ldt

Key Flex-fields:

Source:
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct XXKFFNAME.ldt KEY_FLEX P_LEVEL=’COL_ALL:FQL_ALL:SQL_ALL:STR_ONE:WFP_ALL:SHA_ALL:CVR_ALL:SEG_ALL’ APPLICATION_SHORT_NAME="FND" ID_FLEX_CODE="key flex code" P_STRUCTURE_CODE="structure name”
Target:
FNDLOAD apps/apps 0 Y UPLOAD @FND:patch/115/import/afffload.lct XXKFFNAME.ldt

Concurrent Programs:

Source:
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct XXCPNAME.ldt PROGRAM APPLICATION_SHORT_NAME="PN" CONCURRENT_PROGRAM_NAME="XXCPNAME"
Target:
1. FNDLOAD apps/apps 0 Y UPLOAD @FND:patch/115/import/afcpprog.lct XXCPNAME.ldt
2. FNDLOAD apps/apps 0 Y UPLOAD_PARTIAL $FND_TOP/patch/115/import/afcpprog.lct XXCPNAME.ldt PROGRAM CONCURRENT_PROGRAM_NAME="XXCPNAME" APPLICATION_SHORT_NAME="PN"

Form Personalization:
Source:
FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/affrmcus.lct XXFPNAME.ldt FND_FORM_CUSTOM_RULES function_name="XXFPNAME"
Target:
FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/affrmcus.lct XXFPNAME.ldt

FND Users:

Source:
FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afscursp.lct ./XXUSERNAME.ldt FND_USER USER_NAME='XXUSERNAME'
Target:
FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/afscursp.lct ./ XXUSERNAME.ldt

Printer Styles:

Source:
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afcppstl.lct XXPRSTYLE.ldt STYLE PRINTER_STYLE_NAME="XXPRSTYLE"

Target:
FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/afcppstl.lct XXPRSTYLE.ldt


Some useful Meta-link Notes related to FNDLOAD:

1. For NLS Language using FNDLOAD:
Note: 434724.1
2. Troubleshooting Incorrect translation with FNDLOAD
Note: 299080.1

Note:
1. Test FNDLOAD commands multiple times in multiple instances before running into PROD instances.
2. UPLOAD_PARTIAL is used to modify existed programs.
3. Execution sequence is important ex: To create a responsibility  Create Form Create Function  Create Menu  Create Responsibility

Oracle Reports Interview Questions

Oracle Reports Interview Questions

1. How many different layouts are available in Reports? 

Ans: There are eight different layout formats:
1. Tabular
2. Form Like
3. Form Letter
4. Mailing Label
5. Group Left
6. Group Above
7. Matrix
8. Matrix with group


2. How many different triggers are available in Report?

Ans: There are five types of triggers in report 6i
1) Before report trigger
2) After report trigger
3) Before Parameter trigger
4) After parameter trigger
5) Between pages trigger
  
3.What is the Firing sequence of report trigger?

Ans: The reports triggers are fired in the following sequence.


*Before Parameter Form
* After Parameter Form
* Before Report
* Between Pages
* After Report


4. What is the difference between After Parameter Trigger and Before Report Trigger? 

Ans:
After parameter Trigger: It will fire after the parameter form is displayed.here we can do validation on parameter values.


Before Report Trigger: It will fire before the report is executed and after the query is parsed and date is fetched. 


5. What is the Format Trigger?

Ans: Format Trigger is a PL/SQL function. This trigger is going to fire before an object is printed in report output. it return boolean-true then go to print -false then don't print.


6. What happens when Flex mode is on ? 

When flex mode is on, reports automatically resizes the parent when the child is resized.


7. What happens when confine mode on ? 

When confine mode is on, the object cannot be moved outside its parent in the layout.  


8. What is a lexical parameter?

Lexical Parameter is used to replace the where, order by conditions at run time.


9. What are bind variables? 

Bind variables are used in oracle reports  for replacing the single parameter in the select statement.


10. What is the minimum number of groups required for a matrix report? 

The minimum of groups required for a matrix report are 4


11. What is the use of an Anchor in Reports? 

Anchor is used to make fixed distance between two objects in Reports Layout.


12. What is the difference between Frame and Repeating Frame? 

Frames are used to surround other objects and protect them from being overwritten or pushed by other objects. For example a frame might be used to surround all objects owned by a group to surround column headings or to surround summaries. 


When you default the layout for a report Report Builder creates frames around report objects as needed; you can also create a frame manually in the Layout Model view.


Repeating frames surround all of the fields that are created for a group’s columns. The repeating frame prints (is fired) once for each record of the group. 


When you default the layout for a report Report Builder creates repeating frames around fields as needed; you can also create a repeating frame manually in the Layout Model view.


13. What are different types of column in reports? 

There are three types of columns in Oracle report: 
1) Placeholder Column: Placeholder column is used to store a value for a variable.
2) Formula Column:  Used For doing mathematical calculations and returning one value
3) Summary Column: The summary columns perform aggregate functions such as SUM, COUNT, MAX, MIN, AVG, and the like.


14. Can u have more than one layout in report? 


It is possible to have more than one layout in a report by using the additional layout option in the layout editor.
===================
====================


1. What are Placeholder Columns ?


A placeholder is a "dummy" column for which you can conditionally set the datatype and value via PL/SQL or a user exit. Placeholder columns are useful when you want to selectively populate a column with a value (e.g., each time the nth record is fetched, or each time a record is fetched containing a specific value, etc.).






2. What are the various Module Types in Reports ?




A You can build three types of modules with Oracle Reports:




* external queries, which are ANSI-standard SQL SELECT statements that can be referenced by modules




* external PL/SQL libraries, which are collections of PL/SQL source code that can be referenced by modules




* reports, which are collections of report-level objects and references to external queries and PL/SQL libraries (optional) that can be referenced by modules






3. What are Physical and Logical pages in Reports ?




A report page can have any length and any width. Because printer pages may be smaller or larger than your report's "page," the concept of physical and logical pages is used.






Physical Page : A physical page (or panel) is the size of a page that will be output by your printer.


Logical Page : A logical page is the size of one page of your actual report; one logical page may be made up of multiple physical pages. The Previewer displays the logical pages of your report output, one at a time.


4. What are the various page layout sections in Oracle Reports ?




A report has three sections : 
•the report header pages, 
•report body/margin pages, 
•and report trailer pages.
5. What are various types of parameters ?




There are two types of parameters:


• default (system parameters)
• user-created (bind and lexical parameters)
6. How do you reference parameters and columns in reports ?




There are two ways to reference a parameter in Oracle reports:




* As bind references


* As lexical references




7. What are Bind Referencing and Lexical Referencing ?




Bind Referencing : Bind references are used to replace a single value in SQL or PL/SQL, such as a character string, number, or date. Use bind reference when you want the parameter to substitute only one value at runtime. Specifically, bind references may be used to replace expressions in SELECT, WHERE, GROUP BY, ORDER BY, HAVING, CONNECT BY, and START WITH clauses of queries.






Lexical Referencing : Lexical references are placeholders for text that you embed in a SELECT statement. Use Lexical reference when you want the parameter to substitute multiple values at runtime. You can use lexical references to replace the clauses appearing after SELECT, FROM, WHERE, GROUP BY, ORDER BY, HAVING, CONNECT BY, and START WITH.


8. What are the Types of Matrix report ?




 1. Single query 
 2. Multi query
 3. Nested Query 
 4. Matrix Break


9. What are widow lines ?


Widow lines are the minimum number of lines of the boilerplate text or field that should appear on the logical page where the text starts to print. If the number of lines specified for this property cannot fit on the logical page, then all lines of the boilerplate are moved to the next page.




10. What are widow records ?


Widow records are the minimum number of instances (records) that should appear on the logical page where the repeating frame starts to print. If the number of instances specified for this property cannot fit on the logical page where the repeating frame is initially triggered to print, then the repeating frame will start formatting on the next page.


11. What is 'page protect' property for objects ?


Page protect property for an object indicates whether to try to keep the entire object and its contents on the same logical page. Checking Page Protect means that if the contents of the object cannot fit on the current logical page, the object and all of its contents will be moved to the next logical page.


12. What is the 'Print Condition Type' property ?


'Print Condition Type' property specifies the frequency with which you want the object to appear in the report. The Print Condition Type options indicate the logical page(s) on which the object should be triggered to print with regard to the Print Condition Object.


13. What is the 'Print Condition Object' property ?


'Print Condition Object' property specifies the object on which to base the Print Condition Type of the current object. For example, if you specify a Print Condition Type of All and a Print Condition Object of Anchoring Object, the current object will be triggered to print on every logical page on which its anchoring object (parent object) appears.


14. What are the various values of the 'Print Condition Object' property in Reports ?


The various values are :


•Anchoring Object : Anchoring Object is the parent object to which the current object is implicitly or explicitly anchored.
•Enclosing Object : Enclosing Object is the object that encloses the current object.
15. What is the horizontal of vertical sizing property of objects ?


Horizontal of vertical sizing property specifies how the horizontal or vertical size of the object may change at runtime to accommodate the objects or data within it.


=============
1.What are the various types of reports ?


There are 8 Types of reports in oracle report.


1.Tabular
2. Form Like
3. Form Letter
4. Mailing Label
5. Group Left
6. Group Above
7. Matrix
8. Matrix with group







2. What are Anchors in Oracle Reports?

An anchor defines the relative position of an object to the object to which it is anchored. Anchors are used to determine the vertical and horizontal positioning of a child object relative to its parent. Since the size of some layout objects may change when the report runs (and data is actually fetched), you need anchors to define where you want objects to appear relative to one another.

3. What are the various types of anchors in Reports ?

A There are two types of anchors in Oracle Reports:
* implicit (anchors that Oracle Reports creates when a report is run)
* explicit (anchors you create)

4. What is an Implicit Anchor?

Implicit Anchors : At runtime, Oracle Reports generates an implicit anchor for each layout object that does not already have an explicit anchor. It determines for each layout object which objects, if any, can overwrite it, then creates an anchor from the layout object to the closest object that can overwrite it. This prevents the object from being overwritten. The implicit anchor functionality saves you from having to define the positioning of each object. Implicit anchors are not visible in the Layout editor. However, you can specify that the Object Navigator display anchoring information using the Object Navigator Options dialog.



5. What is an Explicit Anchor?



Explicit Anchors : Create an anchor in the Layout editor by clicking on the Anchor tool, dragging from one edge of the child to the one of the parent's edges, then specifying the anchor's properties in its property sheet. Any anchor you create for an object will override its implicit anchoring. Explicit anchors are always visible in the Layout editor unless you specify otherwise via the Layout Options dialog
6. What are the various report triggers ? What is their order of firing ?

A There are eight report triggers. Of these there are five global triggers called the Report Triggers. They are fired in the following order :
* Before Parameter Form
* After Parameter Form
* Before Report
* Between Pages
* After Report

7. Apart from the global report triggers what are the other triggers used in Oracle Reports?


Apart from the Five Global Report Triggers, there are three other types of triggers :

* Validation Triggers
* Format Triggers
* Action Triggers



8. What is Before Form Trigger? What is the importance of Before Form Trigger?



Before Form : It Fires before the Runtime Parameter Form is displayed. Using this trigger, you can access and change the values of parameters, PL/SQL global variables, and report-level columns. (Note : If the Runtime Parameter Form is suppressed, this trigger still fires. Consequently, you can use this trigger for validation of command line parameters).

9. What is After Form Trigger? What is the importance of After Form Trigger? 


After Form : It Fires after the Runtime Parameter Form is displayed. Using this trigger, you can access parameters and check their values. This trigger can also be used to change parameter values or, if an error occurs, return to the Runtime Parameter Form. Columns from the data model are not accessible from this trigger. (Note : If the Runtime Parameter Form is suppressed, the After Form trigger still fires. Consequently, you can use this trigger for validation of command line parameters or other data).

10. What is Before Report Trigger? What is the importance of Before Report Trigger? 


Before Report : Fires before the report is executed but after queries are parsed and data is fetched.


11. What is Between Pages Trigger? What is the importance of Between Pages Trigger?

Between Pages : Fires before each page of the report is formatted, except the very first page. This trigger can be used for customized page formatting. (Note : In the Previewer, this trigger only fires the first time that you go to a page. If you subsequently return to the page, the trigger does not fire again.)
12. What is After Report Trigger? What is the importance of After Report Trigger?


After Report : Fires after you exit the Previewer, or after report output is sent to a specified destination, such as a file, a printer, or an Oracle*Mail userid. This trigger can be used to clean up any initial processing that was done, such as deleting tables. Note, however, that this trigger always fires, whether or not your report completed successfully.


13. What is Validation Trigger? What is the importance of Validation  Trigger?


Validation Triggers : Validation Triggers are PL/SQL functions that are executed when parameter values are specified on the command line and when you accept the Runtime Parameter Form. (Notice that this means each Validation Trigger may fire twice when you execute the report). Validation Triggers are also used to validate the Initial Value of the parameter in the Parameter property sheet.


14. What is Format Trigger? What is the importance of Format Trigger?

Format Triggers : Format Triggers are PL/SQL functions executed before the object is formatted. The trigger can be used to dynamically change the formatting attributes of the object.

15. What is Action Trigger? What is the importance of Action Trigger?


Action Triggers : Action Triggers are PL/SQL procedures executed when a button is selected in the Previewer. The trigger can be used to dynamically call another report (drill down) or execute any other PL/SQL.
=========
1.What are the various values of the horizontal of vertical sizing property ?


The various values are :
Contract : Contract means the vertical size of the object decreases, if the formatted objects or data within it are short enough, but it cannot increase to a height greater than that shown in the editor. Note : Truncation of data may occur. (You can think of this option as meaning "only contract, do not expand.")


Expand : Expand means the vertical size of the object increases, if the formatted objects or data within it are tall enough, but it cannot decrease to a height less than that shown in the editor. (You can think of this option as meaning "only expand, do not contract.")


Fixed : Fixed means the height of the object is the same on each logical page, regardless of the size of the objects or data within it. Note : Truncation of data may occur. The height of the object is defined to be its height in the editor.


Variable : Variable means the object may expand or contract vertically to accommodate the objects or data within it (with no extra space), which means the height shown in the editor has no effect on the object's height at runtime.


2. How do you display a message in reports ?


Using SRW.Message


3. What are the various values of 'Print Panel Order' property of report ?


The various values are :
•Across/Down : Across/Down means the physical pages of the report body will print left-to-right then top-to-bottom.
•Down/Across : Down/Across means the physical pages of the report body will print top-to-bottom and then left-to-right.
4. What is the 'Print Direction' Property of Repeating frames ?


'Print Direction' Property specifies the direction in which successive instances of the repeating frame appear.


5. What are the various values of the 'Print Direction' Property of Repeating frames ?
Following are the various values :
•Across : Across means that each instance of the repeating frame subsequent to the first instance is printed to the right of the previous instance across the logical page.
•Across/Down : Across/Down means that each instance of the repeating frame subsequent to the first instance is printed to the right of the previous instance until an entire instance cannot fit between the previous instance and the right margin of the logical page. At that time, Oracle Reports prints the instance below the left-most instance on the logical page, provided there is enough vertical space left on the logical page for the instance to print completely.
•Down : Down means that each instance of the repeating frame subsequent to the first instance is printed below the previous instance down the logical page.
•Down/Across : Down/Across means that each instance of the repeating frame subsequent to the first instance is printed below the previous instance until an entire instance cannot fit inside the bottom margin of the logical page. At that time, Oracle Reports prints the instance to the right of the topmost instance on the logical page, provided there is enough horizontal space left on the logical page for the instance to print completely.
6. What is the 'Keep with Anchoring Object' object property ?


'Keep with Anchoring Object' object property indicates whether to keep an object and the object to which it is anchored on the same logical page. Checking Keep with Anchoring Object means that if the object, its anchoring object, or both cannot fit on the logical page, they will be moved to the next logical page.


7. What is 'Page Break Before' object property ?


'Page Break Before' object property indicates that you want the object to be formatted on the page after the page on which it is initially triggered to print. Note that this does not necessarily mean that all the objects below the object with Page Break Before will move to the next page.


8. What is 'Page Break After' object property ?


'Page Break After' object property indicates that you want all children of the object to be moved to the next page. In other words, any object that is a child object of an anchor (implicit or explicit) to this object will be treated as if it has Page Break Before set. Note that this does not necessarily mean that all the objects below the object with Page Break After will move to the next page.


9. What is the 'Break Order' property of columns ?


The 'Break Order' property is the order in which to display the column's values. This property applies only to columns that identify distinct values of user-created groups (i.e., break groups). The order of column values in a default group is determined by the ORDER BY clause of the query. For column values in user-created groups, however, you must use Break Order to specify how to order the break column's values.


10. What are the various types of links ?


The Data Link tool draws a link between a parent group and a child query. Creating a link is a drag and drop operation. Clicking and dragging from one column to another creates a link between those two columns (column to column link). Clicking and dragging from one query to another creates all possible links between columns selected by the queries based on database constraints (query to query link). Clicking and dragging between two groups creates a group-to-group link (i.e., a link with no columns).


11. Name some of the procedures in the SRW package ?


* SRW.Message, SRW.User_Exit, SRW.Do_Sql, SRW.Run_Report


12. What are the various report layout regions ?
 There are three report regions in the Layout editor :


• header
• body/margin
• trailer
13. In Brief Describe the various report layout regions?


Header : The report header pages appear once at the beginning of each report on a set of separate pages. They can contain text, graphics, data, and computations.


Body/Margin : The body/margin pages appear between the header and trailer pages, and are the bulk of the report. Each physical page in this section consists of a body and a margin. The body contains the majority of the report's text, graphics, data, and computations.
A top and bottom margin appear on each page, until all data within the body has been formatted. A margin may include text, graphics, page numbers, page totals, and grand totals. The default margin size is one half inch each for the top and bottom margins and zero for the left and right margins.


Trailer : The report trailer pages appear once at the end of each report on a set of separate pages. They can contain text, graphics, data, and computations.


14. What is more efficient : Maximum rows or Group Filter ?


Maximum Rows in the Query property sheet restricts the number of records fetched by the query. A group filter determines which records to include and which records to exclude. Since Maximum Rows actually restricts the amount of data retrieved, it is faster than a group filter in most cases. If you are using a Filter of Last or Conditional, Oracle Reports must retrieve all of the records in the group before applying the filter criteria. As a result, Maximum Rows or a Filter of First is faster.
===============
1. What is SRW Package? 
The Report builder Built in package know as SRW Package (Sql Report Writer) This package extends reports, Control report execution, output message at runtime, Initialize layout fields, Perform DDL statements used to create or Drop temporary table, Call User Exit, to format width of the columns, to page break the column, to set the colors Ex: SRW.DO_SQL, It’s like DDL command, we can create table, views, etc.


2. What is SRW package and some procedures in SRW?
It is the standard reports package and it has many procedures like USER_EXITS, DO_SQL, RUN_REPORT, MESSAGE,TRACE, BREAK, SET_ATTR.


3. Where in reports do you set the context information (like org_id)?
SRW.INIT


4. What is User Parameters?
Parameter, which is created by user. For to restrict values with where clause in select statement. We can use Lovs in  user parameter with static and Dynamic Select Statement.


5. What is System Parameters?
These are built-in parameters provided by Oracle corporation.
BACKGROUND: Is whether the report should run in the foreground or the background.
COPIES Is the number of report copies that should be made when the report is printed.
CURRENCY Is the symbol for the currency indicator (e.g., " $?).
DECIMAL Is the symbol for the decimal indicator (e.g., ".").
DESFORMAT Is the definition of the output device's format (e.g., landscape mode for a printer). This parameter is used when running a report in a character-mode environment, and when sending a bitmap report to a file (e.g. to create PDF or HTML output).
DESNAME Is the name of the output device (e.g., the file name, printer's name, mail userid).
DESTYPE Is the type of device to which to send the report output (screen, file, mail, printer, or
Screen using PostScript format).
MODE Is whether the report should run in character mode or bitmap.
ORIENTATION Is the print direction for the report (landscape, portrait, default).
PRINTJOB Is whether the Print Job dialog box should appear before the report is run.
THOUSANDS Is the symbol for the thousand's indicator (e.g., ",").


6. How can you print barcodes in oracle reports?
By installing the Barcode Font and using the Chart field in the Layout.


7. What are Format triggers?
Format triggers enable you to modify the display of objects dynamically at run time or to suppress display altogether for Headings, repeating frames, field and boilerplate object. Example:
i) To format the max (Sal) for particular department.
ii) To format the Sal column with a Dollar ($) prefix.
iii) To format Date formats….etc


8. What is Data Model?
Data Model is logical group of the Report Objects through query and Data model tools. Once query is compiled report automatically generates group. The queries build the groups and then Groups are used to populate the report. The only function of queries in report is to create the groups. The Report Editor's Data Model view enables you to define and modify the data model objects for a report. 
9. How do you call a concurrent program or another report from a report?
We can use FND_SUBMIT.REQUEST() to call a concurrent program from a report. Use SRW.RUN_REPORT() to run a report directly without registering it as a concurrent program.


10. What is Layout model?
Layout Model is to physically arrange Data model group objects on the Report. The Report Editor's Layout Model view enables you to define and modify the layout model objects for a report. In this view, objects and their property settings are represented symbolically to highlight their types and relationships.


11. What is Live Previewer? 
The Live Previewer is a work area in which you can preview your report and manipulate the actual or live data at the same time. In the Live Previewer you can customize reports interactively, meaning that you can see the results immediately as you make each change.
To activate buttons in the Live Previewer, you must display the report output in the Runtime Previewer. In order to edit your report, such as changing column size, move columns, align columns insert page numbers, edit text, change colors, change fonts set format masks, insert field the Live Previewer must be in Flex Mode.


12. What is Parameter Form 
The Parameter Form view is the work area in which you define the format of the report's Runtime Parameter Form. To do this, you define and modify parameter form objects (fields and boilerplate).When you run a report, Report Builder uses the Parameter Form view as a template for the Runtime Parameter Form. Fields and boilerplate appear in the Runtime Parameter Form exactly as they appear in the Parameter Form view. If you do not define a Runtime Parameter Form in the Parameter Form view, Report Builder displays a default Parameter Form for you at runtime.


13. What are user exits in reports and name a few?
User exits provided a way to pass control from Reports Builder to a program you have written, which performs some function, and then returns control to Reports Builder. Ex: SRW.DO_SQL, SRW.USER_EXIT.


14. What is Group?
Groups are created to organize the columns in your report. When you create a query, Report Builder automatically creates a group that contains the columns selected by the query. You create additional groups to produce break levels in the report, either manually or by using the Report Wizard to create a group above or group left report.


15. What is Template? 
Templates define common characteristics and objects that you want to apply to multiple reports. For example, you can define a template that includes the company logo and sets fonts and colors for selected areas of a report. 
Creation of Template: In Report editor , open a existing Template or Create a new Template and save it concerned directory. Then Edit CAGPREFS.ORA File , and Specify which type of Template are u going to develop.
Ex. Tabular, form, matrix Then give your developed template *.tdf file name.
Develop Report with Newly developed Template.


16. How can you display one record per page?
Set Repeating Frame Properties : Maximum records per page=1 And it will override group filter property.


18. What are the Non_query fields?
Following are the non_query fields: 
Aggregated Information, 
Calculated information, 
A string Function


19. How Can I highlight and change all the format masks and print conditions of a bunch of fields all at once?
If you want to highlight a bunch of objects then right click and select "properties", Oracle gives you a stacked set of the individual properties forms for each of the selected objects. While this may be useful for some objects, it requires changing values individually for each object. However, you can select the group of fields and then select "Common properties" from the "Tools" menu which will allow you to set the format mask , print conditions etc. for the whole set of objects at once.

===============
1.What is the difference between Conditional Formatting and format trigger?
Both provide the similar functionality. They are used to format the output based on particular conditions. Format triggers provide a wide variety of options when compared to conditional formatting(GUI). In format Triggers we have the option to write PL/SQL code where as conditional formatting is GUI based which provide limited options.


2.What is Flex mode and Confine mode?
Confine mode
On: child objects cannot be moved outside their enclosing parent objects.
Off: child objects can be moved outside their enclosing parent objects.
Flex mode:
On: parent borders "stretch" when child objects are moved against them. 


4. What is Page Break? 
To limit the records per page.


5. What is Page Protector property in oracle reports ?
The Page Protect property indicates whether to try to keep the entire object and its contents on the same logical page. Setting Page Protect to Yes means that if the contents of the object cannot fit on the current logical page, the object and all of its contents will be moved to the next logical page. Ex: if you set yes, the object information prints another page.

6.How do you mail the output of a report?
You can use following methogs to mail the output of a report. 
1. Use UTL_SMTP (refer to Scripts tab for more details) 
2. Use MAILX called in a shell script registered as a concurrent program with parameters File name and path.


7. What is Print Direction? 
The Print Direction property is the direction in which successive instances of the repeating frame appear.


8. What is Vertical and Horizental Elasticity
The Horizontal Elasticity property is determins how the horizontal size of the object will change at runtime to accommodate the objects or data within it:


9. What is Formula Column?
A formula column performs a user-defined computation on another column(s) data, including placeholder columns.


10. How do you display only one record on each page in a report?
Give Page Break in the Format trigger of the repeating frame.


11. What is Summary columns? 
A summary column performs a computation on another column's data. Using the Report Wizard or Data Wizard, you can create the following summaries: sum, average, count, minimum, maximum, % total. You can also create a summary column manually in the Data Model view, and use the Property Palette to create the following additional summaries: first, last, standard deviation, variance.


12. What is Boilerplate? 
Boilerplate is any text or graphics that appear in a report every time it is run. Report Builder will create one boilerplate object for each label selected in the Report Wizard (it is named B_
Column name). Also, one boilerplate object is sometimes created for each report summary. A boilerplate object is owned by the object surrounding it, unless otherwise noted.


13. What is Data Link
When we join multiple queries in a report the join condition is stored in the data link section
Data links relates the results of multiple queries. A data link (or parent-child relationship) causes the child query to be executed once for each instance of its parent group. When you create a data link in the Data Model view of your report, Report Builder constructs a clause (as specified in the link's Property Palette) that will be added to the child query's SELECT statement at runtime. You can view the SELECT statements for the individual parent and child queries in the Builder, but can not view the SELECT statement that includes the clause created by the data link you define.


14. What is Break Column? 
We can break a column through data model , it is Displayed once for a group


15. How can you grey out/ highlight /hide some records based on conditions in a report?
You can use Conditional formatting to achieve it.


16. How do u call Report from form? 
Use RUN_PRODUCT and RUN_REPORT_OBJECT to call a report from Oracle Forms.


17. What is Report Bursting?The capability of producing multiple copies of a given report or portion of it in different output formats is referred to as report bursting. Reports bursting offers you to deliver a single report to multiple destinations simultaneously. It offers you to create multiple reports out of one single report model. For example, you can create just one employee report for all your departments and send an email with a PDF-attachment containing the report to each manager. Each report would contain only the relevant department information for that particular manager. Using the reports bursting functionality will reduce the overhead since you will only have a single data fetch and report format.

18. What is Additional Layout?
Additional layout is created for two different formats using same query and groups without modifying default layout created by report wizard., we can use both layouts according to user requirement.


19. How do you write the report output to Excel file or text file?
You can use the following methods to write the output of oracle reports to Excel or text file. 
1.Use TEXT_IO package 
2.Use SPOOL in After Report trigger