You are on page 1of 22

1. What are the various types of reports?

Tabular, Master Detail, Form, Form Letter, Mailing Labels, Matrix

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

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

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

5. What are the various report triggers? What is their order of firing?
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

Apart from the above Five Report Triggers, there are three other types of triggers:
* Validation Triggers
* Format Triggers
* Action Triggers

Before Form: Fires before the Runtime Parameter Form is displayed. From 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).

After Form: Fires after the Runtime Parameter Form is displayed. From 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).

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

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

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.

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.

10. and report trailer pages. or each time a record is fetched containing a specific value.). each time the nth record is fetched.. report body/margin pages. The Previewer displays the logical pages of your report output. which are ANSI-standard SQL SELECT statements that can be referenced by modules * external PL/SQL libraries.g. one at a time. which are collections of report-level objects and references to external queries and PL/SQL libraries (optional) that can be referenced by modules 8. What are Physical and Logical pages in Reports? A report page can have any length and any width. Placeholder columns are useful when you want to selectively populate a column with a value (e. number. etc. Logical Page: A logical page is the size of one page of your actual report.6. How do you reference parameters and columns in reports? In two ways: * As bind references * as lexical references 12. Because printer pages may be smaller or larger than your report's "page. one logical page may be made up of multiple physical pages. What are the various page layout sections in Oracle Reports? A report has three sections: the report header pages." the concept of physical and logical pages is used. 9. What are the various Module Types in Reports? You can build three types of modules with Oracle Reports: * external queries. which are collections of PL/SQL source code that can be referenced by modules * reports. Physical Page: A physical page (or panel) is the size of a page that will be output by your printer. such as a character string. Use bind reference when you want . What are various types of parameters? There are two types of parameters: * default (called system parameters) * user-created (called bind and lexical parameters) 11. or date. What are Placeholder Columns? A placeholder is a "dummy" column for which you can conditionally set the data type and value via PL/SQL or a user exit. 7. What are Bind Referencing and Lexical Referencing? * Bind Referencing: Bind references are used to replace a single value in SQL or PL/SQL.

then the repeating frame will start formatting on the next page. CONNECT BY. Multi query 3. 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. Nested Query 4. Specifically. bind references may be used to replace expressions in SELECT. Lexical Referencing: Lexical references are placeholders for text that you embed in a SELECT statement. 13. In Reports. HAVING. How do you print a Report 2. 20. The Print Condition Type options indicate the logical page(s) on . 14. You can use lexical references to replace the clauses appearing after SELECT. WHERE. 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. then all lines of the boilerplate are moved to the next page. Checking Page Protect means that if the contents of the object cannot fit on the current logical page. HAVING. Single query 2. What is 'page protect' property for objects? * Page protects property for an object indicates whether to try to keep the entire object and its contents on the same logical page. Can you create a group without any break columns? * No. If the number of instances specified for this property cannot fit on the logical page where the repeating frame is initially triggered to print. the object and all of its contents will be moved to the next logical page. how can you print one record per page in the output? * Set the Maximum records per page property of the Repeating frame to 1.5 report in character mode? * Set MODE = 'Character' in the Parameter form 17. Matrix Break 15. CONNECT BY. ORDER BY. 19. Types of Matrix report? * 1. GROUP BY. and START WITH clauses of queries. GROUP BY. Use Lexical reference when you want the parameter to substitute multiple values at runtime. 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. ORDER BY. WHERE. If the number of lines specified for this property cannot fit on the logical page. and START WITH.the parameter to substitute only one value at runtime. 16. 18. FROM.

The object will be repeated on any overflow pages of the Print Condition Object and will be truncated at the logical page boundary. 21. The object will be formatted and will overflow to subsequent pages. The object will be repeated on any overflow pages of the Print Condition Object except the last one and will be truncated at the logical page boundary. The object will be formatted only on overflow pages of the Print Condition Object and will be truncated at the logical page boundary. it prints in every instance of repeating frame R_1 on every logical page.which the object should be triggered to print with regard to the Print Condition Object. *Default: Default means that Oracle Reports will use object positioning to set the Print Condition Type to either *First or *Last for you. if necessary. All but Last : All but Last means the object and all of its contents will be printed on all logical pages of the Print Condition Object except the last logical page. If you specify a Print Condition Type setting of All but First in the above case. . If you specify a Print Condition Type setting of all and a Print Condition Object setting of Enclosing Object for a field F_1. the current object will be triggered to print on every logical page on which its anchoring object (parent object) appears. In such a case the field will be printed on all subsequent pages of this instance except the first page. then the field will be printed only in those cases where a single instance (row or record) of the repeating frame spans across more than one page (which is normally not the case since many records are there in a single logical page and not one record in many pages).) First: First means that the object and all of its contents will only be printed on the first logical page of the Print Condition Object. the print condition type property refers to every logical page of every instance (record) of the repeating frame. All but First: All but First means the object and all of its contents will be printed on all logical pages of the Print Condition Object except the first logical page. if necessary. if you specify a Print Condition Type of All and a Print Condition Object of Anchoring Object. Last: Last means that the object and all of its contents will only be printed on the last logical page of the Print Condition Object. For example. What are the various values of the 'Print Condition Type' property in Reports? * The various values are: All: All means the object and all of its contents will be printed on all logical pages of the Print Condition Object. if necessary. (The asterisk indicates that Oracle Reports specified the setting for you. 22. if necessary. if necessary. 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 repeating frames. The object will be formatted after the Print Condition Object and will overflow to subsequent pages.

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.") Fixed: Fixed means the height of the object is the same on each logical page. 25. Note: Truncation of data may occur. regardless of the size of the objects or data within it.Message 27. 26. if the formatted objects or data within it are short enough. do not contract. Note: Truncation of data may occur. 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. Enclosing Object: Enclosing Object is the object that encloses the current object.23. . if the formatted objects or data within it are tall enough. do not expand. which means the height shown in the editor has no effect on the object's height at runtime. Down/Across: Down/Across means the physical pages of the report body will print top- to-bottom and then left-to-right. 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.") Expand: Expand means the vertical size of the object increases. 28. The height of the object is defined to be its height in the editor. (You can think of this option as meaning "only expand. (You can think of this option as meaning "only contract. What is the 'Print Direction' Property of repeating frames? * 'Print Direction' Property specifies the direction in which successive instances of the repeating frame appear. but it cannot decrease to a height less than that shown in the editor. How do you display a message in reports? * SRW. 24. Variable: Variable means the object may expand or contract vertically to accommodate the objects or data within it (with no extra space). 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. but it cannot increase to a height greater than that shown in the editor.

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. In other words. 31. its anchoring object. they will be moved to the next logical page. What are the various values of the 'Print Direction' Property of repeating frames? * The various values are: 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. or both cannot fit on the logical page. Oracle Reports prints the instance below the left-most instance on the logical page. 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. Note that this does not necessarily mean that all the objects below the object with Page Break After will move to the next page.. What is the 'Break Order' property of columns? * The 'Break Order' property is the order in which to display the column's values. 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. 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.29. At that time.e. 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. provided there is enough vertical space left on the logical page for the instance to print completely. 33. . 30. 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. Note that this does not necessarily mean that all the objects below the object with Page Break Before will move to the next page. This property applies only to columns that identify distinct values of user-created groups (i. Oracle Reports prints the instance to the right of the topmost instance on the logical page. At that time. 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. 32. provided there is enough horizontal space left on the logical page for the instance to print completely.

and computations. and grand totals. Creating a link is a drag and drop operation. 34. graphics. SRW. The default margin size is one half inch each for the top and bottom margins and zero for the left and right margins. however. 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. If you are using a Filter of Last or Conditional.e. graphics. A group filter determines which records to include and which records to exclude.Run_Report 36. it is faster than a group filter in most cases. They can contain text. you must use Break Order to specify how to order the break column's values. Since Maximum Rows actually restricts the amount of data retrieved. A margin may include text. As a result. Body/Margin: The body/margin pages appear between the header and trailer pages. How will you developed reports from scratch to Registrations. and computations. They can contain text. Each physical page in this section consists of a body and a margin.Do_Sql. 37. What are the various types of links? * The Data Link tool draws a link between a parent group and a child query. For column values in user-created groups. and computations. The body contains the majority of the report's text. page numbers. . 35. Oracle Reports must retrieve all of the records in the group before applying the filter criteria. 38. and are the bulk of the report. data. SRW. Trailer: The report trailer pages appear once at the end of each report on a set of separate pages. Clicking and dragging between two groups creates a group-to-group link (i. The order of column values in a default group is determined by the ORDER BY clause of the query. graphics. data. 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). What are the various report layout regions? * There are three report regions in the Layout editor: * header * body/margin * trailer Header: The report header pages appear once at the beginning of each report on a set of separate pages. A top and bottom margin appear on each page. a link with no columns). until all data within the body has been formatted. graphics.break groups). page totals. SRW.Message. Name some of the procedures in the SRW package? * SRW. Clicking and dragging from one column to another creates a link between those two columns (column to column link)..User_Exit. data. Maximum Rows or a Filter of First is faster.

