<?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: Change documents for STRING texts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-documents-for-string-texts/m-p/6692521#M1451344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sometimes the solution comes when you already gave up.  Furthermore it was easy, i just spend all the time because i forgot one import parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For those you are interested here the test program. Its only a very draft version converted from a multiple case and should just demonstrate how text strings got change documented. The fact that i write both different records with the name ID   to the change documents of course does not make sense in a production environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if its bad formatted, by the programming code markup I inserted seems not to work (at least in the preview).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZPP_ZTEST_CDO
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

report  ZPP_ZTEST_CDO.

include FZTEST_CDOCDT.

data: LT_ZTEST_CDO type standard table of ZTEST_CDO.
data: LS_ZTEST_CDO type ZTEST_CDO.
data: LS_DATA      type line of YZTEST_CDOS.
field-symbols: &amp;lt;LINE&amp;gt; type YZTEST_CDO.
data: LS_LINETEXT   type CDTXT.


LS_ZTEST_CDO-FORNAME = 'FORM'.
LS_ZTEST_CDO-DEF = 'Z'.
LS_ZTEST_CDO-ORGLEVEL = 'ZZZyy'.
LS_ZTEST_CDO-DESCR = 'ZZZZZZZZ'.
LS_ZTEST_CDO-TEXT = 'Text test Form type 5'.
append LS_ZTEST_CDO to LT_ZTEST_CDO.

LS_ZTEST_CDO-FORNAME = 'FORM1'.
LS_ZTEST_CDO-DEF = 'l'.
LS_ZTEST_CDO-ORGLEVEL = 'FINAN34'.
LS_ZTEST_CDO-DESCR = 'HALLO Hen   niSskdjfatz2'.
LS_ZTEST_CDO-TEXT = 'Text test Form1 type 5'.
append LS_ZTEST_CDO to LT_ZTEST_CDO.

loop at LT_ZTEST_CDO into LS_ZTEST_CDO.

  concatenate SY-MANDT LS_ZTEST_CDO-FORNAME into LS_LINETEXT-TEILOBJID.
  LS_LINETEXT-TEXTART = 'FORM'.
  LS_LINETEXT-TEXTSPR = 'EN'.
  LS_LINETEXT-UPDKZ = 'U'.
  append LS_LINETEXT to ICDTXT_ZTEST_CDO.

  move-corresponding LS_ZTEST_CDO to LS_DATA.
  append LS_DATA to XZTEST_CDO.
endloop.

loop at XZTEST_CDO assigning &amp;lt;LINE&amp;gt;.
  &amp;lt;LINE&amp;gt;-MANDT = SY-MANDT.
  &amp;lt;LINE&amp;gt;-KZ = 'U'.
endloop.

select * from ZTEST_CDO into corresponding fields of table YZTEST_CDO.

modify ZTEST_CDO from table LT_ZTEST_CDO.


call function 'ZTEST_CDO_WRITE_DOCUMENT'
  exporting
    OBJECTID                      = 'FORM'
    TCODE                         = ''
    UTIME                         = SY-UZEIT
    UDATE                         = SY-CDATE
    USERNAME                      = SY-UNAME
*   PLANNED_CHANGE_NUMBER         = ' '
*   OBJECT_CHANGE_INDICATOR       = 'U'
*   PLANNED_OR_REAL_CHANGES       = ' '
*   NO_CHANGE_POINTERS            = ' '
    UPD_ICDTXT_ZTEST_CDO          = 'U'
    UPD_ZTEST_CDO                 = 'U'
    XZTEST_CDO                    = XZTEST_CDO
    YZTEST_CDO                    = YZTEST_CDO
  tables
    ICDTXT_ZTEST_CDO              = ICDTXT_ZTEST_CDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Mar 2010 19:53:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-05T19:53:22Z</dc:date>
    <item>
      <title>Change documents for STRING texts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-documents-for-string-texts/m-p/6692520#M1451343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create change documents for string texts. I have no problem to implement change docs in general but i fail since days on the strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOW do i have to fill the CDTXT table in my module "*-WRITE_DOCUMENT"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whatever I do... the system does not write any change docs to the string table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have an example for what ti enter in the table key and the text type (column 2) that would be great"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 19:01:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-documents-for-string-texts/m-p/6692520#M1451343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T19:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change documents for STRING texts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-documents-for-string-texts/m-p/6692521#M1451344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sometimes the solution comes when you already gave up.  Furthermore it was easy, i just spend all the time because i forgot one import parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For those you are interested here the test program. Its only a very draft version converted from a multiple case and should just demonstrate how text strings got change documented. The fact that i write both different records with the name ID   to the change documents of course does not make sense in a production environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if its bad formatted, by the programming code markup I inserted seems not to work (at least in the preview).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZPP_ZTEST_CDO
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

