Import/Export Macros for Cluster Data

Definition

Programs that process the cluster data (for example, RX) do not access the cluster independently. The data is accessed using a defined interface created with macros.

The import and export macros form the basis for the structure of a cluster. The structure definition for a cluster contains a list of the stored data and the sequence in which it is used.

Note Note

For more information on the structure description, see Files PCL1, PCL2, PCL3, and PCL4 .

End of the note.

Use

By using macros, you ensure that the cluster data is always accessed under the same conditions. This avoids inconsistencies.

If there are changes in the way the data is read or stored, then by using macros, these changes must only be made in one place (in the respective macro).

Note Note

The macro coding must be available in the program. Macros are inserted in the reports using includes.

End of the note.

Structure

The following naming convention applies:

RP-aaa-bb-cc

Legend:

  • aaa is the type of macro:

IMP Import macro

EXP Export macro

  • bb is the database table where the data is saved:

C1 Database object PCL1

C2 Database object PCL2

C3 Database object PCL3

C4 Database object PCL4

  • cc is the cluster:

RX Cluster object RX

RD Cluster object RD

B2 Cluster object B2

and so on

Macros are defined using the ABAP commands DEFINE/END-OF-DEFINITION.