Skip to Content
avatar image
Former Member

Activate change pointers for Z-idocs

Hi friends,

I've created a Z-idoc for some standard SAP tables (like TCJ1T, TCJ05 etc). I've written a function module which fetches all the data from the above-mentioned tables and pass it on to the idoc. So far so good.

Now the requirement is like, I need to pass only the updated records (insert/update/delete) in these tables to the idoc. I found that there are concepts like change document and change pointers assosciated with it. Again, the fields that I need to transfer in the above tables have their change document flag set. I've also created a Z-Object through SCDO to capture the changes. (I initially tried adding the tables in the standard object PROJ regenerated the programs, but the approach didn't work). The function modules generated through SCDO, i guess, have to be called somewhere, may be in an exit (I got an info in a previous question that it is never called automatically, but has to be called explicitly). The entries for most of the tables I'm working with are created via SPRO (which links to the Table Maintainence Generator for the above tables). I found that there are no user-exits for the transactions SPRO and SM30, to call these function modules in the first place.

Change pointers refer to the tables CDHDR and CDPOS, the tables which the change document updates (as found in the function module CHANGE_POINTERS_CREATE). Now, how do I track the updates on these tables, since the change pointers itself is dependent on the change documents and I couldn't find a place to incorporate the function module call that would update the change document tables?

Any help is appreciated.

Thanks & Regards

Anil Madhavan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 31, 2007 at 09:55 AM

    Hi,

    In general change pointers will be read by the FM, MASTER_IDOC_SMD_MESSAGETYPE which inturn call the FM,

    CHANGE_POINTERS_READ this will read the change pointers from BDCP table and process the corresponding change documents in CDHDR, CDPOS tables.

    To process our custom change we need to copy the above fm module and create a custom FM which will process our change pointers.

    Thanks

    Add comment
    10|10000 characters needed characters exceeded