You use the
function to call a report over the interface. If, in the interface for the query, only one report has been specified as a receiver, this report is called directly. If more than one report has been specified as a receiver, a dialog box appears, from which you select a report.Before a report can be called successfully, the query (or query report) has to be specified as a sender in the interface together with the assigned receiver reports.
You have executed a query and chosen ABAP List as the display format.
Features
The
function prepares the data that is passed to the receiver report. 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 elements and domains are responsible for assigning the data to the selection criteria of the report. The recipient report is then executed with these selection criteria.
When you want to call a report, position the cursor over a row in the list and choose the
function.The data is transferred and the report that is associated with this query is executed.