<?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: deleting internal table records with pattern in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-internal-table-records-with-pattern/m-p/5895782#M1327118</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 can try this way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;vbeln-sign = 'I'.
vbeln-option = 'CP'.        " You sould use Contains Pattern when you use * 
vbeln-low = '40*'
append vbeln .
 
delete tabe itab where vbeln in vbeln.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2009 06:28:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-24T06:28:49Z</dc:date>
    <item>
      <title>deleting internal table records with pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-internal-table-records-with-pattern/m-p/5895778#M1327114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to delete the internal table records where vbeln like '40%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all the vbeln atarting with the number 40 i need to delete. if i use the like in where clause i am getting error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest some solution on this&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;sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 06:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-internal-table-records-with-pattern/m-p/5895778#M1327114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T06:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: deleting internal table records with pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-internal-table-records-with-pattern/m-p/5895779#M1327115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;build a range table and use&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: ra_vbeln type standard table of selopt,
         wa_vbeln type selopt.

wa_vbeln-sign = 'I'.
wa_vbeln-option = 'EQ'.
wa_vbeln-low = '40*'
append wa_vbeln to ra_vbeln.

delete tabe itab where vbeln in ra_vbeln.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 06:22:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-internal-table-records-with-pattern/m-p/5895779#M1327115</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-07-24T06:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: deleting internal table records with pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-internal-table-records-with-pattern/m-p/5895780#M1327116</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DELETE itab WHERE vbeln = '40%'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 06:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-internal-table-records-with-pattern/m-p/5895780#M1327116</guid>
      <dc:creator>sridhar_meesala</dc:creator>
      <dc:date>2009-07-24T06:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: deleting internal table records with pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-internal-table-records-with-pattern/m-p/5895781#M1327117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt; you can use this trick ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data: var1 type char2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at itab .&lt;/P&gt;&lt;P&gt;    var1 =   itab-vbeln+0(2) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if var1 = '40' .&lt;/P&gt;&lt;P&gt;    delete itab .&lt;/P&gt;&lt;P&gt;   enidf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards..&lt;/P&gt;&lt;P&gt;   Priyank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 06:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-internal-table-records-with-pattern/m-p/5895781#M1327117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T06:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: deleting internal table records with pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-internal-table-records-with-pattern/m-p/5895782#M1327118</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 can try this way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;vbeln-sign = 'I'.
vbeln-option = 'CP'.        " You sould use Contains Pattern when you use * 
vbeln-low = '40*'
append vbeln .
 
delete tabe itab where vbeln in vbeln.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 06:28:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-internal-table-records-with-pattern/m-p/5895782#M1327118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T06:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: deleting internal table records with pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-internal-table-records-with-pattern/m-p/5895783#M1327119</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;use, DELETE itab where &lt;STRONG&gt;vbeln+0(2) = '40'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it works!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 06:29:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-internal-table-records-with-pattern/m-p/5895783#M1327119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T06:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: deleting internal table records with pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-internal-table-records-with-pattern/m-p/5895784#M1327120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tables : vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab TYPE standard TABLE OF vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT itab BY vbeln DESCENDING. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE itab  where vbeln = '40*'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 06:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-internal-table-records-with-pattern/m-p/5895784#M1327120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T06:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: deleting internal table records with pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-internal-table-records-with-pattern/m-p/5895785#M1327121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi .&lt;/P&gt;&lt;P&gt;I hope this code solved your problem .&lt;/P&gt;&lt;P&gt;Loop at itab where vbeln(2) = '40' . &lt;/P&gt;&lt;P&gt;delete itab .&lt;/P&gt;&lt;P&gt;continue .&lt;/P&gt;&lt;P&gt;endloop .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 06:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-internal-table-records-with-pattern/m-p/5895785#M1327121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T06:37:45Z</dc:date>
    </item>
  </channel>
</rss>

