Application Development 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: 

Change document flag in data element

Former Member
0 Kudos

Hi All,

What exactly the purpose of Change document flag that has been associated with the data element? How it keeps track of changes done to that particular field can some body explain in detail please.

Thanks&Regards

Mahesh

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Mahesh,

There are change document objects which register changes to SAP objects like Order, material etc. If you consider an order, you then need to assign the Change document object to SAP tables (VBAK, VBAP)..

This means this CD object will now track changes to vbak and vbap and log them.

Now comes the question as to which fields should it track. Because it would be a pain if you are going to track a vbak table by all its 40-50 fields. So only important and business relevant fields need to be tracked. So this flag that you are talking about is the same one.

It is at a data element level.

Hope this clarifies.

Reward points, if this answered your question.

Rgds,

Prashanth.

SAP.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Many commercial objects are frequently changed. It is often useful, or even necessary, to be able to trace the changes made. If changes are logged, you can find out at any time, what was changed and when and how the change was made. This can sometimes make the analysis of errors easier. In financial accounting, for example, change documents are used to make auditing possible.

Changes are logged in change documents, which can be created for actual or planned changes.

<b>Set change document flag</b>

This is necessary so that the object-specific function modules can identify which field of the defined object should be entered in the change document during logging.

If the flag is not set, you can change it. The flag becomes effective after the activation

http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/fa015b493111d182b70000e829fbfe/frameset.htm

Regards,

Raghav

former_member181962
Active Contributor
0 Kudos

if that field is checked for a data element, then for all the fields that refer to that data element, the changes(Including the creation and deletion) will be logged in standard tables:

Indicator for writing change documents

Use

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,

ravi

Former Member
0 Kudos

Hi Mahesh,

There are change document objects which register changes to SAP objects like Order, material etc. If you consider an order, you then need to assign the Change document object to SAP tables (VBAK, VBAP)..

This means this CD object will now track changes to vbak and vbap and log them.

Now comes the question as to which fields should it track. Because it would be a pain if you are going to track a vbak table by all its 40-50 fields. So only important and business relevant fields need to be tracked. So this flag that you are talking about is the same one.

It is at a data element level.

Hope this clarifies.

Reward points, if this answered your question.

Rgds,

Prashanth.

SAP.