Using Tables as Modules
The following example demonstrates how to create a context called DOCU_TEST1, which has two modules with type table. The tables used are SPFLI and SFLIGHT from the data model BC_TRAVEL.
All of the columns of table SPFLI are used as fields in the context. The interface of module SPFLI shows that the key fields CARRID and CONNID are the input parameters.
All of the columns in SFLIGHT which are not already contained in SPFLI are now also used in the context. The interface for module SFLIGHT shows that the key fields CARRID, CONNID and FLDATE are the input parameters of the new module.
The context is finished and can be tested (seeTesting a Context ) and used in programs (see Using Contexts in ABAP Programs).