<?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: Like operation in loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/like-operation-in-loop/m-p/10852205#M1885799</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;Instead u can try using &lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;DELETE lt_ekko WHERE verkf NE &lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt; iv_customername.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinodkumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jan 2015 08:21:00 GMT</pubDate>
    <dc:creator>vinodkumar_thangavel</dc:creator>
    <dc:date>2015-01-23T08:21:00Z</dc:date>
    <item>
      <title>Like operation in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/like-operation-in-loop/m-p/10852203#M1885797</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;&lt;/P&gt;&lt;P&gt;I am passing to date and from date as input and fetching records from ekko into lt_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now ,i had field 'customername' in output screen(importing parameter of a&amp;nbsp; function module).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LT_ekko has field verkf (customername) values as SDN SAP - 10 records.and SAP - 10 records and SDN - 10 records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My query is if the user gives input as SAP.i need to display SDN SAP records(along with SAP records) and delete SDN records from lt_ekko as it is my final table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am giving ranges &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF iv_customername IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_r_custname-sign = 'I'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_r_custname-option = 'NP'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_r_custname-low = iv_customername.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND ls_r_custname TO lt_r_custname.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE lt_ekko WHERE verkf IN lt_r_custname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this delete statement is not working ,not deleting entries of SDN records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 08:05:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/like-operation-in-loop/m-p/10852203#M1885797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-23T08:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Like operation in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/like-operation-in-loop/m-p/10852204#M1885798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mohan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with CP or NP there must be atleast one masking character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you insert this before above code and try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate iv_customername&lt;STRONG&gt; '*'&lt;/STRONG&gt; into iv_customername.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 08:16:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/like-operation-in-loop/m-p/10852204#M1885798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-23T08:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Like operation in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/like-operation-in-loop/m-p/10852205#M1885799</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;Instead u can try using &lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;DELETE lt_ekko WHERE verkf NE &lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt; iv_customername.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinodkumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 08:21:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/like-operation-in-loop/m-p/10852205#M1885799</guid>
      <dc:creator>vinodkumar_thangavel</dc:creator>
      <dc:date>2015-01-23T08:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Like operation in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/like-operation-in-loop/m-p/10852206#M1885800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vinodh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i do &lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;verkf NE &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; color: #333333; background: #f8f8f8;"&gt;iv_customername, SDN SAP&amp;nbsp; records also gets deleted.i need SAP &amp;amp; SDN SAP records&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 08:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/like-operation-in-loop/m-p/10852206#M1885800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-23T08:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Like operation in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/like-operation-in-loop/m-p/10852207#M1885801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adbul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried ,but not worked,sy-subrc = 4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 08:40:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/like-operation-in-loop/m-p/10852207#M1885801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-23T08:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Like operation in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/like-operation-in-loop/m-p/10852208#M1885802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make following changes to your code snippet - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;IF iv_customername IS NOT INITIAL.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_r_custname-sign = 'I'.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_r_custname-option = 'EQ'.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_r_custname-low = iv_customername.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND ls_r_custname TO lt_r_custname.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;DELETE lt_ekko WHERE verkf IN lt_r_custname.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Let me know incase of any help.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 08:51:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/like-operation-in-loop/m-p/10852208#M1885802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-23T08:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Like operation in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/like-operation-in-loop/m-p/10852209#M1885803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use a range (IN, select-option) you could concatenate "*" at start and end of string, if you are using LIKE statement, use "%".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for internal table criteria you could also use operator NS Contains No String, DELETE lt_ekko WHERE verkf NS string. (&lt;SPAN class="h1"&gt;&lt;A href="http://help.sap.com/abapdocu_731/en/abenlogexp_strings.htm"&gt;log_exp - Comparison Operators for Character-Like Data Types&lt;/A&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 09:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/like-operation-in-loop/m-p/10852209#M1885803</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2015-01-23T09:01:11Z</dc:date>
    </item>
  </channel>
</rss>

