Application Development and Automation 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: 
Read only

Change history issue for custom table

Former Member
0 Kudos
952

Hi All,

I need to capture the Custom table changes in CDHDR and CDPOS.

I have created a new change document  for custom table using the tcode SCDO.

it is created a new function module *WRITE_DOCUMENT.

I have created 2 records, updated 1 record and deleted 1 record from table.

How can call the *Write_document " function module to  capture the all above operations .

should i call the FM 3 times? or 1 time is enough? Please help me.

regards,rama

5 REPLIES 5
Read only

former_member241258
Active Participant
0 Kudos
593

can u share code plz

Read only

0 Kudos
593

it is webui in SAP CRM. There we can add /change/ delete.  Not through our regular report coding .

regards,rama

Read only

Former Member
0 Kudos
593

Hi Ram,

It depends on your requirement. If you want to save multiple entries at a time you can do it but they will get saved with single change number CDHRD.

This has to be configured in SCDO.

I would suggest to go for 1 call at the end of processing.

Thanks,

Ritesh

Read only

0 Kudos
593

hi Ritesh, Yes, I have created a change documented using SCDO , it is created one FM.

can I have fill old and New entries into the internal tables( table Parameters in FM).

does system will take care of create/change and delete operations?

regards,rama

Read only

0 Kudos
593

System will take care of creation and deletion. Just see that all the table fields for which you want to have the change logs are flagged with Change document at Data Element level.

I hope the above makes sense.