<?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: problem in delete adjecent duplicates in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541313#M1427990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya it will work but it is not accepting i mean there is a syntax error and there was no example on that site where i saw this code &lt;/P&gt;&lt;P&gt;and when i tried it is giving me error .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Dec 2009 10:20:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-23T10:20:33Z</dc:date>
    <item>
      <title>problem in delete adjecent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541303#M1427980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;i have a problem in delete adjacent duplicate in an internal table .&lt;/P&gt;&lt;P&gt;when  i use it i want that the records which are getting doubled to be removed &lt;/P&gt;&lt;P&gt;but i also want that if the value in that field is empty for which i am comparing , to be ignored means i dont want the records &lt;/P&gt;&lt;P&gt;to be deleted in which the field value is empty for which i am comparing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;snippet of my code &lt;/P&gt;&lt;P&gt;delete ADJACENT DUPLICATES FROM xkomv COMPARING KSCHL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if theere is no value in KSCHL THAT RECORD NOT TO BE DELETED .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;waiting for your reply..&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 07:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541303#M1427980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-23T07:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: problem in delete adjecent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541304#M1427981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
If not xkomv-kschl is initial.
Delete ADJACENT DUPLICATES FROM xkomv COMPARING KSCHL.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 07:58:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541304#M1427981</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-12-23T07:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem in delete adjecent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541305#M1427982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pass the empty values to another (new) iternal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_1 where my_field = ''.
move-corresponding it_1 to it_2.
append it_2.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now  delete adjecent duplicates in it_1.&lt;/P&gt;&lt;P&gt;then append it_1 to it_2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 07:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541305#M1427982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-23T07:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem in delete adjecent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541306#M1427983</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;  DELETE ADJACENT DUPLICATES FROM it_t001_kkber COMPARING kkber.&lt;/P&gt;&lt;P&gt;  DELETE it_t001_kkber WHERE kkber = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 08:01:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541306#M1427983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-23T08:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: problem in delete adjecent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541307#M1427984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the reply i could have applied the loop but i am writing this code in a routine ..&lt;/P&gt;&lt;P&gt;so i m not sure how to use this here ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 08:02:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541307#M1427984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-23T08:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: problem in delete adjecent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541308#M1427985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you need to use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
itab_1[] = itab[].
delete itab_1 where kschl ne space.
delete itab where kschl eq space.
sort itab by kschl
delete adjacent duplicates from itab comparing kschl.
append lines of itab_1 into itab.
&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>Wed, 23 Dec 2009 08:03:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541308#M1427985</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-12-23T08:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: problem in delete adjecent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541309#M1427986</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;You need to take your records in another internal table. Now from this table delete the records for which KSCHL NE Space. ( Say ITAB1). And from the other table delete the records where KSCHL eq SPACE. ( Say ITAB2). Now on ITAB2 use Delete Adjacant Duplicates statement. Now appendrecords of one table to the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should meet your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 08:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541309#M1427986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-23T08:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: problem in delete adjecent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541310#M1427987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"delete ADJACENT DUPLICATES FROM xkomv COMPARING KSCHL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before using the above statement do the following,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u201C decalare a temporary table for u2018xkomvu2019 say u2018t_xkomvu2019, and copy the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh t_xkomv[].&lt;/P&gt;&lt;P&gt;t_xkomv[] = xkomv[].&lt;/P&gt;&lt;P&gt;Delete t_xkomv where KSCHL &amp;lt;&amp;gt; u2018  u2018.&lt;/P&gt;&lt;P&gt;Delete xkomv where KSCHL =  u2018  u2018.&lt;/P&gt;&lt;P&gt;u201C Sort xkomv and then use delete adjacent duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And after this append data from t_xkomv to xkomv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhijit G. Borkar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 08:07:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541310#M1427987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-23T08:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: problem in delete adjecent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541311#M1427988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any addition in delete duplicate statement where we use where addition as well with that .. so that we can specify &lt;/P&gt;&lt;P&gt;if KSCHL IS empty ignore it ..&lt;/P&gt;&lt;P&gt;I read it somewhere &lt;/P&gt;&lt;P&gt;delete adjacent duplicate from itab comparing field1 &amp;lt;value1&amp;gt;.&lt;/P&gt;&lt;P&gt;this was the statement and it was written there if the value of field is empty that is ignored and it will consider only where the value exist.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 10:02:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541311#M1427988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-23T10:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: problem in delete adjecent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541312#M1427989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nilkhilarya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I dont think the syntax for delete adjacent duplicates contains comparing values also along with fields.&lt;/P&gt;&lt;P&gt;But the code provided by a®s works very well as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 10:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541312#M1427989</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2009-12-23T10:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: problem in delete adjecent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541313#M1427990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya it will work but it is not accepting i mean there is a syntax error and there was no example on that site where i saw this code &lt;/P&gt;&lt;P&gt;and when i tried it is giving me error .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 10:20:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541313#M1427990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-23T10:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem in delete adjecent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541314#M1427991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
append lines of xtkomv to tkomv.
delete tkomv[] where KSCHL ne space.
delete ADJACENT DUPLICATES FROM xkomv COMPARING KSCHL.
append lines of  tkomv to xkomv.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 11:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541314#M1427991</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-12-23T11:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem in delete adjecent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541315#M1427992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nilkhilarya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What error you are getting when you tried that code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2009 05:11:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541315#M1427992</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2009-12-24T05:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: problem in delete adjecent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541316#M1427993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nilkhilarya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please sort internal table before delete adjacent duplicates syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2009 05:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-adjecent-duplicates/m-p/6541316#M1427993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-24T05:18:17Z</dc:date>
    </item>
  </channel>
</rss>

