<?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 Changed fields from CDHDR &amp; CDPOS.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changed-fields-from-cdhdr-cdpos/m-p/4014582#M959234</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 need a logic for the Asset changes in the Final output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to capture the last change from CDHDR &amp;amp; CDPOS tables, but my requirement is i need to capture all the changes to the particular asset and to display as a separate row with the changed date and value(if 3 changes then 3 rows to be appended to the internal table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The previous changed value will be in CDPOS-VALUE_OLD,  But i need to display below or above the new changed value with the changed date. so can any one send me a sample program for this, Its Urgent....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_ane ASSIGNING &amp;lt;fs_ane1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE &amp;lt;fs_ane1&amp;gt;-bukrs &amp;lt;fs_ane1&amp;gt;-anln1 &amp;lt;fs_ane1&amp;gt;-anln2 INTO v_objectid1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF &amp;lt;fs_ane1&amp;gt;-budat IN s_budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR : wa_bna, wa_cdpos, wa_cdhdr, wa_objectid.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING &amp;lt;fs_ane1&amp;gt; TO wa_bna.               "#EC ENHOK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        READ TABLE it_objectid INTO wa_objectid WITH KEY objectid = v_objectid1."#EC *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        READ TABLE it_cdhdr INTO wa_cdhdr WITH KEY objectid = wa_objectid-objectid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        READ TABLE it_cdpos INTO wa_cdpos WITH KEY changenr = wa_cdhdr-changenr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF wa_cdpos IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;            wa_bna-txjcd = wa_cdpos-value_new.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;          wa_bna-budat = wa_cdhdr-udate.&lt;/P&gt;&lt;P&gt;          wa_bna-ttext = text-036.  "Jurisdiction Code Changed&lt;/P&gt;&lt;P&gt;          wa_bna-anbtr = space.&lt;/P&gt;&lt;P&gt;          wa_bna-pbukr = space.&lt;/P&gt;&lt;P&gt;          wa_bna-ndjar = space.&lt;/P&gt;&lt;P&gt;          wa_bna-ndper = space.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      APPEND wa_bna TO it_bna.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ramana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2008 05:59:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-12T05:59:28Z</dc:date>
    <item>
      <title>Changed fields from CDHDR &amp; CDPOS..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changed-fields-from-cdhdr-cdpos/m-p/4014582#M959234</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 need a logic for the Asset changes in the Final output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to capture the last change from CDHDR &amp;amp; CDPOS tables, but my requirement is i need to capture all the changes to the particular asset and to display as a separate row with the changed date and value(if 3 changes then 3 rows to be appended to the internal table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The previous changed value will be in CDPOS-VALUE_OLD,  But i need to display below or above the new changed value with the changed date. so can any one send me a sample program for this, Its Urgent....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_ane ASSIGNING &amp;lt;fs_ane1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE &amp;lt;fs_ane1&amp;gt;-bukrs &amp;lt;fs_ane1&amp;gt;-anln1 &amp;lt;fs_ane1&amp;gt;-anln2 INTO v_objectid1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF &amp;lt;fs_ane1&amp;gt;-budat IN s_budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR : wa_bna, wa_cdpos, wa_cdhdr, wa_objectid.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING &amp;lt;fs_ane1&amp;gt; TO wa_bna.               "#EC ENHOK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        READ TABLE it_objectid INTO wa_objectid WITH KEY objectid = v_objectid1."#EC *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        READ TABLE it_cdhdr INTO wa_cdhdr WITH KEY objectid = wa_objectid-objectid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        READ TABLE it_cdpos INTO wa_cdpos WITH KEY changenr = wa_cdhdr-changenr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF wa_cdpos IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;            wa_bna-txjcd = wa_cdpos-value_new.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;          wa_bna-budat = wa_cdhdr-udate.&lt;/P&gt;&lt;P&gt;          wa_bna-ttext = text-036.  "Jurisdiction Code Changed&lt;/P&gt;&lt;P&gt;          wa_bna-anbtr = space.&lt;/P&gt;&lt;P&gt;          wa_bna-pbukr = space.&lt;/P&gt;&lt;P&gt;          wa_bna-ndjar = space.&lt;/P&gt;&lt;P&gt;          wa_bna-ndper = space.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      APPEND wa_bna TO it_bna.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ramana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 05:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changed-fields-from-cdhdr-cdpos/m-p/4014582#M959234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T05:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Changed fields from CDHDR &amp; CDPOS..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changed-fields-from-cdhdr-cdpos/m-p/4014583#M959235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;append using index.. or sy-index+1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 06:10:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changed-fields-from-cdhdr-cdpos/m-p/4014583#M959235</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-06-12T06:10:50Z</dc:date>
    </item>
  </channel>
</rss>

