‎2010 Jul 15 5:20 PM
Hi All,
We have activated Change Pointers for Message type CREMAS (Vendors)
I have selected a dozen fields using BD52 - including a Z field in table LFM1 u2013 which I want an IDOC to be created for on Change.
When use XK01/XK02 to change Z field, it works fine (change records are generated in BDCP/BDCPS)
We have a custom Z program to update value of the Z field by u2018UPDATEu2019 statement. After run this program, however, the records are not generated in change pointer tables.
Can anyone help? Is it just a setting somewhere or I have to modify the Z program so the system generates change records in these tables?
Thanks in advance for your help,
Elaine
‎2010 Jul 15 6:10 PM
Since you are updating the value directly, you would need to call the change document write function for the change document object in order to trigger the change doc and thus the change pointer via the standard process: KRED_WRITE_DOCUMENT. You can view the call from XK01/XK02 in debug mode for your Z-field to see how it works.
‎2010 Jul 15 6:36 PM
Hi Brad,
Thanks for your reply. Will do as your suggestion.
Regards,
Elaine
‎2010 Jul 15 6:41 PM
Hi Brad,
Thanks for your reply. Will do as your suggestion.
Regards,
Elaine
‎2010 Jul 15 10:24 PM
Hi Brad,
By reading function KRED_WRITE_DOCUMENT, I've added code in my Z program and it works fine.
Thanks a lot for your help.
Elaine