You can pass lexical parameter in . STEP2: Add User Parameter in Query. STEP4: Design Layout according to specs. STEP5: Defined Mandatory Parameter P_CONC_REQUEST_ID in report. STEP7: FTP the report the appropriate top in reports/US folders. What is Format Trigger? Ans: Format trigger is used to print conditionally printing of Layout. 43: What’s Difference between Formula Column. 42: What do you mean by Confine Mode in Reports? Ans: Confine Mode Means Locking of Frames. Summary Column: Summary Column is used for Calculating summary function like Sum. 44: What are Difference between and Lexical and Bind Parameter? Ans: Bind Parameter Lexical Parameter With the help of Bind Parameter You Can With the help of Lexical Parameter You can Pass Values. What is Difference between D2k and APPS Reports? D2K Apps Reports No User Exit User Exit P_Conc_Request_id not Required P_CONC_REQUEST_ID Mandatory Parameter 40. If it is off you can move the objects. If Confine Mode is on then you can not move the Object outside the Frame. Min. STEP8: registered reports in Oracle Apps (Note Explain all steps of apps registrations) 39. Format trigger return Boolean values. Count. 41: What do you mean by Anchoring in Reports? Ans: With the help of Anchoring Relative position of two objects will be fixed. Placeholder Columns: Placeholder Column is used to place the Variables.STEP1: Write Query according to Specs.. Formula Column always returns the Values. pass string. Summary and Placeholder Column? Ans: Formula Column: Formula Column is used to compute Values. Max. STEP6: Use User exit in reports. STEP3: Design Data Model.

