Create a Change Document Object
You can use transaction SCDO to create a change document object for a customer-specific infotype.
To create a change document object, proceed as follows:
Start transaction SCDO . The
Change Document Objects: Overviewscreen is displayed.
Createfrom the toolbar. The
Change Document Object: Createdialog box is displayed.
Enter the name of the change document object. SAP recommends you adhere to the following naming convention:
Y_HR_ITnnnn(where nnnn = infotype number), for example, for infotype 9933:
Follow the instructions in the next dialog box and enter the package to which the change document object belongs and a transport request . Choose
In the dialog box
Change Document Object: Create,enter a description for the change document under
Textand enter the database tables that belong to this infotype under
Table.In all likelihood, the relevant database tables are HRPnnnn and for table infotypes, table HRTnnnn (nnnn = infotype number).
If you are unsure as to which database tables are relevant, you can verify this in table T777D (
Infotypes – Dialog/Database Assignment) in the DBTAG and TBTAB fields.End of the note.
Note that you should not select the
Copy as Internal Tablefield for the HRPnnnn table. For the HRTnnnn table, however, you must select this field if the customer-specific infotype is a table infotype.
You should always select the
Doc. for Individual Fields at Deletefor HRPnnnn and HRTnnnn tables.
Do not make any entries in the
Name of Ref. Taband
Name of Old Field Stringfields
Save your entries. The change document objects you have just created are now displayed together with the existing change document objects in the initial list.
Generate Update Pgm.The
Update Programdialog box is displayed.
Enter the following information in this dialog box:
Include Name:the name you enter here is used as part of the include names that are generated here. Each change document object must have a different name. SAP recommends that you use the name of the change document object.
Function Group: a separate function group must be used for each change document object. Enter the function group here. SAP recommends that you adhere to the following naming convention: ZHR_CDOC_ITnnnn or YHR_CDOC_ITnnnn (nnnn = infotype number).
You should never enter an existing function group because the function group you enter here is deleted and then generated again. This is also the case when the change document object is transported. Consequently, you should not use the function group you enter here for any other purpose.End of the caution.
Fun.Mod. Structure Prefix:new structures must be created for table infotypes. To avoid naming conflicts, you can enter a prefix that is used for these structures. You can enter the default value V . If a structure already exists with the name V HRTnnn (nnnn = infotype number), you can enter a different prefix.
Error Message IDand
Error Number:do not change the default values.
Special Text Handlingand
Generating Data for ABAP 00:do not select these indicators.
Generate,follow the instructions, and complete the generation process by choosing
You have created a change document object and generated an update program.