Wednesday 21 December 2016

FNDLOAD Scripts

FNDLOAD Command to download a Form.

FNDLOAD apps/<Pwd> 0 Y DOWNLOAD $FND_TOP/patch/115/import/afsload.lct <LDT_FILE_NAME>.ldt FORM FORM_NAME="<FORM_FUNCTION_NAME>"

FNDLOAD apps/<Pwd> 0 Y UPLOAD_PARTIAL $FND_TOP/patch/115/import/afsload.lct <LDT_FILE_NAME>.ldt FORM FORM_NAME="<FORM_FUNCTION_NAME>"


FNDLOAD Command to download a Form Function.

FNDLOAD apps/<Pwd> 0 Y DOWNLOAD $FND_TOP/patch/115/import/afsload.lct <LDT_FILE_NAME>.ldt FUNCTION FUNCTION_NAME="<FORM_FUNCTION_NAME>"

FNDLOAD apps/<Pwd> 0 Y UPLOAD $FND_TOP/patch/115/import/afsload.lct <LDT_FILE_NAME>.ldt - WARNING=YES UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE


FNDLOAD to download/Upload a Menu

FNDLOAD apps/<Pwd>  0 Y DOWNLOAD $FND_TOP/patch/115/import/afsload.lct <LDT_FILE_NAME >.ldt MENU MENU_NAME="<Menu_Name>"

FNDLOAD apps/<Pwd>   0 Y UPLOAD $FND_TOP/patch/115/import/afsload.lct <LDT_FILE_NAME >.ldt

Note: To attach a form function with an existing menu, download the menu from the source instance and delete all the functions except the one which you wanted to attach and then upload the edited ldt file in to the target instance. or use the below script

FNDLOAD apps/<Pwd> 0 Y DOWNLOAD $FND_TOP/patch/115/import/afsload.lct <LDT_FILE_NAME>.ldt MENU PARENT_MENU_NAME="<MENU_NAME>" FUNCTION_NAME="<FORM_FUNCTION_NAME>"

FNDLOAD apps/<PWD> 0 Y UPLOAD $FND_TOP/patch/115/import/afsload.lct <LDT_FILE_NAME>.ldt


FNDLOAD Command to download a Concurrent Program.

FNDLOAD apps/<Pwd> O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct <LDT_FILE_NAME>.ldt PROGRAM APPLICATION_SHORT_NAME="<APP_SHORT_NAME>" CONCURRENT_PROGRAM_NAME="<CP_SHORT_NAME>"

FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/afcpprog.lct <LDT_FILE_NAME>.ldt - WARNING=YES UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE


FNDLOAD Command to download a Request Group.

FNDLOAD apps/<Pwd> 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcpreqg.lct <LDT_FILE_NAME>.ldt REQUEST_GROUP REQUEST_GROUP_NAME="<RG name, not the code>" APPLICATION_SHORT_NAME="<APP_SHORT_NAME>"

FNDLOAD Command to download a Request Group for a specific Program.

FNDLOAD apps/<Pwd> 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcpreqg.lct <LDT_FILE_NAME>.ldt REQUEST_GROUP REQUEST_GROUP_NAME="<RG name, not the code>" APPLICATION_SHORT_NAME="<APP_SHORT_NAME>" UNIT_NAME="<CP_SHORT_NAME>"
Note: In request group name, give the actual name and not the RG code.

FNDLOAD apps/<Pwd> 0 Y UPLOAD $FND_TOP/patch/115/import/afcpreqg.lct <LDT_FILE_NAME>.ldt


FNDLOAD Command to download a Template for a Data definition.

FNDLOAD apps/<Pwd>  O Y DOWNLOAD  $XDO_TOP/patch/115/import/xdotmpl.lct <LDT_FILE_NAME>.ldt XDO_DS_DEFINITIONS APPLICATION_SHORT_NAME="<APP_SHORT_NAME>" DATA_SOURCE_CODE="<DATA_DEFINITION_CODE>" TMPL_APP_SHORT_NAME="<TEMP_APPLICATION_SHORT_NAME>" TEMPLATE_CODE="<TEMPLATE_CODE>"

FNDLOAD apps/<Pwd> 0 Y UPLOAD $XDO_TOP/patch/115/import/xdotmpl.lct <LDT_FILE_NAME>.ldt


FNDLOAD Command to download a Request Set

FNDLOAD apps/<Pwd>   0 Y DOWNLOAD $FND_TOP/patch/115/import/afcprset.lct <LDT_FILE_NAME>.ldt REQ_SET REQUEST_SET_NAME="<REQUEST_SET_SHORT_NAME>"

FNDLOAD apps/apps O Y UPLOAD $FND_TOP/patch/115/import/afcprset.lct  <LDT_FILE_NAME>.ldt UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE


FNDLOAD Command to download the Link Stages for Request Set

FNDLOAD apps/<Pwd> 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcprset.lct <LDT_FILE_NAME>.ldt REQ_SET_LINKS REQUEST_SET_NAME="<REQUEST_SET_SHORT_NAME>"

