Skip to Content
0

Activate Change Log for HUSSTAT Table

Jun 30, 2017 at 08:20 AM

57

avatar image
Former Member

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Raymond Giuseppi
Jun 30, 2017 at 01:40 PM
1

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.
Share
10 |10000 characters needed characters left characters exceeded
Thanh Dinh Jun 30, 2017 at 09:17 AM
-1

Hi Poorna,

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

Thanh.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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?

log.png (2.2 kB)
0

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.

0
avatar image
Former Member Jun 30, 2017 at 09:08 AM
-2

Hi Poorna,

Do you want to add any fields into that table?

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Nagendra,

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

0