52: What is Various Execution Method in Concurrent Programs in executables? . Select.SUBMIT_REQUEST 47: What is User Exit in Reports? User exits are used to set profile options and are actually used to pass the control from 4gl to 3 gl language to do complex calculations for ex from Oracle reports to outside and return back to reports.fnd_profile. Where Clause Denoted by Colon Denoted by Ampersand(&) sign 45: How will you print conditionally Layout in reports? Ans: With the help of Format trigger. From . How will you validate.flexsql (for retrieving data from the flex-fields in the report using lexical reference) fnd. 46: How will you call Concurrent Program through Reports? IN After report trigger put FND_REQUEST. Report builder parameters are not in sequence. That is why we combine with token.srwinit (It allows oracle AOL user exits to detect that they have been called by oracle reports Called from before report trigger) fnd. 51: Suppose I have two Parameter Start Date and End Date and I want My Start Date should be lower then End Date.flexidval (use to display the data retrieved by flexsql using a formula column) fnd. apps. 50: How will you Capture ORG_ID Dynamically in Concurrent Programs. Few of the commonly used user exits are fnd.srwinit (used to release all the memory allocated by oracle AOL used in After report trigger) 48: In Which Folder You will put the Report on the Server? /reports/us/ 49: What do you mean by Token in Reports? Token is nothing but an interface between report builder parameters and concurrent program parameter.VALUE ('PER_BUSINESS_GROUP_ID').

and suggest you use either a PL/SQL Stored Procedure or a Spawned C Program instead. Immediate the execution file is a program written to run as a subroutine of the concurrent manager. 53: What is Difference between Application Name Defined in Concurrent Program Executables and Concurrent Programs? There is special purpose of using application names at the time of Executable definition and Concurrent program definition. The Application which is used during Executable definition. SQL*Loader The execution file is a SQL script. The purpose of application name using in concurrent program definition. PL/SQL Stored Procedure The execution file is a stored procedure. 54: How will you Call Reports with in Reports? . Host The execution file is a host script. Oracle Reports the execution file is an Oracle Reports file. We recommend against defining new immediate concurrent programs. SQL*Plus the execution file is a SQL*Plus script. Flexsql The execution file is written using the Flexsql API. Whatever application you use during your concurrent program definition or executable but always consider the above two points. the log and out files are generated under that particular $Appl_TOP/log or /out directory. SQL*Report The execution file is a SQL*Report script. the reports should be under that $Appl_TOP/Reports/Lang otherwise the concurrent program will error out due to no file found.FlexRpt The execution file is written using the Flex Report API. Spawned the execution file is a C or Pro*C program.

