<?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 Reading deleted material from change pointer table... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221088#M136409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading deltas using change pointer tables. Now although material is deleted, it is still marked as 'U' in the cdhdr table.&lt;/P&gt;&lt;P&gt;I am reading the changes and then selecting my material data from those changes.&lt;/P&gt;&lt;P&gt;LVORM is the flag for deletion, but how do I write my SELECT statement so that the material data in my change pointer table is selected and then from this data I select materials marked for deletion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Apr 2006 18:24:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-17T18:24:36Z</dc:date>
    <item>
      <title>Reading deleted material from change pointer table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221088#M136409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading deltas using change pointer tables. Now although material is deleted, it is still marked as 'U' in the cdhdr table.&lt;/P&gt;&lt;P&gt;I am reading the changes and then selecting my material data from those changes.&lt;/P&gt;&lt;P&gt;LVORM is the flag for deletion, but how do I write my SELECT statement so that the material data in my change pointer table is selected and then from this data I select materials marked for deletion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2006 18:24:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221088#M136409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-17T18:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reading deleted material from change pointer table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221089#M136410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although you are deleting the material, from a change pointer perspective the value of the field LVORM is being changed from SPACE to 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, read the change the pointer table for LVORM field where the old value is initial and new value is 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From there you can read the material data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2006 18:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221089#M136410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-17T18:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reading deleted material from change pointer table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221090#M136411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravikumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think when you are talking about old value and new value, you are referring to cdpos. I am not reading changes at cdpos level, I am reading them at cdhdr level.&lt;/P&gt;&lt;P&gt;Am I right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2006 18:39:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221090#M136411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-17T18:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reading deleted material from change pointer table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221091#M136412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select *
       from CDHDR
       into table IT_DELETE
       where OBJECTCLAS = 'MATERIAL'
        and  CHANGE_IND = 'D'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D for deletion. &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;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2006 18:40:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221091#M136412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-17T18:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reading deleted material from change pointer table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221092#M136413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not referring to CDPOS how would you know if the the material is being DELETED or UNDELETED.&lt;/P&gt;&lt;P&gt;Else you will have to look at MATERIAL class level and NOT at LVORM level&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2006 18:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221092#M136413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-17T18:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reading deleted material from change pointer table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221093#M136414</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 am little bit confused about your reference to CDHDR &amp;amp; CDPOS tables as change pointer tables. The actual change pointer table is BDCP and CDHDR &amp;amp; CDPOS are called Change document tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please give more details on how you loading delta..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Are you using ALE Master data distribution to load your Delta changes? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. What is actual requirement? Are trying to send only the items (Materials) that are marked for deletion or send only that are not marked for deletion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your answer is YES &amp;amp; YES, you can simply use the filtering in ALE and let the RBDMIDOC program generate the IDocs for delta changes using BDCP. (you need to activate the change pointers for material master in this case).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraju Chidurupalli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2006 19:47:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221093#M136414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-17T19:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reading deleted material from change pointer table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221094#M136415</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 have the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select mara&lt;SUB&gt;matnr marc&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;          from mara&lt;/P&gt;&lt;P&gt;            join marc on marc&lt;SUB&gt;matnr = mara&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;               into table matl_del&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN i_updtd_materials&lt;/P&gt;&lt;P&gt;        where mara~matnr = i_updtd_materials-matnr&lt;/P&gt;&lt;P&gt;              and mara~lvorm = 'X'&lt;/P&gt;&lt;P&gt;              and marc~lvorm = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'i_updtd_materials' is my table that holds all changed materials, meaing deltas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my deleted table, I want the materials that have been deleted at client and plant level, meaning mara and marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it the right way to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2006 20:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221094#M136415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-17T20:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reading deleted material from change pointer table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221095#M136416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can anyone help out here please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2006 21:51:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221095#M136416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-17T21:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reading deleted material from change pointer table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221096#M136417</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;Wanted to add some changes to my issue. I want to select material that is deleted at Client level, Plant level or Storage location level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2006 22:18:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221096#M136417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-17T22:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reading deleted material from change pointer table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221097#M136418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess what you are doing is right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MARA will give the deletion indicator at client level and MARC at the plant level and I guess storage locations is also in MARC (I am not sure though).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2006 03:40:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221097#M136418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-18T03:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reading deleted material from change pointer table...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221098#M136419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand that your requirement is to display all the materials which are marked for deletion at any of the three levels i.e. Global, Plant &amp;amp; Storage location level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the case you can use the following code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: Begin of Matl_del occurs 0,&lt;/P&gt;&lt;P&gt;        matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;        werks like marc-werks,&lt;/P&gt;&lt;P&gt;        LGORT like mard-LGORT,&lt;/P&gt;&lt;P&gt;        Flag_mara(1),&lt;/P&gt;&lt;P&gt;        flag_marc(1),&lt;/P&gt;&lt;P&gt;        flag_mard(1),&lt;/P&gt;&lt;P&gt;      End of matl_del.&lt;/P&gt;&lt;P&gt;Loop at i_updtd_materials.&lt;/P&gt;&lt;P&gt;  select single matnr LVORM&lt;/P&gt;&lt;P&gt;    from mara&lt;/P&gt;&lt;P&gt;    into (Matl_del-matnr, matl_del-flag_mara)&lt;/P&gt;&lt;P&gt;   where matnr eq i_updtd_materials-matnr&lt;/P&gt;&lt;P&gt;     AND LVORM EQ 'X'.&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0.  &lt;/P&gt;&lt;P&gt;	    APPEND MATL_DEL.&lt;/P&gt;&lt;P&gt;	    CLEAR  matl_del-flag_mara.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   select werks LVORM&lt;/P&gt;&lt;P&gt;    from marc&lt;/P&gt;&lt;P&gt;    into (Matl_del-werks, matl_del-flag_marc)&lt;/P&gt;&lt;P&gt;   where matnr eq i_updtd_materials-matnr.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;	   IF matl_del-flag_marc EQ 'X'.&lt;/P&gt;&lt;P&gt;	     APPEND MATL_DEL.&lt;/P&gt;&lt;P&gt;	     CLEAR matl_del-flag_marc.&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	   select lgort LVORM&lt;/P&gt;&lt;P&gt;	    from mard&lt;/P&gt;&lt;P&gt;	    into (Matl_del-lgort, matl_del-flag_mard)&lt;/P&gt;&lt;P&gt;	   where matnr eq i_updtd_materials-matnr.&lt;/P&gt;&lt;P&gt;	     and werks eq matl_del-werks&lt;/P&gt;&lt;P&gt;	     and lvorm eq 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	     APPEND MATL_DEL.&lt;/P&gt;&lt;P&gt;	   endselect.&lt;/P&gt;&lt;P&gt;   endselect.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;at this time you will have your MATL_DEL filled with all the deleted levels of your materials in your delta table. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraju Chidurupalli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2006 12:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-deleted-material-from-change-pointer-table/m-p/1221098#M136419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-18T12:51:28Z</dc:date>
    </item>
  </channel>
</rss>

