<?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 Usage problem in ABAP ... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392042#M1735138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just going to change your declaration around a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there isn't anymore additional fields within your internal table &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;XVBPA&lt;/SPAN&gt;. Can you declare it as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;XVBPA&lt;/SPAN&gt; type standard table of VBPAVB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lw_&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;XVBPA&lt;/SPAN&gt; type VBPAVB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To declare constants:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constants: lc_ag(2) type c value 'AG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And last but not least, I assume you want to select everything that have a prefix or post fix of AG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;XVBPA&lt;/SPAN&gt; into &lt;SPAN style="font-size: 10pt;"&gt;lw_&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;XVBPA where kunnr cs lc_ag.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Endloop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Brian&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Apr 2013 04:44:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-04-05T04:44:01Z</dc:date>
    <item>
      <title>Internal table Usage problem in ABAP ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392033#M1735129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;It is abit hard to explain what I need here.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;But I try to explain as much as I can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;i m using this structure&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;******* Declaration Part Starts ********&lt;/P&gt;&lt;P&gt; DATA: &lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;XVBPA &lt;SPAN class="L0S52"&gt;OCCURS &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;"#EC ENHOK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INCLUDE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STRUCTURE &lt;/SPAN&gt;VBPAVB.&lt;/P&gt;&lt;P&gt; DATA: &lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;XVBPA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&amp;nbsp; w_kunnr &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;vbpa-kunnr.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;******* Declaration Part&amp;nbsp; Ends ********&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&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;and using this SELECT query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SINGLE &lt;/SPAN&gt;kunnr &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;xvbpa &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;w_kunnr &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;parvw &lt;SPAN class="L0S52"&gt;eq &lt;/SPAN&gt;lc_ag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it gives error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know what shold i used or shall use any other table to fetch like READ TABLE statement???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 20:11:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392033#M1735129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-04T20:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table Usage problem in ABAP ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392034#M1735130</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;In this case XVBPA is just a internal table and it is not a database talbe. Select statemtns work with Database tables. So please change it to VBPA and then check the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 20:19:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392034#M1735130</guid>
      <dc:creator>former_member210730</dc:creator>
      <dc:date>2013-04-04T20:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table Usage problem in ABAP ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392035#M1735131</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;STRONG&gt;xvbpa is your internal table....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is your select....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SINGLE &lt;/SPAN&gt;kunnr &lt;STRONG&gt;&lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;xvbpa &lt;/STRONG&gt;&lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;w_kunnr &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;parvw &lt;SPAN class="L0S52"&gt;eq &lt;/SPAN&gt;lc_ag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;xvbpa isn't a db table&lt;/STRONG&gt;... &lt;STRONG&gt;for this there's a syntax error&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 20:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392035#M1735131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-04T20:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table Usage problem in ABAP ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392036#M1735132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nikita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you does use incorrect table in your query.&lt;/P&gt;&lt;P&gt;The correct table is vbpa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 21:37:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392036#M1735132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-04T21:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table Usage problem in ABAP ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392037#M1735133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chamo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically xvbpa is a structure.&lt;/P&gt;&lt;P&gt;i dint use vbpa. as i have to copare and want to select kunnr from&amp;nbsp; xvbpa.&lt;/P&gt;&lt;P&gt;any suggestions??? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 21:52:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392037#M1735133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-04T21:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table Usage problem in ABAP ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392038#M1735134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you declare XVBPA you're in fact defining an internal table that is an area where, for your purposes, you'll keep your data (in case retrieved from database through your SELECT). But it doesn't represent the transparent table itself what would be, as Chamo mentioned above, &lt;STRONG&gt;VBPA&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;But according to piece of code you've shared that XVBPA internal table wouldn't be really necessary once in fact you're just retrieving the customer number (KUNNR) from your sales order partners (VBPA). So the way you're doing by fetching data into variable W_KUNNR is pretty much correct (but I'd suggest you to add sales order number and item, VBELN and POSNR respectively, to your selection other it will simply bring first entry found in VBPA (that could be from any sales order else yours).&lt;/P&gt;&lt;P&gt;Regarding your question about READ statement it's used for to read data from your XVBPA internal table mentioned above. So your program would look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SINGLE &lt;/SPAN&gt;kunnr &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;vbpa &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;w_kunnr &lt;SPAN class="L0S52"&gt;WHERE vbeln&amp;nbsp; EQ lv_vbeln&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND posnr EQ lv_posnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND parvw EQ&lt;SPAN class="L0S52"&gt; &lt;/SPAN&gt;lc_ag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have any doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edgar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 22:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392038#M1735134</guid>
      <dc:creator>edgar_nagasaki</dc:creator>
      <dc:date>2013-04-04T22:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table Usage problem in ABAP ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392039#M1735135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edgar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xvbpa is internal table of type Structure .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: &lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;XVBPA &lt;SPAN class="L0S52"&gt;OCCURS &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INCLUDE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STRUCTURE &lt;/SPAN&gt;VBPAVB.&lt;/P&gt;&lt;P&gt; DATA: &lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;XVBPA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my program i want to compare Kunnr with some constant value "AG" which i have taken in constant declare as lc_ag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&amp;nbsp;&amp;nbsp; lc_ag(2) &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;VALUE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'AG'&lt;/SPAN&gt;.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i m using Select Query like:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;READ &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;int_xvbpa &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;ws_int_xvbpa &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;KEY &lt;/SPAN&gt;kunnr = lc_ag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it gives error mention in the attached image .. &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/201980" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.... &lt;SPAN __jive_emoticon_name="plain" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1353/images/emoticons/plain.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 23:42:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392039#M1735135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-04T23:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table Usage problem in ABAP ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392040#M1735136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you share all your code over here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edgar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 04:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392040#M1735136</guid>
      <dc:creator>edgar_nagasaki</dc:creator>
      <dc:date>2013-04-05T04:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table Usage problem in ABAP ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392041#M1735137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without all the code, some guessing exercise &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1353/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Think your READ statement should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;READ &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;xvbpa &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;ws_int_xvbpa &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;KEY &lt;/SPAN&gt;kunnr = lc_ag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensure XVBPA is visible to your routine (declared in it or at global level).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 04:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392041#M1735137</guid>
      <dc:creator>edgar_nagasaki</dc:creator>
      <dc:date>2013-04-05T04:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table Usage problem in ABAP ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392042#M1735138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just going to change your declaration around a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there isn't anymore additional fields within your internal table &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;XVBPA&lt;/SPAN&gt;. Can you declare it as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;XVBPA&lt;/SPAN&gt; type standard table of VBPAVB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lw_&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;XVBPA&lt;/SPAN&gt; type VBPAVB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To declare constants:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constants: lc_ag(2) type c value 'AG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And last but not least, I assume you want to select everything that have a prefix or post fix of AG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;XVBPA&lt;/SPAN&gt; into &lt;SPAN style="font-size: 10pt;"&gt;lw_&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;XVBPA where kunnr cs lc_ag.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Endloop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Brian&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 04:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392042#M1735138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-05T04:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table Usage problem in ABAP ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392043#M1735139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thung,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code is quite right but I started to think it's about a user-exit and she needs to go straight to entry from XVBPA where KUNNR is equal AG. In this way a LOOP wouldn't be necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edgar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 04:52:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392043#M1735139</guid>
      <dc:creator>edgar_nagasaki</dc:creator>
      <dc:date>2013-04-05T04:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table Usage problem in ABAP ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392044#M1735140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edgar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not an expert in Logistic, hence I am not sure if this is a user exit, so correct me if I am wrong, KUNNR is a customer number that contains 8 characters. Her constant is a 2 character field, hence I sort of thinking she is trying to group up all customer that have a prefix code of AG. Hence where the loop kicks in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If she just want 1 record, then ya...read will be a better option. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing I picked up from her reply as well, the error is with XVBPA, but when you look how she code the read statement:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;READ &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;TABLE &lt;/SPAN&gt;&lt;STRONG style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;int_xvbpa &lt;/STRONG&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;INTO &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;ws_int_xvbpa &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;KEY &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;kunnr = lc_ag.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;So there is definately something wrong with the code that don't match the print screen. Can't really help much without seeing the whole code though.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Brian&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 05:13:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392044#M1735140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-05T05:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table Usage problem in ABAP ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392045#M1735141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, it's indeed another good point (noticed that but didn't care about, my mistake...), customer numbers doesn't look like that AG that actually I started to guess is the partner type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 05:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392045#M1735141</guid>
      <dc:creator>edgar_nagasaki</dc:creator>
      <dc:date>2013-04-05T05:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table Usage problem in ABAP ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392046#M1735142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey...&amp;nbsp;&amp;nbsp; Thanks Edgar... Problem is solved.&lt;/P&gt;&lt;P&gt;I have used same Read statement it's Working...&lt;/P&gt;&lt;P&gt;Thanks Vinay&lt;SPAN class="j-post-author " style="font-size: 0.9em; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG style="font-style: inherit; font-size: 11px; font-family: inherit;"&gt;&amp;nbsp; you are rite... we can used select statement with DB Table.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks Thung , Ivan and&amp;nbsp; Chamo&amp;nbsp; ....&amp;nbsp;&amp;nbsp; &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1353/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author " style="font-size: 0.9em; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG style="font-style: inherit; font-size: 11px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 07:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-usage-problem-in-abap/m-p/9392046#M1735142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-05T07:20:07Z</dc:date>
    </item>
  </channel>
</rss>