56: How will you put Message of Reports in LOG Files. the first one must terminate before the other is allowed to start.fnd_file.put_line (apps. You can get the XML Report in EXCEL/HTML/PDF etc as per the output type selected. Incompatible reports /program can only run sequentially.55: What do you mean by Incompatibility in Reports? INCOMPATIBLE means: Two incompatible reports or request set are not allowed to run in parallel. If a User ran a report in PDF and wants to get the same in EXCEL its not required for them to re-run the report Instead they can republish it using Republish option in Tools and can select the output type whatever is required.’ ‘). 57. What is the purpose of XML report when compared to reports 6i & discoverer? XML/BI Publisher gives the flexibility to users in order to select the output type in EXCEL/HTML/PDF/FO etc as per their requirement.LOG. fnd_file. XML/BI Publisher reports give you additional features for Reports 6i. Data Model in .

Advantages of XML/BI Publisher: * Cost for implementing is very less compared to the license of Discoverer. 4] Add the default values to the Before Report and After Report triggers (not mandatory) 5] Ftp the Report to the Cust_Top/Report/Us. 2] Create the Report (Data Model or we can say the . 58. Query for the Xml Publisher Administrator. * Can create complex layouts same as we do it in Report 6i where as complex reporting is not possible in Discoverer. Before the release of Discoverer 10g Discoverer is a license free version and after its release the license has become too costly due to which the clients are going for XML Publisher reports ignoring Discoverer. 8] Go to the Sysadmin>Security>Responsibility>Define. 3] Set the user parameter as P_Conc_Request_id. You can directly implement XML Publisher and is not required to implement Discoverer again. Steps to create a XML Publisher Report 1] Add the “Xml Publisher Administrator” Responsibility to the user through the front end. 6] Open the Oracle E-Business Suite then go to Sysadmin>Concurrent>Program>Executables. See the Request Group attached to this. Here we have to create one executable file for that RDF. Make sure that the output format must be XML. You can run the report once and can republish it again in other types.Reports 6i RDF will be the same but you don’t require a Layout model in the RDF File. * If you require the report in 3 different output types you don’t need to run the report 5 times. Limitations/Disadvantages of XML/BI Publisher: * It’s not recommended for ad-hoc reporting like Discoverer. * Its very hard to debug a report unlike Discoverer. 9] Design the template in Ms Word (Using the . * You don’t require any different web browser for running the report it can be directly run on the Concurrent Environment itself.Rtf file). Here we have to make a Concurrent Program for that Executable. * You can code the report to dynamically select the layouts (templates) in XML Publisher Similar to the functionality of Format Trigger in Reports 6i which is not possible in Discoverer. Attach the Concurrent Program to this Request Group. . * We can’t draw Pie Charts/Graphs as like in Discoverer. You instead create the Layout in a Word Document using the XML Publisher Desktop installed. * Can run the report in 5 different Output Formats and export them. 7] Then go to Sysadmin>Concurrent>Program>Define.Rdf file) using Oracle Report Builder.

FND SRWEXIT This user exit ensures that all the memory allocated for AOL user exits has been freed up properly. Syntax: FND FORMAT_CURRENCY CODE=: column containing currency DISPLAY_WIDTH=field width for display AMOUNT=: source column name . FND FORMAT_CURRENCY To format the currency amount dynamically depending upon the precision of the actual currency value. 11] Now go to Xml publisher administrator>Home>Template. User Exits in Oracle Reports We can integrate Oracle reports with Oracle Application Object Library. These are the user exits available in Oracle Reports that makes AOL integration. which executes the FORMAT_CURRENCY user exit to format the currency value.10] Go to responsibility XML PUBLISHER ADMINISTRATOR. Create a new template with template type=’Rtf’. standard precision. You obtain the currency value from the database into an Oracle Reports column. Syntax is: SRW. Then Go to HOME>DATA DEFINITION>CREATE DATA DEFINITION and create a new data definition. Make sure that your Data Definition’s Code should be same as Concurrent Program’s Short Name used by you to create the RDF file. Can be used in BEFORE_REPORT Trigger. A displayed field has this formula column as its source so that the formatted value is automatically copied into the field for display. a formula column of type CHAR. Define another Oracle Reports column.REPORT Trigger. Syntax is: SRW. Can be used in AFTER. FND SRWINIT also allows your report to use the correct organization automatically. users profile values and location (country) of the site. 59.USER_EXIT(‘FND SRWEXIT’). Then upload the RTF File by browsing the path. It must be included if one is using any ORACLE APPLICATION OBJECT LIBRARY features in his report (such as concurrent processing). FND SRWINIT FND SRWEXIT FND FORMAT_CURRENCY FND FLEXIDVAL FND FLEXSQL 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.USER_EXIT (‘FND SRWINIT’). 12] Now go to the Responsibility and run the request. and run them as concurrent programs from your forms or through standard request submission.

