<?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 delete adjacent duplicates in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-adjacent-duplicates/m-p/2901248#M682276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;please correct the following code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   1.if not t_knvv is initial.&lt;/P&gt;&lt;P&gt;    2.sort t_knvv by kunnr eikto.&lt;/P&gt;&lt;P&gt;    3.delete adjacent duplicates from t_knvv comparing kunnr eikto.&lt;/P&gt;&lt;P&gt;    4.select bukrs eikto&lt;/P&gt;&lt;P&gt;    5.from lfb1&lt;/P&gt;&lt;P&gt;    6.into table t_lfb1&lt;/P&gt;&lt;P&gt;    7.for all entries in t_knvv&lt;/P&gt;&lt;P&gt;   8. where eikto = t_knvv-eikto.&lt;/P&gt;&lt;P&gt;  9.endif.&lt;/P&gt;&lt;P&gt;t_knvv has 2 flds kunnr,eikto  and has one row of data( i can see this when i debug in line 1). now when i press F5 and see the value of  t_knvv-eikto in lline 8 , it is showing null and i dont get any selection into table t_lfb1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont understand what is wrong..please correct this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Challa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2007 21:39:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-16T21:39:39Z</dc:date>
    <item>
      <title>delete adjacent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-adjacent-duplicates/m-p/2901248#M682276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;please correct the following code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   1.if not t_knvv is initial.&lt;/P&gt;&lt;P&gt;    2.sort t_knvv by kunnr eikto.&lt;/P&gt;&lt;P&gt;    3.delete adjacent duplicates from t_knvv comparing kunnr eikto.&lt;/P&gt;&lt;P&gt;    4.select bukrs eikto&lt;/P&gt;&lt;P&gt;    5.from lfb1&lt;/P&gt;&lt;P&gt;    6.into table t_lfb1&lt;/P&gt;&lt;P&gt;    7.for all entries in t_knvv&lt;/P&gt;&lt;P&gt;   8. where eikto = t_knvv-eikto.&lt;/P&gt;&lt;P&gt;  9.endif.&lt;/P&gt;&lt;P&gt;t_knvv has 2 flds kunnr,eikto  and has one row of data( i can see this when i debug in line 1). now when i press F5 and see the value of  t_knvv-eikto in lline 8 , it is showing null and i dont get any selection into table t_lfb1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont understand what is wrong..please correct this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Challa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 21:39:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-adjacent-duplicates/m-p/2901248#M682276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T21:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: delete adjacent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-adjacent-duplicates/m-p/2901249#M682277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the updated code. &lt;/P&gt;&lt;P&gt;2.sort t_knvv by kunnr eikto.&lt;/P&gt;&lt;P&gt;3.delete adjacent duplicates from t_knvv comparing kunnr eikto.&lt;/P&gt;&lt;P&gt;1.if not t_knvv[] is initial.&lt;/P&gt;&lt;P&gt;4.select bukrs eikto&lt;/P&gt;&lt;P&gt;5.from lfb1&lt;/P&gt;&lt;P&gt;6.into table t_lfb1&lt;/P&gt;&lt;P&gt;7.for all entries in t_knvv&lt;/P&gt;&lt;P&gt;8. where eikto = t_knvv-eikto.&lt;/P&gt;&lt;P&gt;9.endif.&lt;/P&gt;&lt;P&gt;t_knvv has 2 flds kunnr,eikto and has one row of data( i can see this when i debug in line 1). now when i press F5 and see the value of t_knvv-eikto in lline 8 , it is showing null and i dont get any selection into table t_lfb1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check above code. Also as you are using FOR ALL ENTRIES, also populate LIFNR into table T_LFB! in order to get all unique entries.&lt;/P&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;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 21:42:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-adjacent-duplicates/m-p/2901249#M682277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T21:42:41Z</dc:date>
    </item>
  </channel>
</rss>

