Calling Other Reports 

Reports residing in different applications can call each other in the R/3 System across the Report-Report-Interface RRI. The term ‘report’ is used here to include all of the following: ABAP reports (including query reports), transactions, Report Writer reports, EIS drill-down reports and report portfolio reports.

The query is integrated into this interface. This means that query reports can both be called via this interface (as recipient) and can themselves call other reports (as sender). Before a query can be used as a sender or a recipient it has to be made known to the interface. You should refer to the remarks on using the Report-Report-Interface in Assigning Title, Format, and Notes.

For query lists there are two interactive functions in the Goto menu which allow access to the Report-Report-Interface.

Reports are called using the interface either over the menu path Goto ® Call report or by double-clicking (F2) on the appropriate line. Before a further report can be called successfully, the query (or query report) has to be entered in the interface as sender together with the recipient reports assigned to it. If only one report has been entered as recipient in the interface for this query, then this report will be called automatically. If more than one report has been entered, a pop-up window will appear in which one of the reports has to be selected.

The data which is to be passed to the recipient report is prepared in the Call report function. This data includes all the selection criteria and parameters which were entered in the selection screen of the query. Other data is determined from the position of the cursor in the query list. The cursor must always be positioned on a field. In the case of a single-line list (single-line basic list, statistics, ranking list) all the fields in the line on which the cursor is positioned are passed together with their values. If the list is a multiple line basic list then only the field on which the cursor is positioned is passed together with its field value.

Data is passed only if the corresponding field has a Dictionary reference, so that either a data element or a domain can be allocated to the data.

The data determined as above is passed across the interface as selection data to the report which was called. The data is allocated to the selection criteria of the report according to the data elements and domains. The recipient report is then executed with these selection criteria.

The function Goto ® Calling sequence allows the user to navigate through a sequence of reports that have been called via the interface. A window appears containing a list of all reports in the calling sequence. A report can be chosen out of this list and marked as a return point.

The Report-Report-Interface also implements a quite different type of drill-down technique to that described in Interactive List Display Functions . Since this interface sees every query as a report, it is possible to combine several queries with each other quite simply via the interface.