<?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: select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/3730777#M897949</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;Do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types: Begin of ty_mara,&lt;/P&gt;&lt;P&gt;             matnr type mara-matnr,&lt;/P&gt;&lt;P&gt;             meins type mara-meins,&lt;/P&gt;&lt;P&gt;           end of ty_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: gt_mara type table of ty_mara, " This is Internal table gt_mara declaration.&lt;/P&gt;&lt;P&gt;        wa_mara type ty_mara.        "This is Work Area declaration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr meins FROM mara INTO TABLE gt_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Apr 2008 05:33:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-22T05:33:22Z</dc:date>
    <item>
      <title>select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/3730776#M897948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT matnr meins FROM mara INTO CORRESPONDING FIELDS OF TABLE gt_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this statement correct where gt_mara has two fields matnr and meins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF wa_trans.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE gt_trans.&lt;/P&gt;&lt;P&gt;DATA: END OF wa_trans.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wat does thios do&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 05:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/3730776#M897948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T05:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/3730777#M897949</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;Do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types: Begin of ty_mara,&lt;/P&gt;&lt;P&gt;             matnr type mara-matnr,&lt;/P&gt;&lt;P&gt;             meins type mara-meins,&lt;/P&gt;&lt;P&gt;           end of ty_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: gt_mara type table of ty_mara, " This is Internal table gt_mara declaration.&lt;/P&gt;&lt;P&gt;        wa_mara type ty_mara.        "This is Work Area declaration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr meins FROM mara INTO TABLE gt_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 05:33:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/3730777#M897949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T05:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/3730778#M897950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;IF GT_MARA has these two fields only no need to write corresponding fields of table as a optimization point of view&lt;/P&gt;&lt;P&gt;else the statement is correct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT matnr meins FROM mara INTO TABLE gt_mara.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:BEGIN OF wa_trans.
INCLUDE STRUCTURE gt_trans.
DATA: END OF wa_trans.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This statement defines a line type having a same structure as &lt;/P&gt;&lt;P&gt;GT_trans..&lt;/P&gt;&lt;P&gt;as u have named it WA_trans&lt;/P&gt;&lt;P&gt; it is working as a work area only it is also right....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;pls reward points &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;rajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 05:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/3730778#M897950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T05:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/3730779#M897951</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;Try to do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : Begin of imara occurs 0, "internal table declartions&lt;/P&gt;&lt;P&gt;matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;meins like mara-meins,&lt;/P&gt;&lt;P&gt;end of imara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: gt_mara type table of imara, "Internal table gt_mara    declaration.&lt;/P&gt;&lt;P&gt;wa_mara type imara. "Work Area declaration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr meins FROM mara INTO TABLE gt_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward me Points,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By&lt;/P&gt;&lt;P&gt;Pari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 05:37:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/3730779#M897951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T05:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/3730780#M897952</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;if the order of fields in gt_mara is meins and matnr its necessary to use corresponding edition. otherwise its not &lt;/P&gt;&lt;P&gt;you can use &lt;/P&gt;&lt;P&gt;SELECT matnr meins FROM mara into TABLE gt_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the next one defines a work area of structure gt_trans.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 05:41:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/3730780#M897952</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-04-22T05:41:14Z</dc:date>
    </item>
  </channel>
</rss>

