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: 

Activate Change Log for HUSSTAT Table

poorna_soysa1
Explorer
0 Kudos

How do we activate the change log for a standard table like HUSSTAT so that the change logs are recorded in CDHDR and CDPOS tables?

6 REPLIES 6

Former Member
0 Kudos

Hi Poorna,

Do you want to add any fields into that table?

0 Kudos

Hi Nagendra,

No, it's just standard fields that are there.

thanh_dinh
Explorer
0 Kudos

Hi Poorna,

My idea is using t-code SE13. Did you try it?
Regards,

Thanh.

0 Kudos

Hi Thanh,

We did activate the "Log Data Changes", but no changes are captured.

We are writing the changes manually using a simple UPDATE statement to the HUSSTAT table. Arethese types of updates captured in the log using the above function?

0 Kudos

Hi Poorna,

Because you are updating data by UPDATE statement so you must add some step to use the changed document.
Please follow this guide:
https://wiki.scn.sap.com/wiki/display/ABAP/ABAP+-+Data+Change+Tracker+for+Custom+Tables

I hope your issue is done now.

Regards,

Thanh.

raymond_giuseppi
Active Contributor

Change documents are generated from some explicit Abap code in transactions/applications, not from a ddic SE11/SE13 technical settings which can only create log data change (DBTABLOG and not CDHDR/CDPOS) Notye that some ddic actions are required, like setting the 'Change document' flag on data elements to log.

  • in transaction SCDO create a change document object, generate the FM
  • in the creation/maintenance transactions call this FM

But

  • In SCDO look at object HANDL_UNIT (or browse table TCDOB) in the maintained tables list you should already find HUSSTAT table, so you can find the FM name, perform some where-used search, etc.