FNDLOAD apps/apps O Y UPLOAD $FND_TOP/patch/115/import/afcprset.lct  <LDT_FILE_NAME>.ldt UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE


FNDLOAD Command to download a lookup

FNDLOAD apps/<PWD> 0 Y DOWNLOAD $FND_TOP/patch/115/import/aflvmlu.lct <LDT_FILE_NAME>.ldt FND_LOOKUP_TYPE APPLICATION_SHORT_NAME="APP_SHORT_NAME" LOOKUP_TYPE="<LOOKUP_CODE>"

FNDLOAD apps/<PWD> O Y UPLOAD $FND_TOP/patch/115/import/aflvmlu.lct <LDT_FILE_NAME>.ldt UPLOAD_MODE=REPLACE CUSTOM_MODE=FORCE


 FNDLOAD Command to download a Responsibility

FNDLOAD apps/<PWD> 0 Y DOWNLOAD $FND_TOP/patch/115/import/afscursp.lct <LDT_FILE_NAME>.ldt FND_RESPONSIBILITY RESP_KEY="<RESPONSIBILITY_KEY>"

FNDLOAD apps/<PWD> 0 Y UPLOAD $FND_TOP/patch/115/import/afscursp.lct <LDT_FILE_NAME>.ldt


FNDLOAD Command to download a Form Personalization

FNDLOAD apps/<PWD> 0 Y DOWNLOAD $FND_TOP/patch/115/import/affrmcus.lct <LDT_FILE_NAME>.ldt FND_FORM_CUSTOM_RULES FORM_NAME="<YOUR_FORM_NAME>"

FNDLOAD apps/<PWD> 0 Y UPLOAD $FND_TOP/patch/115/import/affrmcus.lct <LDT_FILE_NAME>.ldt


FNDLOAD Command to download a Value set

FNDLOAD apps/<PWD> O Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct <LDT_FILE_NAME>.ldt VALUE_SET FLEX_VALUE_SET_NAME="<VALUE_SET_NAME>"

If value set has values then,

FNDLOAD apps/<PWD> 0 Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct <LDT_FILE_NAME>.ldt VALUE_SET_VALUE FLEX_VALUE_SET_NAME="<VALUE_SET_NAME>"

FNDLOAD apps/<PWD> 0 Y UPLOAD $FND_TOP/patch/115/import/afffload.lct <LDT_FILE_NAME>.ldt


FNDLOAD Command to download Profile Options

FNDLOAD apps/<PWD> O Y DOWNLOAD $FND_TOP/patch/115/import/afscprof.lct <LDT_FILE_NAME>.ldt PROFILE PROFILE_NAME="<PROFILE_OPTION_NAME>" APPLICATION_SHORT_NAME="APP_SHORT_NAME"

FNDLOAD apps/<PWD> 0 Y UPLOAD $FND_TOP/patch/115/import/afscprof.lct <LDT_FILE_NAME>.ldt


FNDLOAD Command to download Alerts

FNDLOAD apps/apps 0 Y DOWNLOAD $ALR_TOP/patch/115/import/alr.lct XX_CUSTOM_ALR.ldt ALR_ALERTS APPLICATION_SHORT_NAME=XXCUST ALERT_NAME="XX - Alert Name"

FNDLOAD apps/apps 0 Y UPLOAD $ALR_TOP/patch/115/import/alr.lct XX_CUSTOM_ALR.ldt CUSTOM_MODE=FORCE


FNDLOAD Command to download DATA_TEMPLATE (Data Source .xml file)

java oracle.apps.xdo.oa.util.XDOLoader DOWNLOAD -DB_USERNAME apps -DB_PASSWORD apps -JDBC_CONNECTION '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=XX_HOST_NAME)(PORT=XX_PORT_NUMBER))(CONNECT_DATA=(SERVICE_NAME=XX_SERVICE_NAME)))' -LOB_TYPE DATA_TEMPLATE -LOB_CODE XX_TEMPLATE -APPS_SHORT_NAME XXCUST -LANGUAGE en -lct_FILE $XDO_TOP/patch/115/import/xdotmpl.lct -LOG_FILE $LOG_FILE_NAME

java oracle.apps.xdo.oa.util.XDOLoader UPLOAD -DB_USERNAME apps -DB_PASSWORD apps -JDBC_CONNECTION '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=XX_HOST_NAME)(PORT=XX_PORT_NUMBER))(CONNECT_DATA=(SERVICE_NAME=XX_SERVICE_NAME)))' -LOB_TYPE DATA_TEMPLATE -LOB_CODE XX_TEMPLATE -XDO_FILE_TYPE XML -FILE_NAME $DATA_FILE_PATH/$DATA_FILE_NAME.xml -APPS_SHORT_NAME XXCUST -NLS_LANG en -TERRITORY US -LOG_FILE $LOG_FILE_NAME


FNDLOAD Command to download RTF TEMPLATE (Report Layout .rtf file)

