Skip to Content
author's profile photo Former Member
Former Member

Change Document Object via SCDO

Hi,

I have created one Change Document Object ZCHNGDOC via TCode SCDO to track the changes in Z Table ZTAB1 .

The Change Document Object ZCHNGDOC has generated one Include Program FZCHNGDOCCDT which again consists of two Includes. It also generated one Function Module ZCHNGDOC_WRITE_DOCUMENT .

While changing the records in Z Table ZTAB1 , no changes has been tracked in the standard table CDHDR and CDPOS for this Change Document Object ZCHNGDOC .

Whether I have to attached the generated Include program some where ?

With regards

Manish Kumar

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Oct 06, 2009 at 06:58 AM

    Yes you must call the FM via the generated include in your update program, change document are programmatically managed. in the "SAVE" form use some CALL FUNCTION IN UPDATE TASK to call the FM that updates database and the FM that creates change documents - look at [Update Techniques|http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4cba79e11d1950f0000e82de14a/frameset.htm] and [BC414|http://www.sap.com/services/education]

    - without programming you can fill DBTABLOG via SE11 options

    - Also look at [Defining Change Document Objects|http://help.sap.com/SAPHELP_nwmobile71/helpdata/EN/2a/fa018f493111d182b70000e829fbfe/frameset.htm] and [Integrating the functionality into the program|http://help.sap.com/SAPHELP_nwmobile71/helpdata/EN/2a/fa01b6493111d182b70000e829fbfe/frameset.htm]

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 06, 2009 at 06:58 AM

    Hi,

    Yes we need to use the includes in the module pool program..we need to write logic to populate ZCHNGDOC_WRITE_DOCUMENT .

    Regards,

    Nagaraj

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 06, 2009 at 02:11 PM

    Yes, you need to use the FM ...WRITE_DOCUMENT with the old and new record as parameters. Also, don't forget to check wheter the data elements of the fields you want to keep track of are set for change documents, as only those will generate records in CDPOS.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.