Method GET_TRANSPORT_OBJECTS
Use
The GET_TRANSPORT_OBJECTS method represents the first part of the connection to the transport system. Later on (when Saving Data), you implement the second part of the connection to the transport system in the Method SAVE_PREPARE.
The GET_TRANSPORT_OBJECTS method has the following effect:
-
It determines the tables affected by a changed activity ( Create, Change or Delete). In contrast, the Display activity is not transport-relevant.
-
It makes the determined objects available to the caller (in other words, to function group BRF_MAINTENANCE) as a return table.
Sample source text:
METHOD if_maintenance_brf~get_transport_objects.
DATA: ls_e071 TYPE ko200.
CALL METHOD super->if_maintenance_brf~get_transport_objects
IMPORTING
et_e071 = et_e071.
* Specify your object by type (pgmid and object) and name (obj_name)
ls_e071-pgmid = 'R3TR'.
ls_e071-object = 'TABU'.
ls_e071-obj_name = 'TBRF142'.
ls_e071-objfunc = 'K'.
APPEND ls_e071 TO et_e071.
* Specify your object by type (pgmid and object) and name (obj_name)
ls_e071-pgmid = 'R3TR'.
ls_e071-object = 'TABU'.
ls_e071-obj_name = 'TBRF144'.
ls_e071-objfunc = 'K'.
APPEND ls_e071 TO et_e071.
ENDMETHOD.
Description:
To start with, the method of the superclass is called so that it can determine its objects. In the current class, tables TBRF142 and TBRF144 are accessed. In this sample source text, these two tables are only made known to the transport system. The concrete keys are not transferred here, but later on in the SAVE_PREPARE method.
When specifying the tables, note the following:
-
At this point the number of tables specified can be higher than the number of transport entries actually written later on when saving.
-
Conversely, when you save later on, you can only write transport entries for tables that you have specified here.
Based on this information, the transport system uses the SAVE_PREPARE method later on to execute the following checks:
-
The transport system checks whether changes may be made to customizing objects (since customizing is not permitted in some clients)
-
If changes may be made to customizing objects, the transport system checks whether transport requests are required or not.