<?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: INTERNAL TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648569#M878747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Madan-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-option is an internal table but in your read statement you are comparing directly with select-option this was it will not work.Ways to achieve your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Instead of select-option use parameter or&lt;/P&gt;&lt;P&gt;2) Loop the internal table with BT condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;~Srini....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2008 12:43:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-16T12:43:19Z</dc:date>
    <item>
      <title>INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648561#M878739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;     I had a select option s_vbeln and an internal table.I should delete records based on this select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have done in following way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE T_CDHDR INTO W_CDHDR WITH KEY OBJECTID = S_VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;        DELETE T_CDHDR INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is not working....&lt;/P&gt;&lt;P&gt;in the read stmt objectid and s_vbeln are compatible..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest me??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 11:07:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648561#M878739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T11:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648562#M878740</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 do as below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
delete itab where vbeln not in S_VBELN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 11:09:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648562#M878740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T11:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648563#M878741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select options are always of type ranges. Go to the debuger and inspect your select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use the select option use operator "in" instead of "=".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 11:09:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648563#M878741</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-04-16T11:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648564#M878742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete itab where OBJECTID in S_VBELN. "To delete whichever matched the s_vbeln&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete itab where OBJECTID not in s_vbeln."To delete whichever did not match the s_vbeln&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kanth Talagana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 11:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648564#M878742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T11:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648565#M878743</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;Have you checked in table via SE11, if it is expecting leading zeros for Invoice no i.e. s)vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raju Chitale&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 11:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648565#M878743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T11:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648566#M878744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use this directly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE T_CDHDR where OBJECTID not in S_VBELN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 11:13:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648566#M878744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T11:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648567#M878745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u give me clear code??&lt;/P&gt;&lt;P&gt;shud i use read table or not??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 11:15:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648567#M878745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T11:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648568#M878746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi madan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think u have to delete records from internaltable which r not in s_vbeln&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can not delete directly. do one thing first fetch the data using select option from main table into one internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  vbeln&lt;/P&gt;&lt;P&gt;   from  table&lt;/P&gt;&lt;P&gt;   into  i_vbeln&lt;/P&gt;&lt;P&gt; where vbeln in s_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can get the data into i_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then process the table t_cdhdr and delete records which r not in i_vbeln.&lt;/P&gt;&lt;P&gt;loop at t_cdhdr into wa_cdhdr.&lt;/P&gt;&lt;P&gt;   read table i_vbeln with vbeln= wa_cdhdr-vbeln.&lt;/P&gt;&lt;P&gt;   if sy-subrc ne 0&lt;/P&gt;&lt;P&gt;    delete wa_cdhdr from t_cdhdr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;check this one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 11:21:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648568#M878746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T11:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648569#M878747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Madan-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-option is an internal table but in your read statement you are comparing directly with select-option this was it will not work.Ways to achieve your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Instead of select-option use parameter or&lt;/P&gt;&lt;P&gt;2) Loop the internal table with BT condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;~Srini....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 12:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648569#M878747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T12:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648570#M878748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Follow this Code.&lt;/P&gt;&lt;P&gt; loop at itab where vbeln Between Low anh High&lt;/P&gt;&lt;P&gt;  Delete &lt;/P&gt;&lt;P&gt; Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it is Helpfull,&lt;/P&gt;&lt;P&gt; Naresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 12:50:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648570#M878748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T12:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648571#M878749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi do like this&lt;/P&gt;&lt;P&gt;Data it_T_CDHDR &lt;U&gt;tmp .type standart table of T&lt;/U&gt;CDHDR  .&lt;/P&gt;&lt;P&gt;      wa_CDHDR &lt;U&gt;tmp type T&lt;/U&gt;CDHDR  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE T_CDHDR INTO W_CDHDR WITH KEY OBJECTID = S_VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0&lt;/P&gt;&lt;P&gt;w_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;move T_CDHDR  to wa_CDHDR &lt;U&gt;tmp index w&lt;/U&gt;tabix&lt;/P&gt;&lt;P&gt;Append T_CDHDR &lt;U&gt;tmp to it&lt;/U&gt;T_CDHDR _tmp .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh T_CDHDR .&lt;/P&gt;&lt;P&gt;T_CDHDR [] = it_T_CDHDR _tmp []&lt;/P&gt;&lt;P&gt;this wil giv u the desired values,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;Ronak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 12:56:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3648571#M878749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T12:56:03Z</dc:date>
    </item>
  </channel>
</rss>

