‎2008 May 12 8:12 AM
‎2008 May 12 8:16 AM
Hi Arun,
In further characterics tab
Mark data element as relevant for change documents:
The data of a business-oriented object is often distributed on several tables.
To be able to trace changes to this business object, these tables can be combined in a Change document object
Function modules that can be integrated in the corresponding application programs and that log the changes are generated from such a change document object.
Changed field contents are only logged if the Change document flag is set for the data element of the field
Chk this for more.
http://help.sap.com/saphelp_nw70/helpdata/en/90/8d7307b1af11d194f600a0c929b3c3/content.htm
Regards,
Naresh
Please Reward points if found useful
‎2008 May 12 8:15 AM
Hi,
Just by flagging Change Document Option in Data element it will not create any change document entries.
This flag is only a pre requisite to generate the Change documents.
But we have to create a Change document object in Tcode SCDO and
Call the Change document FMs from the Program.
You need to create a chage document class for your table in SCDO transaction providing your table name. Once this is activated you will get some program and subroutine and Function module get generated. this you can find from the generation info from the transaction. This will also create an entry in table TCDOB.
then from the update program of the table you need to call the subroutine (generated in the above step) passing the new/changed data in x<tablename> and old data in y<tablename> format.
This will create entry in CDHDR AND CDPOS table.
Regards,
Raj.
For more info refer to SAP Library on Change documents concept.
‎2008 May 12 8:16 AM
Hi Arun,
In further characterics tab
Mark data element as relevant for change documents:
The data of a business-oriented object is often distributed on several tables.
To be able to trace changes to this business object, these tables can be combined in a Change document object
Function modules that can be integrated in the corresponding application programs and that log the changes are generated from such a change document object.
Changed field contents are only logged if the Change document flag is set for the data element of the field
Chk this for more.
http://help.sap.com/saphelp_nw70/helpdata/en/90/8d7307b1af11d194f600a0c929b3c3/content.htm
Regards,
Naresh
Please Reward points if found useful
‎2008 May 12 8:19 AM
Hi,
This flag is used to create change documents for business objects.
You can create a change document object for a business object. This change document object contains the tables in which the data of the business object is stored. Function modules that are called in the corresponding application programs and that log the changes at runtime can be generated from the change document object.
Logging only takes place if the fields whose contents were changed refer to a data element that was flagged as relevant for the change document.
You can go to the maintenance screen for change documents from the initial screen of the ABAP Workbench with Development -> Other tools -> Change documents.
Regards,
Kumar
‎2008 May 12 8:23 AM
Hi,
This flag is used to create change documents for business objects.
You can create a change document object for a business object. This change document object contains the tables in which the data of the business object is stored. Function modules that are called in the corresponding application programs and that log the changes at runtime can be generated from the change document object.
Logging only takes place if the fields whose contents were changed refer to a data element that was flagged as relevant for the change document.
You can go to the maintenance screen for change documents from the initial screen of the ABAP Workbench with Development -> Other tools -> Change documents.