Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Change Document

Former Member
0 Likes
1,111

What is the use of Change Document for Data Element?

Arun.c

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
805

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

4 REPLIES 4
Read only

Former Member
0 Likes
805

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.

Read only

Former Member
0 Likes
806

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

Read only

Former Member
0 Likes
805

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

Read only

Former Member
0 Likes
805

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.