java oracle.apps.xdo.oa.util.XDOLoader DOWNLOAD -DB_USERNAME apps -DB_PASSWORD apps -JDBC_CONNECTION '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=XX_HOST_NAME)(PORT=XX_PORT_NUMBER))(CONNECT_DATA=(SERVICE_NAME=XX_SERVICE_NAME)))' -LOB_TYPE TEMPLATE -LOB_CODE XX_TEMPLATE -APPS_SHORT_NAME XXCUST -LANGUAGE en -TERRITORY US -lct_FILE $XDO_TOP/patch/115/import/xdotmpl.lct -LOG_FILE $LOG_FILE_NAME



java oracle.apps.xdo.oa.util.XDOLoader UPLOAD -DB_USERNAME apps -DB_PASSWORD apps -JDBC_CONNECTION '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=XX_HOST_NAME)(PORT=XX_PORT_NUMBER))(CONNECT_DATA=(SERVICE_NAME=SERVICE_NAME)))' -LOB_TYPE TEMPLATE -LOB_CODE XX_TEMPLATE -XDO_FILE_TYPE RTF -FILE_NAME $RTF_FILE_PATH/$RTF_FILE_NAME.rtf -APPS_SHORT_NAME XXCUST -NLS_LANG en -TERRITORY US -LOG_FILE $LOG_FILE_NAME

Oracle Reports FAQS

1. REPORT TYPES
A) Tabular Report                                      B) Group Left Report
C) Group Above Report                                       D) Form like report , Form letter
E) Matrix Report, with group                     F) Multi Media Report
G) Mailing Label Report                             H) OLE Report.

2. How do you register a report?

 *Design your report.
· Generate the executable file of the report.
· Move the executable as well as source files to the appropriate product’s folder.
· Register the report as concurrent executable.
· Define the concurrent program for the executable registered.
· Add the concurrent program to the request group of the responsibility.

3. What are the different triggers in report?

 *There are five report trigger:
· Before Report
· After Report
· Before Parameter Form
· After Parameter Form
· Between Pages

4. The Firing sequence for report triggers is

* Before Parameter form Trigger-Fires before the runtime parameter form are displayed.
The parameter values can be accessed and changed.
* After Parameter form Trigger.-Fires after the runtime parameter form are displayed.
The parameters can be accessed and their values can be checked.
*Before Report Trigger
Fires before the report is executed but after the queries is passed and data is fetched.
*Between Pages Trigger.-Fires between each page of the report are formatted, except the very first pages. This is used for customized page formatting.
* After Report Trigger-Fires after exiting from the run time premier or after report output is sent to a specified destination. (File, Printer, Mai lid etc….)This is used to clean up any initial processing that was done such as deleting the tables. This Trigger always fires irrespective of success or failure of the report.

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.


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.


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.




5. Frame: Surrounds the objects and protect them from being over written 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


6. Repeating Frame: Repeating frame surrounds all of the fields that are created for group’s columns. Repeating frame prints once for each record of the group. For frames and repeating frames, the property elasticity defines whether the size of the frame or repeating frame should with the objects inside of it at runtime.


7. Data Link: Data links relate the results of multiple queries. A data link (Parent – Child Relation Ship) causes the child query to be executed once for each instance of its parent group.


8. How u defines reports parameter in oracle application?

*Token in Concurrent Program creation: For a parameter in an Oracle Reports program, the keyword or parameter appears here. The value is case insensitive. For other types of programs, you can skip this field.

9.Parameters: A parameter is a variable whose value can be set at runtime (from the run time parameter of the command line).User parameters are created by the user and system parameters are created by Report Builder. System parameters cannot be renamed or deleted.


10.Bind Parameters (Variables):Bind references (or Variables) are used to replace a single value in SQL or PL/SQL, such as a character string, number or date. Bind references may be used to replace expressions in SELECT, WHERE, GROUP BY, ORDER BY, HAVING, CONNECT BY and START WITH clauses of queries. Bind references cannot be referenced in FROM clauses. Bind variables can be referenced by entering a colon (:) followed immediately by the column or parameter name. If the parameter / column are not created before making a bind reference, report builder will create a parameter.


11. Lexical Parameters (Variables): Lexical references are place holders for text that is embedded in a SELECT statement. Lexical Variables can replace the clauses appearing after SLECT, FROM, WHERE, GROUP BY, ORDER BY, HAVING, CONNECT BY, and START WITH. You can’t make lexical reference in a pl/sql statements.


12. What is Flex mode and Confine mode?

Confine mode (lock option)
On: child objects cannot be moved outside their enclosing parent objects.
Off: child objects can be moved outside their enclosing parent objects.

Flex mode:

Flex is the property of moving the related fields together by setting the flex property on
On: parent borders "stretch" when child objects are moved against them.
Off: parent borders remain fixed when child objects are moved against them.

13. What are the different columns in reports?

Formula Column: It performs a user-defined computation on another columns data, including Place-holder columns. Formulas are PL/SQL functions that populate formula or place holder columns. Cannot be used to populate parameter values.


Summary Column: Performs a computation on another columns data like sum, average, count, minimum, maximum, %, total.

