08-04-2008 9:11 AM
I want to use custom change object behind the customer fields scenario hence some tables does not exist in object DEBI . I enhanced the DEBI as a ZDEBI . But I dont know how to triggering the function module will be triggered instead of DEBI_WRITE_DOCUMENT. Can I do like this.
Edited by: carlos eduardo on Aug 4, 2008 10:20 AM
Edited by: carlos eduardo on Aug 4, 2008 3:57 PM
08-04-2008 4:24 PM
In order to do this you would have to either use a user-exit or an enhancment point to make the call the function. The change document functions are not dynamcially called.
If you extend an existing table (example, an append structure on the KNA1 table) then these new fields will automatically be passed to the existing change document object that KNA1 is part of.
~Ian
08-04-2008 6:23 PM
Is that correct Ian? I thought you had to specifically state which fields should have change documents applied.
Rob
08-04-2008 10:13 PM
>Is that correct Ian? I thought you had to specifically state which fields should have change documents applied.
It's correct, but I should clarrify that you also still need to ensure that the data elements are set to relevent for change tracking (either exiting data elements or custom). The reason that this works is that the entire work area (including append structures) is passed to the change pointer function which then dynamically looks at each data element used to decide if it is tracked.
~Ian
08-04-2008 10:45 PM
So is this different from the functionality for change documents on, say, custom tables?
Rob
I just re-read your answer and saw "data elements are set to relevent for change tracking". I think that's the part I was missing.
Edited by: Rob Burbank on Aug 4, 2008 5:53 PM