<?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 without table decalrtion. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/without-table-decalrtion/m-p/6536592#M1427288</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;&lt;/P&gt;&lt;P&gt;With out table decalrtion in my program how can I use mara table(for example) to get data in internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:mara(I donot want to declare)&lt;/P&gt;&lt;P&gt;select * from&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with Regards,&lt;/P&gt;&lt;P&gt;Jaheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jan 2010 08:16:32 GMT</pubDate>
    <dc:creator>jaheer_hussain</dc:creator>
    <dc:date>2010-01-04T08:16:32Z</dc:date>
    <item>
      <title>without table decalrtion.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/without-table-decalrtion/m-p/6536592#M1427288</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;&lt;/P&gt;&lt;P&gt;With out table decalrtion in my program how can I use mara table(for example) to get data in internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:mara(I donot want to declare)&lt;/P&gt;&lt;P&gt;select * from&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with Regards,&lt;/P&gt;&lt;P&gt;Jaheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 08:16:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/without-table-decalrtion/m-p/6536592#M1427288</guid>
      <dc:creator>jaheer_hussain</dc:creator>
      <dc:date>2010-01-04T08:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: without table decalrtion.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/without-table-decalrtion/m-p/6536593#M1427289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try without declaration:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: itab like mara occurs 0 with header line.
select * from mara into table itab.
*" OR
select * from mara into table itab where matnr eq '12345'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 08:20:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/without-table-decalrtion/m-p/6536593#M1427289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-04T08:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: without table decalrtion.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/without-table-decalrtion/m-p/6536594#M1427290</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;Check this , you can use as type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : gi_mara TYPE STANDARD TABLE OF mara.

SELECT *
  FROM mara
  INTO TABLE gi_mara.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Same way you can declare a workarea.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : wa_mara type mara.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Harsh Bhalla on Jan 4, 2010 2:00 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 08:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/without-table-decalrtion/m-p/6536594#M1427290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-04T08:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: without table decalrtion.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/without-table-decalrtion/m-p/6536595#M1427291</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;The statament TABLES means it needs to use a workarea structurated as a dictionary table, it doesn't mean it want to do a selection from a dictionary table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So every comand to declare a workarea as a dictionary table can be used, but it has to be indecated in the selection sentence, so it has to need to use the option INTO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: W_MARA TYPE/LIKE MARA.

SELECT * FROM MARA INTO MARA.
  WHERE ....
ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: MARA.

SELECT * FROM MARA
  WHERE ....
ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can use an internal table if it mean to upload several records:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: T_MARA TYPE/LIKE OF MARA WITH HEADERLINE.

SELECT * FROM MARA INTO TABLE MARA.
  WHERE ....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway check the help for SELECT statament&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 08:45:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/without-table-decalrtion/m-p/6536595#M1427291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-04T08:45:01Z</dc:date>
    </item>
  </channel>
</rss>