For group reports, the report wizard and data wizard create ‘n’ summary fields in the data model for each summary column that is defined.
 One at each group level above the column being summarized.
One at the report level.

Place Holder Column 

A Place holder column is a column for which, the data type and value can be set dynamically (Programmatically)
*The value can be set for a place holder column in the following places.
Before report trigger if the place holder is a report level column.
Report level formula column, if the place holder is a report level column.
A formula in the place holders group below it (The value is set once for each record of the group)

14. What are user exists in reports? What are user exist available in apps?

A user exit is a program written and then linked in to the report builder executable user exist are written when content need to be passed from report builder to that pgm, which performs some function and then returns control to report builder.
(OR)
This one of built-in program in report 6i, it will be used to transfer the report builder control to some other 3rd generation language get some information complete the remaining execution process.
FND_SRWINIT: - 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.
Can be used in BEFORE-REPORT Trigger.
FND_SRWEXIT:- This user exit ensures that all the memory allocated for
AOL user exits have been freed up properly. Can be used in AFTER- REPORT Trigger
FND FORMAT_CURRENCY: -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.
FND FLEXSQL  - This user exits allows you to use Flex fields in Reports
FND FLEXIDVAL       - This user exits allows you to use Flex fields in Reports

15. Format trigger where u uses this trigger and how?

*Format triggers are executed before an object is formatted. A format trigger can be used to dynamically change the formatting attributes of the object.
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.
Are also used to validate the Initial Value property of the parameter. Depending on whether the function returns TRUE or FALSE, the user is returned to the Runtime Parameter Form.

16. What are the type Models in the system parameters of the report?

1) Bit map 2) Character mode

17. What are Global variables in Reports?

*Global variables are the variables that ca n be assigned to parameters in reports and those parameters can be used in reports

18. How can you change the select statement of a query at run time?

Using lexical parameter
19. How can you call a report from Form?
Using Run_product

20. How u will debug Ur reports?

Using srw_massage

21.How do you display a message in reports ?

* SRW.Message

22. Suppose I have 5 pages report. On which page between pages trigger will not fire?

*hat between page trigger will fire after first page nothing but last page. (It will not fire for last page)

23. What is the difference between static and dynamic lov?

The static lov contains the predetermined values while the dynamic lov contains values that come at run time.

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

The minimum of groups required for a matrix report are 4

25. What are the User PARAMETERS in the Reports?

P_CONC_REQUEST_ID
P_FLEX_VALUE

26. What is SRW Package? (Sql Report Writer)

The Report builder Built in package known as SRW Package 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 Exist, 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.,
SRW.SET_FIELD_NUM
SRW. SET_FILED_CHAR
SRW. SET FILED _DATE

27. How to display Request ID in the reports?

* By using the parameter P_CONC_REQUEST_ID which needs to be defined always in the reports.

28. 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. Yes it is possible to run the report without parameter form by setting the PARAM value to Null

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

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

30. Matrix Report: Simple, Group above, Nested

*Simple Matrix Report: 4 groups
1. Cross Product Group
2. Row and Column Group
3. Cell Group
4. Cell column is the source of a cross product summary that becomes the cell content.
Frames: 1.Repeating frame for rows (down direction)
2. Repeating frame for columns (Across)
3. Matrix object the intersection of the two repeating frames

31) What is difference between d2k report and oracle apps report

*In general D2k reports we won't use the user exit’s we use user exit's in oracle apps reports
2)in general D2k reports we won't use the multiOrg we use multiorg in oracle apps reports

32. What are ad-hoc reports?

*Ad-hoc Report is made to meet one-time reporting needs. Concerned with or formed for a
particular purpose. For example, ad hoc tax codes or an ad hoc database query
                   create_parameter_list (------)
                   add_parameter (----:Global_var);
                   run_product(….);

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

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

35. Can you create a group without any break columns?

*No.

36. Types of Matrix report ?

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

37. In Reports, how can you print one record per page in the output ?

*Set the Maximum records per page property of the Repeating frame to 1.

38.What is Matrix Report how many groups r there and how many queries u can use?

*The minimum of groups required for a matrix report are 4, but queries are may be one query or more than one query. A matrix (cross-product) report
Is a cross-tabulation of four groups of data:
One group of data is displayed across the page.
One group of data is displayed down the page.
One group of data is the cross product, which determines all possible locations where the across and down data relate and places a cell in those locations.
One group of data is displayed as the “filler” of the cells.

39.How many different layouts are in Reports?

*A tabular report:Is the most basic type of report. Each column corresponds to a column selected from the database.
A group above report
Contains multiple groups in its data model. It is a "master/detail" report, where there may be a lot of information in the master group. For every master group, the related values of the detail group(s) are fetched from the database and are displayed below the master information.

A group left report

Also contains multiple groups in its data model, dividing the rows of a table based on a common value in one of the columns. Use this type of report to restrict a column from repeating the same value several times while values of related columns change.

A form-like report

