‎2008 Nov 18 7:41 AM
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
‎2008 Nov 18 8:08 AM
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