<?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 select statment - fill internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-fill-internal-table/m-p/1923160#M383389</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 have following situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF q_data,
         i_lqua LIKE lqua,
         v_xxx(20) type c,
       END OF q_data.

DATA: a_data TYPE STANDARD TABLE OF q_data.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would write a select statment and fill the table a_data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select lqua~matnr lqua~werks... from lqua inner join mch1 into (i_lqua-matnr, i_lqua-werks.....)...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to write a statement without writing the whole structure (all the names of columns) of lqua in the SQL-statement (lqua&lt;SUB&gt;matnr lqua&lt;/SUB&gt;werks lqua~........)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Feb 2007 09:47:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-12T09:47:41Z</dc:date>
    <item>
      <title>select statment - fill internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-fill-internal-table/m-p/1923160#M383389</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 have following situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF q_data,
         i_lqua LIKE lqua,
         v_xxx(20) type c,
       END OF q_data.

DATA: a_data TYPE STANDARD TABLE OF q_data.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would write a select statment and fill the table a_data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select lqua~matnr lqua~werks... from lqua inner join mch1 into (i_lqua-matnr, i_lqua-werks.....)...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to write a statement without writing the whole structure (all the names of columns) of lqua in the SQL-statement (lqua&lt;SUB&gt;matnr lqua&lt;/SUB&gt;werks lqua~........)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 09:47:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-fill-internal-table/m-p/1923160#M383389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T09:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: select statment - fill internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-fill-internal-table/m-p/1923161#M383390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. you can write that but i think you have to write that in SELECT ...ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lqua&lt;SUB&gt;matnr lqua&lt;/SUB&gt;werks... from lqua inner join mch1 into (i_lqua-matnr, i_lqua-werks.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append i_lqua.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. OR you can use INTO CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   select lqua&lt;SUB&gt;matnr lqua&lt;/SUB&gt;werks... from lqua inner join mch1 into corresponding fields of table i_lqua.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 09:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-fill-internal-table/m-p/1923161#M383390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T09:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: select statment - fill internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-fill-internal-table/m-p/1923162#M383391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use Select * as the first field in your table is of type lqua.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 09:53:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-fill-internal-table/m-p/1923162#M383391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T09:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: select statment - fill internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-fill-internal-table/m-p/1923163#M383392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no in innerjoin you can not do that because if you use * instead of column name then system will be confuse on the common fields between two tables so you have to do like that only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but 1 thing instead of lqua every time you can use a, b or any alias for that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;f1 a&lt;/SUB&gt;f2 into corresponding fields of table itab from dbtab as a inner join dbtab1 as b on a&lt;SUB&gt;f1 = b&lt;/SUB&gt;f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 10:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-fill-internal-table/m-p/1923163#M383392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T10:08:26Z</dc:date>
    </item>
  </channel>
</rss>

