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

How to trigger Change Pointer in Z program

Former Member
0 Likes
1,174

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

4 REPLIES 4
Read only

brad_bohn
Active Contributor
0 Likes
845

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.

Read only

Former Member
0 Likes
845

Hi Brad,

Thanks for your reply. Will do as your suggestion.

Regards,

Elaine

Read only

Former Member
0 Likes
845

Hi Brad,

Thanks for your reply. Will do as your suggestion.

Regards,

Elaine

Read only

Former Member
0 Likes
845

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