
Proceed as follows:
Call the change document maintenance transaction ( ). You get an overview of existing change document objects.
Choose the menu option Create.
Enter the name for the change document object.
Choose Continue. You go to a new window for entering the tables.
Enter a descriptive short text for the change document object.
Make the following entries for each table whose changes are to be logged in the change document for this change document object:
- Name of the table
Name of the table, as defined in the Dictionary
- Flag Passed as internal table
Set this flag if the change data is to be passed in an internal table (multiple case). If you do not select this field, the change data will be passed in a work area (single case)
- Flag Doc.of individual fields at deletion
Set this field to log every field from which data is deleted. If you do not set this flag, the deletion of all relevant fields is entered in one document item (in the field FNAME is 'KEY', field TABKEY is filled).
- Doc. Fields at Insertion flag
Set this flag to log every field in which data is inserted. If you do not set this flag, the insertion of all relevant fields is entered in one document item (in the field FNAME is 'KEY', field TABKEY is filled).
- Name of ref. tab (Name of referencing table)
If currency and unit fields are defined in a reference table, not in the passed table, you must pass the name of the reference table and the referred field, to the function modules. Create a structure in the Dictionary as INTTAB, and define fields for this structure with the names of the corresponding reference table and fields.
Then enter here the name of this structure that refers to the reference table
In the single case, the reference information is passed as two work areas (old, new). In the multiple case, the internal tables are enhanced to include the reference structure.
In table X4711, there is a value in the field PRICE;the unit of this value is taken from the field CURR in table T001. Create a structure of type INTTAB, e.g. R4711, containing the field T001WAERS, in the Dictionary.
In the program, put the value from T001-CURR in the fields T001WAERS of the reference table (old and new) for the single case, and the internal tables for multiple case.
- Name of the old structure
Only possible in single case, i.e. when passing change data in a work area: If you do not want to use the *work area, enter an alternative name for the old work area.
After you have entered all the relevant data, choose Add Entries. The new entries are displayed.
Save your entries.
Transport Change Document Object
The change document objects are included in the transport as a separate object type; the inclusion in a change task takes place when the object is created.
The object-specific update task is generated in the target system during transport.
Transport object for change document objects:
R3TRCHDO
The object-specific update task is generated in the target system during import. The object-specific update contains generated structures, include programs and a function group.
All manual changes to generated structures, include programs or the function group are overwritten by the generation during import.
Do not transport the generated structures, include programs or the function group directly in their own transport objects. This can cause errors when importing the change document object.
The generation is in an After Import method AFTER_IMP_CHDO.