<?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 Re: SCDO - Change Document in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/scdo-change-document/m-p/7191939#M1519950</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;Yes, the function module created from the change object only creates change documents.  You still need to update the table yourself, the change object will not take care of this.  After all, there may be more fields in the table that do not have change documents, so why would the change object take care of all of these fields that it knows nothing about?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Aug 2010 10:32:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-03T10:32:21Z</dc:date>
    <item>
      <title>SCDO - Change Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scdo-change-document/m-p/7191934#M1519945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hye,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Facing problem with the change document with update status. The tables CDHDR &amp;amp; CDPOS are getting updated , however my custom table ZEMPTABL is not getting updated with new values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The steps for creation i followed is as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Custom table : ZEMPTABL with Change document ticked for data elements&lt;/P&gt;&lt;P&gt;2) SCDO - Object created.&lt;/P&gt;&lt;P&gt;3) My program which calls function module for write document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZMSR_TRACKCHNG_CUSTOMTBL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : ZEMPTABL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : GS_EMPTABL LIKE ZEMPTABL,&lt;/P&gt;&lt;P&gt;       LS_EMPTABL LIKE ZEMPTABL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : T_CDTXT TYPE STANDARD TABLE OF CDTXT WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BREAK-POINT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM ZEMPTABL INTO GS_EMPTABL&lt;/P&gt;&lt;P&gt;  WHERE EMPNUM = '101'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LS_EMPTABL = GS_EMPTABL.&lt;/P&gt;&lt;P&gt;GS_EMPTABL-EMPNUM = '101'.&lt;/P&gt;&lt;P&gt;GS_EMPTABL-EMPNAME = 'TET'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_CDTXT-TEILOBJID = 'ZTEST_TABL_CHNG'.&lt;/P&gt;&lt;P&gt;T_CDTXT-TEXTART = 'TEST'.&lt;/P&gt;&lt;P&gt;T_CDTXT-TEXTSPR = 'EN'.&lt;/P&gt;&lt;P&gt;T_CDTXT-UPDKZ = 'U'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND T_CDTXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZTEST_TABL_CHNG_WRITE_DOCUMENT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    OBJECTID                         =  'ZTEST_TABL_CHNG'&lt;/P&gt;&lt;P&gt;    TCODE                            =  SY-TCODE&lt;/P&gt;&lt;P&gt;    UTIME                            =  SY-UZEIT&lt;/P&gt;&lt;P&gt;    UDATE                            =  SY-DATUM&lt;/P&gt;&lt;P&gt;    USERNAME                         =  SY-UNAME&lt;/P&gt;&lt;P&gt;   PLANNED_CHANGE_NUMBER            = ' '&lt;/P&gt;&lt;P&gt;   OBJECT_CHANGE_INDICATOR          = 'U'&lt;/P&gt;&lt;P&gt;   PLANNED_OR_REAL_CHANGES          = 'U'&lt;/P&gt;&lt;P&gt;   NO_CHANGE_POINTERS               = 'U'&lt;/P&gt;&lt;P&gt;   UPD_ICDTXT_ZTEST_TABL_CHNG       = 'U'&lt;/P&gt;&lt;P&gt;    N_ZEMPTABL                       =  GS_EMPTABL   "new values&lt;/P&gt;&lt;P&gt;    O_ZEMPTABL                       =  LS_EMPTABL  "old values&lt;/P&gt;&lt;P&gt;   UPD_ZEMPTABL                      = 'U'&lt;/P&gt;&lt;P&gt;   LV_OPT                           = ' '&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    ICDTXT_ZTEST_TABL_CHNG           =  T_CDTXT&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;WAIT UP TO 3 SECONDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me know why the table is not getting updated with new values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 09:40:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scdo-change-document/m-p/7191934#M1519945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-03T09:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: SCDO - Change Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scdo-change-document/m-p/7191935#M1519946</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 you changing the contents EMPNAME of existing record. Code written by you will only update the change records. You have to update the z table explicitly using UPDATE or MODIFY statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 09:47:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scdo-change-document/m-p/7191935#M1519946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-03T09:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: SCDO - Change Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scdo-change-document/m-p/7191936#M1519947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change documents will not be updated in your Z table, it will be updated in the CDHDR CDPOS tables, for which they are ment for, to store change documents..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 09:49:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scdo-change-document/m-p/7191936#M1519947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-03T09:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: SCDO - Change Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scdo-change-document/m-p/7191937#M1519948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should have TWO function modules to call, like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Update Database Table(s)
CALL FUNCTION 'ZTEST_TABL_CHNG_UPDATE' IN UPDATE TASK
     EXPORTING
          n_zemptabl                 = gs_emptabl  "new values
          o_zemptabl                 = ls_emptabl  "old values
          upd_zemptabl               = 'U'.
* Insert Change Document(s)
CALL FUNCTION 'ZTEST_TABL_CHNG_WRITE_DOCUMENT' IN UPDATE TASK
     EXPORTING
          objectid                   = 'ZTEST_TABL_CHNG'
          tcode                      = sy-tcode
          utime                      = sy-uzeit
          udate                      = sy-datum
          username                   = sy-uname
          planned_change_number      = ' '
          object_change_indicator    = 'U'
          planned_or_real_changes    = 'U'
          no_change_pointers         = 'U'
          upd_icdtxt_ztest_tabl_chng = 'U'
          n_zemptabl                 = gs_emptabl  "new values
          o_zemptabl                 = ls_emptabl  "old values
          upd_zemptabl               = 'U'
          lv_opt                     = ' '
     TABLES
          icdtxt_ztest_tabl_chng     = t_cdtxt.

COMMIT WORK.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 09:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scdo-change-document/m-p/7191937#M1519948</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-08-03T09:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: SCDO - Change Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scdo-change-document/m-p/7191938#M1519949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hye,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doubt does calling the FM update only CDHDR &amp;amp; CDPOS only and not the ZTABLE????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do i need to update ZTABLE separately with new values???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wht does the FM do then only update CDHDR &amp;amp; CDPOS????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 10:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scdo-change-document/m-p/7191938#M1519949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-03T10:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: SCDO - Change Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scdo-change-document/m-p/7191939#M1519950</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;Yes, the function module created from the change object only creates change documents.  You still need to update the table yourself, the change object will not take care of this.  After all, there may be more fields in the table that do not have change documents, so why would the change object take care of all of these fields that it knows nothing about?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 10:32:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scdo-change-document/m-p/7191939#M1519950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-03T10:32:21Z</dc:date>
    </item>
  </channel>
</rss>

