<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Help on Change document in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-change-document/m-p/8572700#M1660092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help on Change document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have custome table, my requirement is ,i need to track the chnages to all fields in the cutom table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i have created chnage document object id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in my program if i am doing any modify or delete i need to track the changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i am using the FM which was generated during creation of change document object id in my program in order to track chnages but after executing my program i am unable to see any entries in CDHDR and CDPOS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the piece of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      PERFORM write_document USING 'ZXXXX' 'ZXX_CSX' 'D'.

FORM write_document  USING p_objectid p_tcode p_upd_type.

  DATA: lt_dummy    LIKE cdtxt OCCURS 0.


  CALL FUNCTION 'ZXXXX_WRITE_DOCUMENT'
    EXPORTING
      objectid                      = p_objectid
      tcode                         = p_tcode
      utime                         = sy-uzeit
      udate                         = sy-datum
      username                      = sy-uname
*     PLANNED_CHANGE_NUMBER         = ' '
      object_change_indicator       = p_upd_type
*     PLANNED_OR_REAL_CHANGES       = ' '
*     NO_CHANGE_POINTERS            = ' '
*     UPD_ICDTXT_ZMD0036            = ' '
      upd_zmd0036                   = p_upd_type
    TABLES
      icdtxt_zXXXX               = lt_dummy
      xZXXXX                      = xzXXXX
      yzXXXX                      = yZXXXX
            .


ENDFORM.                    " WRITE_DOCUMENT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2012 04:49:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-16T04:49:46Z</dc:date>
    <item>
      <title>Help on Change document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-change-document/m-p/8572700#M1660092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help on Change document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have custome table, my requirement is ,i need to track the chnages to all fields in the cutom table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i have created chnage document object id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in my program if i am doing any modify or delete i need to track the changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i am using the FM which was generated during creation of change document object id in my program in order to track chnages but after executing my program i am unable to see any entries in CDHDR and CDPOS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the piece of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      PERFORM write_document USING 'ZXXXX' 'ZXX_CSX' 'D'.

FORM write_document  USING p_objectid p_tcode p_upd_type.

  DATA: lt_dummy    LIKE cdtxt OCCURS 0.


  CALL FUNCTION 'ZXXXX_WRITE_DOCUMENT'
    EXPORTING
      objectid                      = p_objectid
      tcode                         = p_tcode
      utime                         = sy-uzeit
      udate                         = sy-datum
      username                      = sy-uname
*     PLANNED_CHANGE_NUMBER         = ' '
      object_change_indicator       = p_upd_type
*     PLANNED_OR_REAL_CHANGES       = ' '
*     NO_CHANGE_POINTERS            = ' '
*     UPD_ICDTXT_ZMD0036            = ' '
      upd_zmd0036                   = p_upd_type
    TABLES
      icdtxt_zXXXX               = lt_dummy
      xZXXXX                      = xzXXXX
      yzXXXX                      = yZXXXX
            .


ENDFORM.                    " WRITE_DOCUMENT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 04:49:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-change-document/m-p/8572700#M1660092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-16T04:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Change document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-change-document/m-p/8572701#M1660093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can any please give a some example code which has multiple change document fields as code example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 05:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-change-document/m-p/8572701#M1660093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-16T05:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Change document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-change-document/m-p/8572702#M1660094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the following links may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;removed by moderator&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please do not post just link(s) without explaining the relevance.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Feb 16, 2012&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 05:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-change-document/m-p/8572702#M1660094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-16T05:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Change document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-change-document/m-p/8572703#M1660095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for asking the user not to just paste the link with out giving explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 03:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-change-document/m-p/8572703#M1660095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T03:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Change document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-change-document/m-p/8572704#M1660096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for asking the user not to just paste the link with out giving explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please replace the WIKI SDN link provided by the user it has a very good explanation. I am not supporting to paste links with out explanation but this WKI SDN link has good information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You solution worked for me. Wiki SDN link is really good with proper explanation but where as sap technical link provided is not good. With sap technical link i can not figure out where exactly i am doing the mistake in code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wiki sdn link has configuration steps and code explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 03:42:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-change-document/m-p/8572704#M1660096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T03:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Change document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-change-document/m-p/8572705#M1660097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The link was&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/ABAP" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/ABAP&lt;/A&gt;&lt;EM&gt;-&lt;/EM&gt;Data&lt;EM&gt;Change&lt;/EM&gt;Tracker&lt;EM&gt;for&lt;/EM&gt;Custom+Tables#ABAP-DataChangeTrackerforCustomTables-Stepbystepexplanationoncreationofchangedocumentobject&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the future, please make sure to search for such information before posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 12:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-change-document/m-p/8572705#M1660097</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-02-17T12:17:38Z</dc:date>
    </item>
  </channel>
</rss>

