‎2007 May 25 10:35 AM
Hi friends,
I've the following requirement:
I need to track the changes (updates/inserts/deletes) for some master data tables, some of which doesn't have idocs. Now I was given to understand that there is this concept called Change Document. I tried implementing that, but am stuck on some points.
What is the concept of namespace in SCDO? While creating a change document, I was getting this message that the object was not in my namespace. It did allow me to create the object, but I would like to know what exactly is the use of a namespace. Is this the equivalence of a package?
How is the form <xxx>_CDC which contains the function module call
<yyy>_WRITE_DOCUMENT called? Do we have to actually code this in an exit, or is it called automatically? I tried adding one table (TCJ1T) in PROJ through SCDO and regenerated the programs. The change document flag was also set. But no logging took place. Am I missing something?
Thanks & Regards
Anil Madhavan
‎2007 May 25 10:50 AM
Hi
The Name Space is the NAME CONVENTION u should use to call the object custom (run trx SE03), in this case if your change object is called Z_<Object Name> it doesn't need to use any Space Name.
U have to call the fm to write the documents, the system doesn't run it automatically.
Max
‎2007 May 25 11:14 AM
Hi Max,
Thanks for the prompt reply.
Again I'm a bit confused as to how the function modules should be called. Should it be called in an exit?
Now if I want to monitor some Z-tables, where do we call this function module? Is it at some point in the table maintainence generator?
Thanks & Regards
Anil Madhavan
‎2007 May 25 11:28 AM
Hi Anil,
The FM should be called in the event of table maintenace generator, I think after save may suit your requirement.
Reward points if useful.
Regards,
Atish
‎2007 May 25 11:58 AM
Hi Atish,
Thank you for your response.
You need to capture the old and the new values and pass these to the function modules. How do we capture the old values?
Can you pass a sample code as to how the function module is called, especially the way the old and the new values are passed?
And friends..
My main question is still unanswered. How do we capture the updates on master data tables for which no idocs are provided? And what more settings has to be done while changing the existing standard change document objects?
Is there a tutorial explaining these concepts in detail apart from SAP Help?
Thanks & Regards
Anil Madhavan