APROMPT or LPROMPT). descriptions and prompts by passing appropriate token (any one of VALUE. You define all flex field columns in your report as type CHARACTER even though your table may use NUMBER or DATE or some other data type. You pass the key flex fields data retrieved by the query into this exit from the formula column. GROUP BY. This fragment allows you to SELECT flex field values or to create a WHERE. DESCRIPTION. Syntax: FND FLEXIDVAL CODE=”flex field 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|segment number}"] [SHOWDEPSEG="{Y | N}"] [VALUE=":output column name"] [DESCRIPTION=":output column name"] [APROMPT=":output column name"] [LPROMPT=":output column name"] . or HAVING clause to limit or sort the flex field values returned by your SELECT statement. ORDER BY. Syntax: FND FLEXSQL CODE=”flex field code” APPL_SHORT_NAME=”application short name” OUTPUT=”:output lexical parameter name” MODE=”{ SELECT | WHERE | HAVING | ORDER BY}” [DISPLAY="{ALL | flex field qualifier | segment number}"] [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"] FND FLEXIDVAL Call this user exit to populate fields for display. With this exit you display values.DISPLAY=: display column name [MINIMUM_PRECISION=:P_MIN_PRECISION] [PRECISION={STANDARD|EXTENDED}] [DISPLAY_SCALING_FACTOR=:P_SCALING_FACTOR] FND FLEXSQL Call this user exit to create a SQL fragment usable by your report to tailor your SELECT statement that retrieves flex field values. You call this user exit once for each fragment you need for your select statement.

A formula to: Compare each employee salary with the maximum salary. For this report. A formula column executes a PL/SQL function and must return a value. store the current maximum salary as records are retrieved. The following properties apply specifically to summary columns: Function: The calculation to be performed on the values of the column specified in Source. A Scenario: The goal is to design a salary report of all employees. 61. Reset At: The group at which the summary column value resets to zero. The placeholder can hold a value at run time that has been calculated and placed into it by PL/SQL code from another object. Placeholder Column We use these columns in our oracle reports. If you change the data type of the source column. you create and maintain only one program unit instead of many. Summary column vs. Formula Column: A formula column performs a user-defined computation on the data of one or more other columns. Thus. Display the highest earner and the maximum salary once at the beginning of the report. For example. Number. Here are few brief differences among these columns and the purpose of their use in oracle reports. but always have few doubts about which column to use for what purposes. Source: The name of the column whose values are to be summarized. Compute At: The group for which a % of Total summary column is computed.[PADDED_VALUE=":output column name"] [SECURITY=":column name"] 60. If you select a page summary in the Field tab of the Report Wizard. Formula Column vs. the data type of the summary also changes. you need to create the following columns: Summary to show the maximum salary for the company. an error message appears. Populate the placeholder with the employee name if salary equals maximum salary. The aim of the report is to: Calculate and temporarily store the name of the employee who earns the highest salary in the company. You can calculate several values in one block of PL/SQL code in a formula column and assign each value to a different placeholder column. The Report Wizard does not support page summaries. The data type of a summary column depends on the data type of the source of the summary. Store a temporary value for future reference. Using placeholder columns. Placeholder to contain the highest earner’s name at run time. or Date and returned value must match data type. Summary column: It summarizes another column and can recalculate for each record in a specified group. you can: Populate multiple columns from one piece of code. The value can be Character.Flex mode and Confine mode Confine mode: . Placeholder Column: A placeholder column is an empty container at design time.

