Change Logs For ZTables Using SCDO Transaction Code - 1 (SAP ABAP).


Submitted By: Shilpa Gunjan (LnT Infotech)


In SAP implementation for a business, not all the requirements are covered in the standard SAP tables. Hence, there are possibilities wherein custom tables (ZTABLES) are used to hold important data.


This article will help you explain how to track data changes in custom tables (ZTABLES) through standard SAP change tables (CDPOS & CDHDR).


Standard change tables CDHDR and CDPOS are used for tracking the changes made to the standard SAP objects. In case there is a requirement, wherein we need to track the changes made to custom tables i.e. ztables, we need to log those changes in standard SAP change tables (CDPOS & CDHDR).


Two major processes involved in tracking the changes of custom tables are –

1) Change document object
2) Function module for the change document object


Here we will see step-by-step procedure involved to achieve the same.


SCENARIO:

In this case we have a ztable wherein discounts are maintained for vendors of specific purchasing organization. So it’s highly sensitive data. SO there comes a requirement wherein the client wants  a change log to be maintained so that any changes to the ztable can be tracked.



To support the tracking process we need to enable the check box for 'change document' in the respective data elements for all those which need to be tracked. In this case we want to track when user changes discount.


The data element ZDISCOUNT_TEST is created and the characteristic 'CHANGE DOCUMENT' is activated as shown:



                                                                                                               NEXT PAGE>>

ALSO READ:

- Change Logs For ZTables Using SCDO Transaction Code - Page 1.

- Change Logs For ZTables Using SCDO Transaction Code - Page 2.

- Change Logs For ZTables Using SCDO Transaction Code - Page 3.

- Change Logs For ZTables Using SCDO Transaction Code - Page 4.

- Change Logs For ZTables Using SCDO Transaction Code - Page 5.

- Change Logs For ZTables Using SCDO Transaction Code - Page 6.

- Change Logs For ZTables Using SCDO Transaction Code - Page 7.



Your suggestions and comments are welcome in this section.

Please mail all your contributions to administrator@abapmadeeasy.com We request you to mention your Name, Designation, Experience & Organization you are working for. Your posts will be verified and posted in this site with your name.