Displays one record per page, displaying field values to the right of field labels.
A matrix (cross-product) report
Is a cross-tabulation of four groups of data:
One group of data is displayed across the page.
One group of data is displayed down the page.
One group of data is the cross product, which determines all possible locations where the across and down data relate and places a cell in those locations.
One group of data is displayed as the”filler” of the cells.

40.What is Financial Statement Generator (FSG) and what is its use?

*FSG is a powerful and flexible tool you can use to build your own custom reports without programming. FSG is only available with GL.

41. How can you use DDL comment in report?

*Using SRW.DO_SQL

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

43. What are Anchors?

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

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

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

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.


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


45. Anchor Properties:

A) Child Edge percent on child edge type   B) Child Object Name
C) Collapse Horizontally                            D) Collapse vertically
E) Comments                                              F) Name
* An Anchor can relate two child objects to one parent object.

46. In which tables FF are stored?

*FND – ID – FLEXS
FND-ID-FLEX-STRUCTURES

47. How do u customize the Reports?

a. Identify the Short name of the standard report in which module we have to customize
Ex: - if u want to customize in the AR module path is
Appl top\ar\11.5.0\reports\US\ .rdf
b. Open the .rdf file in Report builder and change the name of the module.
c. Open the data module and modify the query (what is client requirements) assign the columns to the attributes.
d. Go to report wizard and select, what r the newly created columns.
e. Then Compile it. Then u will get a .rep file in the specified module. If it is not in the specified directory then we have to put in the server directory.
f. Then Register in the AOL Concurrent àexecutable.
Concurrent à program.
g. go to system administrator SecurityàResponsibilityàrequest
h) Add and assign a concurrent program to a request group

48. Why do we call FND SRWEXIT from After Report Trigger

*FND SRWEXIT frees all the memory allocations done in other Oracle Applications user exits. It must be included if one is using any ORACLE APPLICATION OBJECT LIBRARY features in his report (such as concurrent processing)

49. Why do we call FND FLEXSQL from the Before Report Trigger?

*One need to pass the concatenated segment values from the underlying code combinations table to the user exit so that it can display appropriate data and derive any description and values from switched value sets as needed.  One gets this information by calling the AOL user exit FND FLEXSQL from the before report Trigger.

50. Why do we call FND SRWINIT from Before Report Trigger

*FND SRWINIT fetches concurrent request information and sets up the profile options.  It must be included if one is using any ORACLE APPLICATION OBJECT LIBRARY features in his report (such as concurrent processing)

51. If u call the user exit FND FLEXSQL with    MODE = “WHERE” from the Before Report Trigger. What will it do?

*This user exit populates a lexical parameter that you specify with the appropriate SQL fragment at run time. You include this lexical parameter in the WHERE clause of the report query. This user exit is called once for each lexical to be changed.

52. If u call the user exit FND FLEXSQL with    MODE = “ORDER     BY” from the Before Report Trigger. What will it do?

*This user Exit populates the lexical parameter that one specifies with the appropriate SQL fragment at run time. One includes this lexical parameter in the ORDER BY clause of the report query. This user exit is called once for each lexical to be changed.

53. How can we display flexfield segment values, descriptions, and prompts on the report?

*Create a formula Column. Call the user exit FND FLEXIDVAL as the formula for this column. This user exit automatically fetches more complicated information such as descriptions and prompts so that one does not has to use complicated table joins to the flex field tables.

54. Name some options of the FND FLEXSQL   user exit

*CODE, APP_SHORT_NAME, OUTPUT, MODE, DISPLAY, SHOWDEPSEG, NUM or MULTINUM, TABLEALIAS, OPERATOR, OPERAND1, OPERAND2.

55. Describe CODE option of the FND FLEXSQL user exit

