Friday, February 27, 2015

106.ABAP TIP - How to trace the changes for cbo table








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.


Lets 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.



Lets 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.




1 comment:

  1. How to make a deposit at the casino site: online slots, bingo
    All you need to know about deposit methods and how to make your bets online. you will septcasino need to have a หารายได้เสริม minimum deposit of 100% on any 카지노사이트 slot

    ReplyDelete