<?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 Change pointer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-pointer/m-p/4870487#M1138668</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;I set the change document flag on in a data element. What is the next step to log the changes in CDHDR and CDPOS. Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chuong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Dec 2008 19:02:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-01T19:02:21Z</dc:date>
    <item>
      <title>Change pointer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-pointer/m-p/4870487#M1138668</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;I set the change document flag on in a data element. What is the next step to log the changes in CDHDR and CDPOS. Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chuong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 19:02:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-pointer/m-p/4870487#M1138668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-01T19:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change pointer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-pointer/m-p/4870488#M1138669</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;Go through the following Steps for Change Pointers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change Pointers&lt;/P&gt;&lt;P&gt;I know how to change the description of a material using ALE Change Pointers.&lt;/P&gt;&lt;P&gt;I will give the following few steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Tcode BD61---&amp;gt; check the change pointers activated check box&lt;/P&gt;&lt;P&gt;save and goback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Tcode BD50---&amp;gt; check the MATMAS check box save and comeback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Tcode BD51---&amp;gt; goto IDOC_INPUT_MATMAS01 select the checkbox save and comeback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Tcode BD52---&amp;gt; give message type : matmas press ok button.&lt;/P&gt;&lt;P&gt;select all what ever you want and delete remaining fields.&lt;/P&gt;&lt;P&gt;save &amp;amp; come back.&lt;/P&gt;&lt;P&gt;5) 5) go to Tcode MM02 select one material and try to change the description and save it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will effects the target systems material desciption will also changes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute&lt;/P&gt;&lt;P&gt;give Message type : MATMAS and Executte&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 19:10:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-pointer/m-p/4870488#M1138669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-01T19:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Change pointer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-pointer/m-p/4870489#M1138670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simply enable a flag in the domain will not create change documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are trying to create a change document for a custom table ? is any program is updating this table  then after save call these function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS : There is no need to mark domin change document check to be checked &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  call function 'CHANGEDOCUMENT_OPEN'
    exporting
      objectclass             = 'Y01           '
      objectid                = objectid
      planned_change_number   = planned_change_number
      planned_or_real_changes = planned_or_real_changes
    exceptions
      sequence_invalid        = 1
      others                  = 2.

  case sy-subrc.
    when 0.                                   "ok.
    when 1. message a600 with 'SEQUENCE INVALID'.
    when 2. message a600 with 'OPEN ERROR'.
  endcase.

   call function 'CHANGEDOCUMENT_SINGLE_CASE'
     exporting
       tablename              = 'Y01                          '
       workarea_old           = o_y01
       workarea_new           = n_y01
        change_indicator       = upd_y01
        docu_delete            = ' '
     exceptions
       nametab_error          = 1
       open_missing           = 2
       position_insert_failed = 3
       others                 = 4.

    case sy-subrc.
      when 0.                                "ok.
      when 1. message a600 with 'NAMETAB-ERROR'.
      when 2. message a600 with 'OPEN MISSING'.
      when 3. message a600 with 'INSERT ERROR'.
      when 4. message a600 with 'SINGLE ERROR'.
    endcase.

  call function 'CHANGEDOCUMENT_CLOSE'
    exporting
      objectclass             = 'Y01           '
      objectid                = objectid
      date_of_change          = udate
      time_of_change          = utime
      tcode                   = tcode
      username                = username
      object_change_indicator = object_change_indicator
      no_change_pointers      = no_change_pointers
    exceptions
      header_insert_failed    = 1
      object_invalid          = 2
      open_missing            = 3
      no_position_inserted    = 4
      others                  = 5.

  case sy-subrc.
    when 0.                                   "ok.
    when 1. message a600 with 'INSERT HEADER FAILED'.
    when 2. message a600 with 'OBJECT INVALID'.
    when 3. message a600 with 'OPEN MISSING'.
    when 5. message a600 with 'CLOSE ERROR'.
  endcase.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 19:14:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-pointer/m-p/4870489#M1138670</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-12-01T19:14:38Z</dc:date>
    </item>
  </channel>
</rss>