report  ZPP_ZTEST_CDO.

include FZTEST_CDOCDT.

data: LT_ZTEST_CDO type standard table of ZTEST_CDO.
data: LS_ZTEST_CDO type ZTEST_CDO.
data: LS_DATA      type line of YZTEST_CDOS.
field-symbols: &amp;lt;LINE&amp;gt; type YZTEST_CDO.
data: LS_LINETEXT   type CDTXT.


LS_ZTEST_CDO-FORNAME = 'FORM'.
LS_ZTEST_CDO-DEF = 'Z'.
LS_ZTEST_CDO-ORGLEVEL = 'ZZZyy'.
LS_ZTEST_CDO-DESCR = 'ZZZZZZZZ'.
LS_ZTEST_CDO-TEXT = 'Text test Form type 5'.
append LS_ZTEST_CDO to LT_ZTEST_CDO.

LS_ZTEST_CDO-FORNAME = 'FORM1'.
LS_ZTEST_CDO-DEF = 'l'.
LS_ZTEST_CDO-ORGLEVEL = 'FINAN34'.
LS_ZTEST_CDO-DESCR = 'HALLO Hen   niSskdjfatz2'.
LS_ZTEST_CDO-TEXT = 'Text test Form1 type 5'.
append LS_ZTEST_CDO to LT_ZTEST_CDO.

loop at LT_ZTEST_CDO into LS_ZTEST_CDO.

  concatenate SY-MANDT LS_ZTEST_CDO-FORNAME into LS_LINETEXT-TEILOBJID.
  LS_LINETEXT-TEXTART = 'FORM'.
  LS_LINETEXT-TEXTSPR = 'EN'.
  LS_LINETEXT-UPDKZ = 'U'.
  append LS_LINETEXT to ICDTXT_ZTEST_CDO.

  move-corresponding LS_ZTEST_CDO to LS_DATA.
  append LS_DATA to XZTEST_CDO.
endloop.

loop at XZTEST_CDO assigning &amp;lt;LINE&amp;gt;.
  &amp;lt;LINE&amp;gt;-MANDT = SY-MANDT.
  &amp;lt;LINE&amp;gt;-KZ = 'U'.
endloop.

select * from ZTEST_CDO into corresponding fields of table YZTEST_CDO.

modify ZTEST_CDO from table LT_ZTEST_CDO.


call function 'ZTEST_CDO_WRITE_DOCUMENT'
  exporting
    OBJECTID                      = 'FORM'
    TCODE                         = ''
    UTIME                         = SY-UZEIT
    UDATE                         = SY-CDATE
    USERNAME                      = SY-UNAME
*   PLANNED_CHANGE_NUMBER         = ' '
*   OBJECT_CHANGE_INDICATOR       = 'U'
*   PLANNED_OR_REAL_CHANGES       = ' '
*   NO_CHANGE_POINTERS            = ' '
    UPD_ICDTXT_ZTEST_CDO          = 'U'
    UPD_ZTEST_CDO                 = 'U'
    XZTEST_CDO                    = XZTEST_CDO
    YZTEST_CDO                    = YZTEST_CDO
  tables
    ICDTXT_ZTEST_CDO              = ICDTXT_ZTEST_CDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 19:53:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-documents-for-string-texts/m-p/6692521#M1451344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T19:53:22Z</dc:date>
    </item>
  </channel>
</rss>

