<?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 Itab where ......... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-itab-where/m-p/4017953#M960045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
I want to delete an itab and the condition is the filed name TEXT first 2 char is ne select option and also not to delete if the first 2 char is 'GE'.so how to write the code in this condition.Pls help to solve this issue&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab into wa_itab.
if text+0(2) eq 'GE' and text+0(2) in so_options.
skip.
else.
delete itab index sy-tabix.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2008 05:50:49 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2008-06-19T05:50:49Z</dc:date>
    <item>
      <title>Delete Itab where .........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-itab-where/m-p/4017950#M960042</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;  I want to delete an itab and the condition is the filed name  TEXT first 2 char is ne select option and also not to delete if the first 2 char is 'GE'.so how to write the code in this condition.Pls help to solve this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deesanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 05:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-itab-where/m-p/4017950#M960042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T05:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Itab where .........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-itab-where/m-p/4017951#M960043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deesanth,&lt;/P&gt;&lt;P&gt;Here is the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Loop at itab.
 IF itab-text+0(2) NE  S_OPTION-LOW 
     or itab-text+0(2) GE  S_OPTION-LOW.

  Delete itab index sy-tabix.

 ENDIF.
Endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;*******************&lt;STRONG&gt;Reward Point if helpful&lt;/STRONG&gt;****************&amp;amp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 05:42:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-itab-where/m-p/4017951#M960043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T05:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Itab where .........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-itab-where/m-p/4017952#M960044</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;P&gt;data : w_2(2) type c,&lt;/P&gt;&lt;P&gt;        index type sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;index = sy-tabix.&lt;/P&gt;&lt;P&gt;   w_2 = itab-text + 0(2).&lt;/P&gt;&lt;P&gt;     If w_2 ne s_option-low and w_2 gt s_option-high.&lt;/P&gt;&lt;P&gt;       delete itab index index.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;   clear :  w_2, index.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward pts if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 05:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-itab-where/m-p/4017952#M960044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T05:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Itab where .........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-itab-where/m-p/4017953#M960045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
I want to delete an itab and the condition is the filed name TEXT first 2 char is ne select option and also not to delete if the first 2 char is 'GE'.so how to write the code in this condition.Pls help to solve this issue&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab into wa_itab.
if text+0(2) eq 'GE' and text+0(2) in so_options.
skip.
else.
delete itab index sy-tabix.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 05:50:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-itab-where/m-p/4017953#M960045</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-06-19T05:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Itab where .........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-itab-where/m-p/4017954#M960046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPORT  Z_DELETE.&lt;/P&gt;&lt;P&gt;tables : vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_vbap,&lt;/P&gt;&lt;P&gt;        vbeln type vbeln_va,&lt;/P&gt;&lt;P&gt;        posnr type posnr_va,&lt;/P&gt;&lt;P&gt;        matnr type matnr,&lt;/P&gt;&lt;P&gt;        end of ty_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_vbap type standard table of ty_vbap initial size 0,&lt;/P&gt;&lt;P&gt;       wa_vbap type ty_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen : begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;select-options : s_vbeln for vbap-vbeln.&lt;/P&gt;&lt;P&gt;selection-screen : end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;select vbeln&lt;/P&gt;&lt;P&gt;       posnr&lt;/P&gt;&lt;P&gt;       matnr&lt;/P&gt;&lt;P&gt;       from vbap&lt;/P&gt;&lt;P&gt;       into table it_vbap&lt;/P&gt;&lt;P&gt;       where vbeln in s_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if sy-subrc ne 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do nothing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete it_vbap where ( vbeln&lt;EM&gt;0(2) ne s_vbeln ) and ( vbeln&lt;/EM&gt;0(2) ge s_vbeln ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_vbap into wa_vbap.&lt;/P&gt;&lt;P&gt;write : / wa_vbap-vbeln,&lt;/P&gt;&lt;P&gt;          wa_vbap-posnr,&lt;/P&gt;&lt;P&gt;          wa_vbap-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 06:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-itab-where/m-p/4017954#M960046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T06:08:25Z</dc:date>
    </item>
  </channel>
</rss>

