Report/Report Interface: Transformation of Selection Data
The report/report interface lets you call up receiver reports (ABAP reports, transactions, ABAP query, Report Writer reports and drilldown reports) from a sender report. The sender selection data is reproduced in the receiver selection data. The system performs the following steps to reproduce the sender fields in the receiver fields:
In the procedures described below, it is important to note that the technical domains of the related data elements must have the same value (data type, field length etc.). Otherwise, the report/report interface will not be able to transfer data correctly.
Transformation by Domain Equivalence: Virtual Domains
You can influence how selection data is transformed in accordance with steps 2 and 3. In step 2, you can use virtual domains instead of real domains. A virtual domain is a definable name, which you can assign consistently to the data elements which you want to relate to one another. To do this, create a new data record in table TVIRTDOM for each affected data element, and enter the name of the data element and the virtual domain you want to use.. The system finds the correct data element assignment from the name equivalence of the virtual domains, when the report/report interface is called up.
Alternatively, you can enter the actual domain for data element A and enter the same domain for data element B, which you want to assign to data element A. In this case, the entry you make in data element B is a virtual domain, as a different technical domain is assigned to B's data element definition.
In some applications, for example, various data elements are used for the characteristic "period". To assure that the report data is still assigned correctly, make the following entries in table TVIRTDOM:
TVIRTDOM
Date element |
Virtual domain |
Comment |
CFPERDE |
PERDE |
Drilldown EIS |
CO_PERIO |
PERDE |
CO-OM |
KKB_PERBL |
PERDE |
Transaction KKBC |
PERIODE |
PERDE |
FI-LC |
Entries in table TVIRTDOM are not client-specific. As a result, changes which you make here will not take effect in all applications which use the report/report interface.
The graphic below illustrates the use of virtual domains:
The sender report provides the period with data element CFPERDE. However, the receiver report expects data element CO_PERIO. Due to the non-equivalence of data elements, the report/report interface now finds the virtual domain which CFPERDE is assigned to. Using the relevant data elements which are also assigned to this virtual domain, the system chooses the data element CO_PERIO, and it is now possible to make an entry in the receiver report's period field.
Transformation by Domain Equivalence: Equivalent Domains
When attempting to find suitable data elements for the transfer of selection data, it might not be possible to find assignments to virtual domains. In this case, it is also possible to represent the "real" domains which are actually assigned to the data elements. These "real" domains are defined in the data dictionary, and form a component of the technical definition of the data elements in question. To define a relationship of equivalence between two domains, proceed as follows:
For technical reasons, it is not possible to determine whether a pair of domains you have entered is actually equivalent from a managerial viewpoint. For this reason, the system does not perform a consistency check. You must check the consistency of your entries yourself.
The relationship between the two domains is not fixed. This means that it is of no importance which of the two domains belongs to the sender field and which belongs to the receiver field.
Entries in table TEQUIVDOM are not client-specific. As a result, changes which you make here will not take effect in all applications which use the report/report interface.
Although they possess different data elements, the characteristics cost element (KSTAR) and general ledger account (SAKNR) are semantically equivalent.
Calling up Reports with Variants
You can use the report/report interface to call up ABAP reports, ABAP queries and drilldown reports from many applications with variants. When assigning the report, both the name of the report and the required variant have to be entered. The system then sends on the sender selection data to the receiver report and fills the entry fields in the receiver report automatically, meaning that you do not normally have to make any entries yourself on the selection screen for the receiver report.
If you also call up the receiver report with a variant, the system takes into account both the sender selection data and the variant values of the receiver report. The relationship between the sender selection data and the variant values of the receiver report is decided as follows:
This functionality allows you to reproduce sender selection data more precisely in receiver entry fields. In particular, you can check the display of the receiver selection screen to a large extent:
Transformation of Global variables
In a drilldown report, it is possible to define more than one variable for the same characteristic. In two columns of a form, for example, the variables PER1 and PER2 could be defined for the characteristic "period", to represent a start period and an end period. If you use the report/report interface to call up a report which uses this type of form, variables PER1 and PER2 cannot be filled at first, as data equivalence exists between the sender and receiver selection data, but not uniqueness (see above). A solution to this problem is to transform global variables.
Here, sender variables are reproduced in receiver variables if they both have the same global variable name. For example, if the sender report has global variable PER1, the receiver variable is entered as PER1. If the sender report still has global variable PER2, PER2 is also entered in the receiver report.
Calling up Reports from other Systems
The report/report interface also lets you call up reports (ABAP reports, transactions, ABAP query, Report Writer reports and drilldown reports) from other systems. To do this, proceed as follows:
Another dialog box appears.
You can also assign and call up queries from a BW system. To do this, however, BW-ADD-ON must be installed in the sender system. It is possible to carry out transformation between the sender selection data and the receiver selection data from the BW system provided that the data in the corresponding BW InfoCube originates from the sender system.