*Specify the flex field code for the report (for example, GL#, MCAT).

56. Describe the APP_SHORT_NAME option of the FND FLEXSQL user exit

*Specifies the short name of the application that owns the flex field (for example: SQLGL, INV)

57. Describe the OUTPUT option of the FND FLEXSQL user exit

*Specify the name of the lexical parameter to store the SQl fragment. One uses this lexical later in the report when defining the SQL statement that selects the flexfield values. The datatype of this parameter should be character.

58. Describe the MODE option of the FND FLEXSQL user exit

*Specify the mode to use to generate the SQL fragment. Valid mode are:
   SELECT:   Retrieves all segments values in an internal (non- displayable format).
   WHERE: Restrict the query by specifying constraints on flexfield columns.
                        The fragment returned includes the correct decode statement if one       specifies MULTINUM. One must also specify an OPERATOR and OPERANDS.
  HAVING: Same calling procedures and functionality as WHERE.
ORDER BY: Order required information by flexfield columns. The fragment                        Orders your flexfield columns and separates them with a comma. The fragment returned includes the correct decode statement, one specifies in MULTINUM.

59. Describe the DISPLAY option of the FND FLEXSQL user exit

*One uses the DISPLAY token with the MODE token . the DISPLAY parameter allows you to specify segments that represent specified flexfield qualifiers  or specified segments numbers , where the segment numbers are the order in that the segments appear in the flexfield window, not the segment number specified in the Define Key Segments form.
Eg.  If your MODE is SELECT  and you specify DISPLAY = “ALL” then the  SELECT statement includes all the segments of the flexfield.  . Similarly, if your MODE is WHERE and you specify DISPLAY = “ALL”, then your WHERE clause includes all segments.
60.Describe the SHOWDEPSEG  option of the FND FLEXSQL user exit
*SHOWDEPSEG = “N”disables automatic addition of depended upon segments to the order criteria.The default is “Y”.This token is valid only for MODE = “ODER BY” In FLEXSQL.

61. Describe the NUM   option of the FND FLEXSQL user exit

*Specify the name or lexical or source column that contains the flexfield structure information. If the flexfield uses just one structure, specify NUM only and use a lexical parameter to hold the value. If the flexfield uses multiple structures, specify MULTINUM only and use a source column to hold the value. The default value is 101.

62. Describe the TABLE ALIAS option of the FND FLEXSQL user exit

*You use TABLE ALIAS if your SELECT joins to other flexfield tables or uses a self– join.

63. Describe the OPERATOR  option of the FND FLEXSQL user exit

*Specify an operator to use in the WHERE clause.

64. Describe the OPERAND1  option of the FND FLEXSQL user exit

*Specify an operand to use in the WHERE clause,

65. Describe the OPERAND2  option of the FND FLEXSQL user exit

Specify a second operand to use with OPERATOR = “BETWEEN”

66. Where is FND FLEXIDVAL user exit used

*Call this user exit to populate fields for display. You pass the key flex fields data retrieved by the query into this user exit from the formula column. With this exit you can display values, descriptions and prompts by passing appropriate token (any one of VALUE, DECRIPTION<APROMPT or LPROMPT).

67. What are the User PARAMETERS in the Reports?

*P_CONC_REQUEST_ID
P_FLEX_VALUE
FND USER EXITS:-FND SRWINIT sets your profile option values, multiple organizations and allows Oracle Application ObjectLibrary user exits to detect that they have been called by an Oracle Reports program.FND SRWEXIT ensures that all the memory allocated for AOL user exits have been freed up properly.FND FLEXIDVAL are used to display flex field information like prompt, value etcFND FLEXSQL these user exits allow you to use flex fields in your reportsFND FORMAT_CURRENCY is used to print currency in various formats by using formula column

68. What is the difference between Master-Detail Report and report created by breaks

* Master/detail data models are very similar to break report data models. However, a master/detail data model is created using two queries, each of which owns at least one group, and a data link. A break report data model is created using one query and at least two groups. While reports based on a single query are usually more efficient than reports based on multiple queries, sometimes the structure of your data tables may require you to link multiple tables.

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

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

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

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

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

74)What are the Major differences bteween key flexfields ,descriptive flexfields key

*flexfields: capture the key information in code language each code have specific meaning
Descriptive flexfields: capture the extra information

75) what is the use of Xml reports over reports10g?

*Multiple Language purpose we are going to develop XML Reports& Once we developed XML Report we can Display indifferent format like word,excel

77) How can we get odd numbered pages in output of a report u need to write stuff in before report trigger?


*Suppose u fetch pagenumber value into field or variable pagenum

now in trigger u h to write
if ((:pagenum/2=1) or :pagenum=1) then
return(true);
else
return(false);
end if;

78)Is it possible calling from one report to another?if possible means tell me ?

*Using srw.run_report('reportname'..........);
we can call a report from another report.

79)what are the different types of parameters avialable in reports?

*By using system parameter we can send the data to out put divises.where as user parameter are used to pass parameter values.default parameters are system parameters user parameters are created by user.

80) Do I need to declare bind parameter before using in the query?

*No need of declaring bind parameters directly you can pass the value.

81) What is meant by anchoring?

*Anchoring determine horizontally and vertically positioning between parent object to his child object; It means whenever parent object is moving then child object will also move...

82)  What is meant by boilerplates?

*Boilerplate consists of text (label of the column) and graphics that appear in a report each time it is run.

83)I have 100 pages output. I want to print 10 records per page in Template?

*Set “maximum no of records per page” to 10 in property of repeating frame so that it will display 10 records on each page.

84) I want to print output in portrait style? Where I have to change the settings?

*Go to printer properties finishing tab and Choose portrait option button in orientation frame. Navigation: Print->properties->finishing->portrait
Click ok to print in portrait style.

85) In xml report, how to print the headings in every page?

*Define it as header section.it will be printed in all pages.

86) How to debug the report?

Set the profile option Concurrent: Debug Level to 5.Run the report and get the debug log.

Oracle Apps P2P Cycle



Procure 2 Pay Cycle:-


Mainly three applications are involved in Financial Module i.e. P2P cycle.Those 3 applications are :-


Purchasing (PO)


Account Payables (AP)


General Ledger (GL)


Three types of roles are involved Those are Requestor .


Requestor : Employee who require or request for the materials.


