Chapter 106
ABAP TIP - How to trace the
changes for cbo table
Source
: http://abapjoy.blogspot.com
When you need to trace the change log in SAP standard table, the table
of ‘CDHDR’ and ‘CDPOS’ enable
you to make it.
In case of CBO table, you can make the change management following the
below method.
For testing, you need to create CBO table ‘ZSCARR’.
Execute T-CODE:SCDO and push the button ‘Create’
Input the Change doc.object w/o namepace prefix and push the button ‘Continue’.
Move to next screen by pushing the ‘Yes’.
Input the table name and push the ‘Insert Entries’
Check the option for change document in data element of the table.
Let’s move to change document object again, chose the menu : Menu ->
Utilities -> Generate update pgm.
Enter the function group name so on, and execute generate.
Relevant programs and function module is automatically created.
Let’s test the function module generated in T-CODE:se37.
Now, once you call the function in program, you can trace and save all
change log.
Since the function of ZCARRID_WRITE_DOCUMENT is update function module,
you should describe the COMMIT WORK or COMMOT WORK AND WAIT after calling the
function.
You can see the change log in table CDHDR, CDPOS.