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 Document issue while inserting new records

Former Member
0 Likes
405

Hi,

If we insert new records using change document function module with change indicator = I, only one record with the key fields are documented. But I want all the fields to be documented individually (similar to documenting each field during deletion).

Is there any way to document each field while inserting new records?

eg., call function xx_write_document

....

....

tables

xtab = itab_xx ( internal table containing records with chind = 'I' )

ytab = itab_yy

after calling this function module, in the cdpos table, only one record with key field value is created for each record in the internal table. No other field values are stored.

But I want all the field values to be documented individually.

Regards,

SAP Lover

1 REPLY 1
Read only

RaymondGiuseppi
Active Contributor
0 Likes
296

I don't think it may be issued via standard way, there is no flag to describe each field when inserting. Look at the function module [CHANGEDOCUMENT_MULTIPLE_CASE|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=changedocument_multiple_case&adv=false&sortby=cm_rnd_rankvalue#]. You may have to duplicate this FM to build your own FM and add a parameter DOCU_INSERT and manage it like DOCU_DELETE. Then copy/adapt the generated includes used in your programs.

Regards