Reports will place containers of columns inside of the frames. Repeating frames print once for each record of a group and control record-level formatting. Concurrent program: How many Parameters can pass to Concurrent Program? Ans. We give group in data model as source to repeating frame. Off: child objects can be moved outside their enclosing parent objects. What is the use of ‘Send to back’ and ‘Bring to Front’? To change the order in which objects are layered on top of each other. or to surround summaries. Reports will generate one repeating frame for each group when you create a default layout. Off: parent borders remain fixed when child objects are moved against them. you do not want the boilerplate labels to appear. If 2nd parameter value is based on 1st parameter then how do u declare it? Let v2 be the value set definition of 2nd parameter and v1 be the value set definition for the first parameter then In the value set definition of v2 = value $FLEX$.On: child objects cannot be moved outside their enclosing parent objects. To do this. Each repeating frame retrieves only one row in its fetch cycle for any one repetition. if no detail records are retrieved for a master Record. Suppose that you are building a master/detail report And. . 100 Parameters are permitted from back end (FND_REQUEST. a frame might be used to surround all objects owned by a group. Flex mode: On: parent borders “stretch” when child objects are moved against them. Until it is constrained by another frame. What is Frame and Repeating Frame? Frames are used to surround other objects and protect them from being overwritten or pushed by other objects. it will repeat itself until the while loop condition can no longer be satisfied.v1 How does u hide fields in a Report? Ans: Using the Format Trigger we can hide the fields. to surround column headings. you first create a summary column called MYCOUNT with a Function of Count in The source group of the master repeating frame. Send to Back to move the object behind all other objects. For example.SUBMIT_REQUEST) and from front end as well. Bring to Front to move the object in front of all other objects. Repeating frames are place holders for records.

you need at least four groups: one group must be a cross- product group. FND_REQUEST. What is the minimum number of groups required for a Matrix type report? To create a matrix report. The groups can belong to a single query or to multiple queries." and at least one group must provide the information to fill the cells.submit_request (applicationshortname concurrentprogramshortname description parameters) . end if. else return (true). end. You enter the following: Function my_formtrig return BOOLEAN is Begin if: mycount = 0 then return (false). Trace file will be generated at location: Select value from v$parameter Where name = 'user_dump_dest'.** In the format trigger for the group frame that surrounds the detail repeating frame and its labels. To better see execution plans in a trace file.Do_Sql ('alter session set sql_trace=true'). two of the groups must be within the cross-product group to furnish the "labels.SUBMIT: Begin v_request_id:= fnd_request. What is the significance of P_Conc_Request_id? P_Conc_Request_id is declared as the user parameter for reports which will get org specific data. P_Conc_Request_id data type is character and length is 15.Do_Sql ('alter session set sql_trace=false'). you need to format the Generated traces file with tkprof statement. one column of labels. After Report: SRW. Create indexes on columns used in where condition (eliminate full table scan) Enable Trace (set trace on in before report and set trace off in after report) Before Report: SRW. A matrix (cross tab) report contains one row of labels. How do you fix a performance problem in a Report? Check Report main query and fine tune it. A distinguishing feature of matrix reports is that the number of columns is not known until the data is fetched from the database. and information in a grid format that is related to the row and column labels.