Preparer : Employee who is going to prepare the Document. 


Buyer : Employee who is having the authority to purchase materials.


1. Requisition: When there is goods are services requirement in Organization Service is in employee These Requisitions contain three levels of information i.e.

1. Header ,2. Lines ,3. Distribution .

They two types of Requisition

1. Internal Requisition
2. Purchase Requisition
 
1. Internal Requisition: Internal Requisition will be created by Employee and send to the where house to adjust items internally
2. Purchase Requisition: It will be created by Employee and send to the Purchasing department to accrue goods from external sources.

1 . Requisition:- Navigation: Purchasing, Vision Operations (USA) >Requisitions - > Requisitions





We enter the Requisition data in 3 levels. Those are Headers, Lines and Distributions.Enter Requisition type at headers level and Item,UOM, Quantity, Price and Need-By-Date columns at lines level like below .





Click on Distributions and click on Charge Account column, Accounts information will propagate automatically. Save your data by clicking.


Press Approve button which send requisition for approval. Once it get approved from Manager its status will get change to 'APPROVED' from 'INCOMPLETE'


save button in menu.




A) PO_REQUISITION_HEADERS_ALL (Requisition Header Information) :
Select *from PO_REQUISITION_HEADERS_ALL
where segment1 = '' -- segment1 will be rerequisition number.

B) PO_REQUISITION_LINES_ALL (Requisition Lines Information ):

select *
from PO_REQUISITION_LINES_ALL
where requisition_header_id =
(Select requisition_header_id
from PO_REQUISITION_HEADERS_ALL
where segment1 = '')

2. RFQ :- 


Once the Requisition is Approved Buyer will prepare thre RFQ document which will be

delivered to the supplier. Supplier will respond for that with quotation. we have Three types of RFQ documents.


BID :- This will be prepared for the secific fixed quantity and there won't be any

       Price Braeaks (Discounts).
Catalog :- This will be create for te materials which we will purchase from the
        suppliers regularley , and large number of quantity. Here we can specify the
        Price Breaks.
Standard: - This will be prepared for the Items which we will purchase only once
        not very often,Here we can include the Discounts information at different

        auantity levels.


SELECT * FROM PO_HEADERS_ALL WHERE SEGMENT1='' AND TYPE_LOOKUP_CODE='RFQ' --PO_HEADER_ID=''


SELECT * FROM PO_LINES_ALL WHERE PO_HEADER_ID='' -- PO_LINE_ID=''



SELECT * FROM PO_LINE_LOCATIONS_ALL WHERE PO_LINE_ID='' --LINE_LOCATION_ID=''

3.QUOTATION:-


Quotation is another purchasing document we will receive from the Supplier which

contains the supplier quote details , Price, Payment terms and so on.

Whatever the quotations we have received from the supplier we will enter in the system

through form.


We have three types of Quotations 1)Bid 2)Catalog 3)Standard

For Bid RFQ      we will  receive Bid      quotation from the Supplier

For Catalog RFQ  we will  receive Catalog  quotation from the Supplier
For Standard RFQ we will  receive Standard quotation from the Supplier.

After enter all the quotations in the system management will do quote analysis as per

that one best quotation will be elected as Purchase Order.

Navigation: Purchasing, Vision Operations (USA) ---> RFQ’s and Quotations ---> Quotations




    Quotation Report

    
    Item Name   (Table Value set MTL_SYSTEM_ITEMS_B   Segment1)
    

QuoteNo Type  Cdate Supplier Site ContactPerson Buyer   Created(UserName)


SELECT * FROM PO_HEADERS_ALL WHERE SEGMENT1='' AND TYPE_LOOKUP_CODE='QUOTATION';   SELECT * FROM PO_LINES_ALL WHERE PO_HEADER_ID=;   SELECT * FROM PO_LINE_LOCATIONS_ALL WHERE PO_LINE_ID='';



4.PURCHASE ORDER:- Purchase Orders: It’s a legal document which will be created by  Organization and send to the Supplier to buy goods or services

They are Four Types of Purchase Order i.e.

1.      Standard Purchase Order
2.      Plan Purchase Order
3.      Blanket Purchase Agreement

4.       Contract Purchase Agreement


Navigation: Purchasing, Vision Operations (USA) ---> Purchase Orders ---> Purchase Orders

                  

These are four level of information in purchase order:-


Header

Lines
Shipment
Distribution

Purchase Order can be create in two ways: 1. Manual 2. Auto create


2 Manual Creation:-


Standard Purchase Order: it’s a legal document to buy goods of service by supplier it will be created when we know the term and conditions goods or services, price, Quantity, Delivery, Schedule, and accounting distribution and also it is one time purchase order.


             


SELECT * FROM PO_HEADERS_ALL WHERE SEGMENT1='' AND TYPE_LOOKUP_CODE='STANDARD' --PO_HEADER_ID =''

 --TYPE_LOOKUP_CODE

SELECT * FROM PO_LINES_ALL WHERE PO_HEADER_ID =''--PO_LINE_ID=''


