<?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: delete a line if string not there in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-line-if-string-not-there/m-p/3909312#M937430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SEARCH STRING2 FOR STRING1.
IF SY-SUBRC = 4.
** not found, delete
ENDIF.  
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2008 20:15:42 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2008-05-29T20:15:42Z</dc:date>
    <item>
      <title>delete a line if string not there</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-line-if-string-not-there/m-p/3909311#M937429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is not working. I dont know why ?&lt;/P&gt;&lt;P&gt;All what I need to do is deleting lines from itab&lt;/P&gt;&lt;P&gt;if  string1 is not appearing in string2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. delete wa_zehs_prokat_tab because &lt;/P&gt;&lt;P&gt;string2 doesn't have R99 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;string1 = 'R99'
string2 = 'R39/26 R39/27 R39/28 R60 R62'.

LOOP AT it_ZEHS_PROKAT_RES INTO wa_zehs_prokat_tab.
loop at s_rstze.
if  s_rstze-low CA  wa_zehs_prokat_tab-RSATZ.
* do nothing
else.
DELETE TABLE it_ZEHS_PROKAT_RES FROM wa_zehs_prokat_tab.
endif.
endloop.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 20:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-line-if-string-not-there/m-p/3909311#M937429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T20:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: delete a line if string not there</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-line-if-string-not-there/m-p/3909312#M937430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SEARCH STRING2 FOR STRING1.
IF SY-SUBRC = 4.
** not found, delete
ENDIF.  
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 20:15:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-line-if-string-not-there/m-p/3909312#M937430</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-05-29T20:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: delete a line if string not there</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-line-if-string-not-there/m-p/3909313#M937431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please let me know how you solved the issue ? Please share with me ....!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 11:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-a-line-if-string-not-there/m-p/3909313#M937431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T11:08:26Z</dc:date>
    </item>
  </channel>
</rss>

