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: 

CDPOS/CDHDR not getting updated

0 Kudos
1,446

Hi,

I have a requirement to maintain the change log for a custom table. For this i have created a custom object using SCDO and the 'change document' checkbox against the data elements is selected. Inside the table maintenance generator(TMG) events, i am calling the system generated FM to log the changes. This FM is an 'update function module' with 'start delayed' option selected.

However no update happens in the log tables. Since this is an update FM, do i need to call it in 'update task' ? Also is any 'commit work' needed ?

Kindly give me your inputs.

Thanks,

Meera.

Edited by: Meera Alex on Jun 10, 2010 7:32 AM

6 REPLIES 6

birendra_chatterjee
Active Participant
0 Kudos
318

Hi Meera,

It is very simple to activate change log for custom tables. Maintain (tick) log data changes in the technical settings of the custom table. Then you can see the change log of the table. For every update of this table through TMG, a change log entry will be stored in DBTABLOG.

Regards,

Birendra

0 Kudos
318

Hi Birendra,

I have already done that. Also i want my change log in CDPOS table.

Thanks,

Meera

Former Member
0 Kudos
318

1) ensure that Chnage Document check it activated at the Data Element Level.

2) Auto generated FM in SCD0 should write entries in CDPOS I dont think any other special processing is required here.

Former Member
0 Kudos
318

Hi

Did you select the 'log data changes' check box in the technical settings of your table?

Regards,Deepa

0 Kudos
318

Hi,

Yes. That is done. On debugging,i could see the insert into CDHDR/CDPOS statements with the expected data.

However database commit is not happenning due to some reason and i feel hence the data is not getting populated.

Does anyone have any inputs ?

Meera

0 Kudos
318

Hi Meera,

After the commit work just use the statement wait upto 3 seconds.

Hope this might solve your problem.

With Regards,

Sumodh.P