SELECT * FROM PO_LINE_LOCATIONS_ALL WHERE PO_LINE_ID=''--LINE_LOCATION_ID=''


SELECT * FROM PO_DISTRIBUTIONS_ALL WHERE LINE_LOCATION_ID=''


SELECT * FROM PO_LOOKUP_CODES --LOOKUP_CODE''


5. Receipts:- Navigation: Purchasing, Vision Operations (USA) ---> Receiving ---> Receipts




Enter Purchase Order number and click on Find button.


They are three types of receiving methods
1.      Direct method
2.      Standard Receipt
3.      Inspection

Note: always receiving will be done at inventory Organization


1 Direct Delivery: it is receipt routing goods will be direct delivery to final destination  .



2 Standard receipt: Under this receipt routing first goods will be received at one place and send to the final destination.

3 Inspection: Under this method first goods will be received at one place then inception came then inspection people inspection then goods after that the final destination.


Match Approval Level :- While creating the Purchase Order we will mention the Match Approval Level at Shipments we will have 3 types they are


2-way:- Purchase Order and Invoice Quantities must match within tolerance before the corresponding invoice can be paid.

3-way:- Purchase Order, Receipts and Invoice Quantities must match with in tolerance before the corresponding invoice can be paid.
4-way:- Purchase Order, Receipts, Inspection and Invoice Quantities must match with in tolerance before the corresponding invoice can be paid.

SELECT * FROM AP_INVOICES_ALL WHERE INVOICE_NUM='';   

SELECT * FROM AP_INVOICE_LINES_ALL WHERE INVOICE_ID='';  
 SELECT * FROM AP_INVOICE_DISTRIBUTIONS_ALL WHERE INVOICE_ID='';



6. Invoice:-


Types of Invoices 


Types of Invoices:-


1.     Standard

2.     Credit Memo
3.     Debit Memo
4.     With Holding Tax                                                                                   
5.     Po Default
6.     Mixed
7.     Pre Payment
8.     Expense Report
9.     Recurring Invoices

10.  Quick Match                                                                                
                      


Enter purchase order number, line and shipment and click on Find button.

Enter Purchase Order (PO) number, Invoice date, Invoice number, amount and tax control amount and click on Match button to match invoice with that particular Purchase order


Tick match check box at lines level and click on Match button and copy invoice number.


a) AP_INVOICES_ALL (Invoice Header information)
Select * From AP_INVOICES_ALL
where po_header_id =
( Select Po_header_id
From PO_HEADERS_ALL
where segment1='');

b) AP_INVOICE_LINES_ALL (Invoice Lines Information)
 Select * from AP_INVOICE_LINES_ALL
where invoice_id =
(Select invoice_id
 From AP_INVOICES_ALL
where po_header_id =
( Select Po_header_id
From PO_HEADERS_ALL
where segment1=''));

c) AP_INVOICE_DISTRIBUTIONS_ALL (Invoice Distributions information)
 Select * from AP_INVOICE_DISTRIBUTIONS_ALL
where invoice_id =
(Select invoice_id
 From AP_INVOICES_ALL
where po_header_id =
( Select Po_header_id
From PO_HEADERS_ALL
where segment1=''));


            


Tick validate check box and click OK button, check Status column as “Validated”. Now click on Actions button again and tick Create accounting check box with final or final post.

Once invoice got approved, we can “Create Accounting” and “Create Payments” via “Action” Button in the “Invoice Form” as we validated the invoice.


SELECT * FROM AP_INVOICES_ALL WHERE INVOICE_NUM='';   SELECT * FROM AP_INVOICE_LINES_ALL WHERE INVOICE_ID=';   SELECT * FROM AP_INVOICE_DISTRIBUTIONS_ALL WHERE INVOICE_ID=';

7. Payments:-

Navigation : Payables Responsibility -> Payments -> Payments


Payments:-     Once the Invoice is approved then we can go for payments. The Payments are or 3 types. They were

1.     Manual
2.     Quick
3.     Refund

Manual:-    Here we will issue the checks manually to the supplier and we will capture that information in the payment scheme by using manual payment option.

Quick:-     Through the Quick Payment type we can generate checks through the system and we can have the transactions directly in the system.

Refund:-   When ever company is going to give advance back to the customer that time we will select payment type as Refund.

For view list of payments:
           Select * from ap_invoice_payments_all;
           Select * from ap_payment_schedules_all;
For check’s information:
           Select * from ap_checks_all;
For check format:
           Select * from ap_check_formats;
           Select * from ap_checkrun_conc_processes_all;



8.Transferring Transactions from AP to GL:-  Run Payables Transfer To GL Program from Payables Responsibilty. It will transfer Payables Data into Gl modules.


Run “Transfer Journal Entries to General Ledger” program. Enter the parameters

SELECT * FROM GL_JE_BATCHES WHERE NAME LIKE '';   SELECT * FROM GL_JE_HEADERS WHERE JE_BATCH_ID=;   SELECT * FROM GL_JE_LINES WHERE JE_HEADER_ID IN ;