<?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 tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618573#M1088141</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do i really have to make an internal tables for each my select statements?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Oct 2008 02:55:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-12T02:55:06Z</dc:date>
    <item>
      <title>internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618570#M1088138</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;&lt;/P&gt;&lt;P&gt;i'm a begginer..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i store all the data that i extracted into a final internal table (it_details)???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;heres my code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tnx!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;select shipping details from vbkd&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT inco1&lt;/P&gt;&lt;P&gt;inco2&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE it_sales&lt;/P&gt;&lt;P&gt;FROM vbkd&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_sales&lt;/P&gt;&lt;P&gt;WHERE vbeln EQ it_sales-vbeln&lt;/P&gt;&lt;P&gt;AND posnr EQ it_sales-posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get description of shipping point&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vtext&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE it_sales&lt;/P&gt;&lt;P&gt;FROM tvstt&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_sales&lt;/P&gt;&lt;P&gt;WHERE spras = 'en'&lt;/P&gt;&lt;P&gt;AND vstel = it_sales-vstel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get description of incoterms&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT bezei&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE it_sales&lt;/P&gt;&lt;P&gt;FROM tinct&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_sales&lt;/P&gt;&lt;P&gt;WHERE inco1 = it_sales-inco1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;AND&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;inco1 = it_sales-inco2.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SELECT bezei&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE it_sales&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FROM tinct.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WHERE inco1 = it_sales-inco2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get description route&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT bezei&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE it_sales&lt;/P&gt;&lt;P&gt;FROM tvrot&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_sales&lt;/P&gt;&lt;P&gt;WHERE route = it_sales-route.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get customer details&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT kunnr&lt;/P&gt;&lt;P&gt;name1&lt;/P&gt;&lt;P&gt;name2&lt;/P&gt;&lt;P&gt;ort01&lt;/P&gt;&lt;P&gt;pstlz&lt;/P&gt;&lt;P&gt;regio&lt;/P&gt;&lt;P&gt;pfach&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE it_sales&lt;/P&gt;&lt;P&gt;FROM kna1&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_sales&lt;/P&gt;&lt;P&gt;WHERE kunnr EQ it_sales-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: p0ng j0nes on Oct 12, 2008 4:43 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Oct 2008 02:43:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618570#M1088138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-12T02:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618571#M1088139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create an internal table which includes all fields and use move-corresponding&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Oct 2008 02:50:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618571#M1088139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-12T02:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618572#M1088140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code your selecting and filling it_sales in all the select statement,you should create separate internal table for each selection and then use the for all enteries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Oct 2008 02:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618572#M1088140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-12T02:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618573#M1088141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do i really have to make an internal tables for each my select statements?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Oct 2008 02:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618573#M1088141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-12T02:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618574#M1088142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you should make seperate internal tables,otherwise just put a break-point in your first select statement and check what is happening then you will understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Midhun Abraham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Midhun Abraham on Oct 12, 2008 4:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Oct 2008 02:59:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618574#M1088142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-12T02:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618575#M1088143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tnx!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Oct 2008 03:13:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618575#M1088143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-12T03:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618576#M1088144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is something wrong &lt;/P&gt;&lt;P&gt;for joining two table &lt;/P&gt;&lt;P&gt;There should be at least 1 common field&lt;/P&gt;&lt;P&gt;Please let me know which is common field between this two query ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Ashoak Narayandas Advani &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;select shipping details from vbkd&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT inco1&lt;/P&gt;&lt;P&gt;inco2&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE it_sales&lt;/P&gt;&lt;P&gt;FROM vbkd&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_sales&lt;/P&gt;&lt;P&gt;WHERE vbeln EQ it_sales-vbeln&lt;/P&gt;&lt;P&gt;AND posnr EQ it_sales-posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get description of shipping point&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vtext&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE it_sales&lt;/P&gt;&lt;P&gt;FROM tvstt&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_sales&lt;/P&gt;&lt;P&gt;WHERE spras = 'en'&lt;/P&gt;&lt;P&gt;AND vstel = it_sales-vstel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Oct 2008 03:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618576#M1088144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-12T03:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618577#M1088145</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 think field anco1 or inco2..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tnx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Oct 2008 03:34:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618577#M1088145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-12T03:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618578#M1088146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A few things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your first select will have only fields INCO1 and INCO2 filled in it_sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your second select will return basically nothing as VSTEL is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if it's allowed to do a &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INTO CORRESPONDING FIELDS OF TABLE it_sales&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in combination with &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FOR ALL ENTRIES IN it_sales&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're inserting lines to it_sales while your selecting from the same internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i'm not mistaken, each selection with &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INTO CORRESPONDING FIELDS OF TABLE it_sales&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; will overwrite any existing entries in it_sales. So should all your selects go through, you will find your internal table it_sales only filled with the entries retrieved in your final select statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Oct 2008 10:39:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/4618578#M1088146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-12T10:39:34Z</dc:date>
    </item>
  </channel>
</rss>