unless otherwise noted. Perform DDL statements used to create or Drop temporary table. the printer definition to use when formatting the report when DESTYPE=FILE and DESNAME=filename.prt file). etc. If MODE=BITMAP. printer's name. XML. SET FILED _DATE System parameters Oracle Reports is shipped with the following system parameters. the file name. .SET_FIELD_NUM SRW.put_line (‘successfully submitted') Else dbms_output. output message at runtime. It’s like DDL command. to set the colors Ex: SRW.DO_SQL. Report Builder will create one boilerplate object for each label selected in the Report Wizard (it is named B_Column name). If MODE=CHARACTER.. Initialize layout fields. End. You can change their default values as described above. this is the name of the printer. one boilerplate object is sometimes created for each report summary. or DELIMITEDDATA for bitmapped reports). Call User Exist. DESTYPE Is the type of device that will receive the report output (for example. DELIMITED. HTML. this is the character mode printer definition file (.put_line ('Not Submitted'). Table 1-1 System parameter descriptions System Parameter Description COPIES Is the number of report copies that should be made when the report is printed. to format width of the columns. to page break the column. SET_FILED_CHAR SRW. RTF. we can create table. A boilerplate object is owned by the object surrounding it. HTMLCSS. SRW. If v_request_id > 0 then dbms_output. DESNAME Is the name of the output device (for example. What is Boilerplate? Ans: Boilerplate is any text or graphics that appear in a report every time it is run.Commit. views . Also. What is SRW Package? (Sql Report Writer) The Report builder Built in package know as SRW Package This package extends reports . DESFORMAT Is either: the output format for the report (for example. SPREADSHEET. PDF. mail user ID).Control report execution.

5. Set the following "System Parameters" under Data Model in Oracle Reports for your report. Close Oracle reports if it up and then restart it (so it can read the changed config file) The above steps would configure Reports to use your SMTP server. Oracle starts by setting it to "default" which means that . MODE Is whether the report should run in CHARACTER mode or BITMAP. Follow the steps below: 1. 4. FILE.System Parameter Description SCREEN (to format the report using screen fonts).100. How to send email from oracle report 6i First of all we need to configure Reports to use your SMTP server to send emails. or LOCALFILE. Even though we set the page size in the report properties. Find this file (usually in /reports/conf or search for it using Windows search). 5.conf. ORIENTATION Is the print direction for the report (LANDSCAPE. Open it for editing in your favorite editor. The SMTP server address is held in a configuration file called rwbuilder. Change the IP address found in the above step to your SMTP server's NAME or IP Address.. 3. DEFAULT). 2. I switched the page size to 11x 8.168. SYSOUT. * DESTYPE = Mail * DESNAME = email address where you want the ouput to go to Run your report and if all goes well you should have an email in your inbox (if you supplied your email address in DESNAME parameter of course!!). there is a another variable in the system parameters section under the data model in the object navigator called orientation. Find an entry like 192.100 (Please note that the IP address in the file on your PC will be different to this one). PORTRAIT. MAIL. CACHE. but the printer still prints in Portrait. PRINTER. PRINTJOB Is whether the Print Job dialog box should appear before the report is run. This sets the printer orientation. Save and close this file 6.

The order will be. How do you write the report output to Excel file or text file? A. User-created Repeating Frames Create a repeating frame in the Layout editor by clicking on the Repeating Frame tool. then specifying its properties in its property sheet. Down. When a procedure is called form Oracle Report and a procedure with that name is available at several places namely Program Units. including other repeating frames. We can also set it to either "Landscape" or "Portrait" to force the printer orientation no matter what the user has set as default. they provide a subset of repeating frame functionality (e. Oracle Reports generates one repeating frame for each group in the data model. they do not have a Maximum Records per Page property).g. etc. Nested repeating frames are typically used to produce master/detail and break reports. For each record of the outer repeating frame.Use TEXT_IO package 2. and places one field inside it for each of the group's columns. and 2 for error. What is the use of that? There is no separate method for calling a database stored procedure in Oracle Reports. 1. The repeating frame prints (is fired) once for each record of the group.. Oracle Reports will format all related records of the enclosed repeating frame.no matter how we set the page size.g. 1. The parameter retcode returns 0 for success. Repeating frames can enclose any layout object. 1 for success with warnings.. Use repeating frames to define record-level layout information.Use SPOOL in after Report trigger 3.. How the stored procedures in the report are are called.) and the spacing between each record. you can specify the direction in which the records print (e. Attached Library and Database. Database. There are two types of repeating frames: Default user-created Default Repeating Frames When you accept the Default Layout dialog box. Across. For example. Across/Down. dragging a region. Program Units 2. How many types of repeating frames are there? Repeating frames surround all of the fields that are created for a group’s columns. Attached Library 3.Use UTL Package . the user's default printer setup will be used.

You use it by first setting timed_statistics to true in the initialization file and then turning on tracing for either the entire database via the sql_trace parameter or for the session using the ALTER SESSION command. What is the difference between "AFTER PARAMETER FORM" trigger and "BEFORE REPORT" trigger? AFTER PARAMETER FORM trigger is fired immediately after the report parameter form is submitted. BEFORE REPORT trigger is fired after the report queries are parsed and data is fetched What is tkprof and how is it used? The tkprof tool is a tuning tool used to determine cpu and execution times for SQL statements. In format Triggers we have the option to write PL/SQL code where as conditional formatting is GUI based which provide limited options. Format triggers provide a wide variety of options when compared to conditional formatting (GUI). . This can also be used to generate explain plan output. used to format the output based on particular conditions.What is the difference between Conditional Formatting and format trigger? Both provide the same functionality. Once the trace file is generated you run the tkprof tool against the trace file and then look at the output from the tkprof tool.