3
We can integrate Oracle reports with Oracle Application Object Library, and run them as concurrent programs from your forms or through standard request submission. These are the user exits available in Oracle Reports that makes AOL integration. FND SRWINIT FND SRWEXIT FND FORMAT_CURRENCY FND FLEXIDVAL FND FLEXSQL y FND SRWINIT o This is a User Exit which sets your profile option values and allows Oracle AOL user exits to detect that they have been called by oracle repots. o FND SRWINIT also allows your report to use the correct organization automatically. o Can be used in BEFORE-REPORT Trigger. y FND_SRWEXIT o This user exit ensures that all the memory allocated for AOL user exits has been freed up properly. o Can be used in AFTER- REPORT Trigger y USER EXITS o Are used in Oracle APPS to access user profile values and perform proper calculation. o Ex. of Other AOL User exits available in Reports are given below. y FND FORMAT_CURRENCY o To format the currency amount dynamically depending upon the precision of the actual currency value, standard precision, users profile values and location (country) of the site. o You obtain the currency value from the database into an Oracle Reports column. Define another Oracle Reports column, a formula column of type CHAR, which executes the FORMAT_CURRENCY user exit to format the currency value. A displayed field has this formula column as its source so that the formatted value is automatically copied into the field for display. Syntax FND FORMAT_CURRENCY CODE= :column containing currency code DISPLAY  _WIDTH=â¼field width for display AMOUNT=:source column name DISPLAY=:display column name [MINIMUM_PRECISION=:P_MIN  _PRECISION] [PRECISION={STANDARD|EXTENDED}] [DISPLAY  _SCALING  _FACTOR=:P_SCALING  _FACTOR] y FND FLEXSQL o This user exits allows you to use Flex fields in Reports. Syntax: FND FLEXSQL CODE="flexfield code" APPL_SHORT_NAME="application short name"

We Can Integrate Oracle Reports With Oracle Application Object Library(USER EXIT)

Embed Size (px)

Citation preview

8/6/2019 We Can Integrate Oracle Reports With Oracle Application Object Library(USER EXIT)

http://slidepdf.com/reader/full/we-can-integrate-oracle-reports-with-oracle-application-object-libraryuser 1/3

We can integrate Oracle reports with Oracle Application Object Library, and run them asconcurrent programs from your forms or through standard request submission.

These are the user exits available in Oracle Reports that makes AOL integration.

FND SRWINIT

FND SRWEXITFND FORMAT_CURRENCYFND FLEXIDVAL

FND FLEXSQL 

y  FND SRWINIT o  This is a User Exit which sets your profile option values and allows Oracle AOL

user exits to detect that they have been called by oracle repots.o  FND SRWINIT also allows your report to use the correct organization

automatically.o  Can be used in BEFORE-REPORT Trigger.

y  FND_SRWEXIT 

o  This user exit ensures that all the memory allocated for AOL user exits hasbeen freed up properly.o  Can be used in AFTER- REPORT Trigger

y  USER EXITS o  Are used in Oracle APPS to access user profile values and perform proper

calculation.o  Ex. of Other AOL User exits available in Reports are given below.

y  FND FORMAT_CURRENCY o  To format the currency amount dynamically depending upon the precision of 

the actual currency value, standard precision, users profile values andlocation (country) of the site.

o  You obtain the currency value from the database into an Oracle Reportscolumn. Define another Oracle Reports column, a formula column of type

CHAR, which executes the FORMAT_CURRENCY user exit to format thecurrency value. A displayed field has this formula column as its source so thatthe formatted value is automatically copied into the field for display.

Syntax

FND FORMAT_CURRENCY CODE= :column containing currency codeDISPLAY _WIDTH=â¼field width for displayAMOUNT=:source column nameDISPLAY=:display column name[MINIMUM_PRECISION=:P_MIN _PRECISION] [PRECISION={STANDARD|EXTENDED}] 

[DISPLAY _SCALING _FACTOR=:P_SCALING _FACTOR] 

y  FND FLEXSQL o  This user exits allows you to use Flex fields in Reports.

Syntax:

FND FLEXSQLCODE="flexfield code"APPL_SHORT_NAME="application short name"

8/6/2019 We Can Integrate Oracle Reports With Oracle Application Object Library(USER EXIT)

http://slidepdf.com/reader/full/we-can-integrate-oracle-reports-with-oracle-application-object-libraryuser 2/3

OUTPUT=":output lexical parameter name"MODE="{ SELECT | WHERE | HAVING | ORDER BY}"[DISPLAY="{ALL | flexfield qualifier | segmentnumber}"] [SHOWDEPSEG="{Y | N}"] [NUM=":structure defining lexical" | 

MULTINUM="{Y | N}"] [TABLEALIAS="code combination table alias"] [OPERATOR="{ = | < | > | <= | >= | != | "||" | BETWEEN | QBE}"] [OPERAND1=":input parameter or value"] [OPERAND2=":input parameter or value"] 

y  FND FLEXIDVAL 

y  This user exits allows you to use Flex fields in Reports

Syntax:

FND FLEXIDVALCODE="flexfield code"APPL_SHORT_NAME="application short name"DATA=":source column name"[NUM=":structure defining source column/lexical"] [DISPLAY="{ALL | flexfield qualifier |segment number}"] [IDISPLAY="{ALL| flexfield qualifier | segmentnumber}"] [SHOWDEPSEG="{Y | N}"] [VALUE=":output column name"] [DESCRIPTION=":output column name"] [APROMPT=":output column name"] [LPROMPT=":output column name"] 

[PADDED _VALUE=":output column name"] [SECURITY=":column name"] 

This is an AOL user exit available to populate key flexfields for display

CODE means Key flexfield code (GL# is for Accounting Flex field, for all other check thetable FND _ID _FLEXS)NUM is the structure of the key flex field(Chart of Accounts Number)DATA is where you store the retrieved data (your sql output).

Example

SRW.USER_EXIT ('FND FLEXSQL CODE="GL#"NUM=":P_STRUCT_NUM"APPL_SHORT_NAME="SQLGL"OUTPUT=":P_SEC _SEG"MODE="SELECT"DISPLAY=":P_SEC _SEG _VAL" ') 

The userexit call FND FLEXIDVAL: 

8/6/2019 We Can Integrate Oracle Reports With Oracle Application Object Library(USER EXIT)

http://slidepdf.com/reader/full/we-can-integrate-oracle-reports-with-oracle-application-object-libraryuser 3/3

SRW.REFERENCE (:SEC _SEG);SRW.USER_EXIT('FND FLEXIDVAL CODE="GL#"DATA=":SEC _SEG"APPL_SHORT_NAME="SQLGL"VALUE=":SEC _SEG _DISP"DISPLAY="ALL"

NUM=":P_STRUCT_NUM" ');return(:sec_seg_disp