<?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 few fields into table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033617#M1349767</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;No you can not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am strage that you are asking these type of questiones. Because if you read any basic ABAP Book there it self you can find all the answers of these type of questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj Gupta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: RajGupta on Aug 20, 2009 4:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2009 14:28:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-20T14:28:47Z</dc:date>
    <item>
      <title>select few fields into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033616#M1349766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a ztable with 15 fields  and i declared the itab and work area same as ztable.&lt;/P&gt;&lt;P&gt;Now i want to fetch only 5 fields which are not in sequence into itab.As the structure is  same can i use into table rather than corresponding fields? Is any problem in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  fiel2 field5 field6 field7 field9 from ztable into table itab where field = p_field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 14:24:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033616#M1349766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T14:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: select few fields into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033617#M1349767</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;No you can not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am strage that you are asking these type of questiones. Because if you read any basic ABAP Book there it self you can find all the answers of these type of questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj Gupta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: RajGupta on Aug 20, 2009 4:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 14:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033617#M1349767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T14:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: select few fields into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033618#M1349768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, there is a problem with this. however, it's easily fixable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you are already reserving the memory space for the full table in your itab and workarea (it's declared as the ztable) then you could just select * into it and the only use the five fieds you need in your program. This will be faster than using into corresponding fields of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 14:29:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033618#M1349768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T14:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: select few fields into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033619#M1349769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried it?  I think you would get a dump.  I'm pretty sure that if you use INTO TABLE, then the field list must contain the same fields, in the same order, as the internal table.   You should use INTO CORRESPONDING FIELD OF in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 14:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033619#M1349769</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2009-08-20T14:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: select few fields into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033620#M1349770</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 easiest way to answer this question will be for you to try it, it will be pretty obvious if it works or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, my feeling is it will not work, it will put all of the fields at the beginning of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 14:30:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033620#M1349770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T14:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: select few fields into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033621#M1349771</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; Arrange your itab in the order of your ztable fields and then use select ....into table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else you need to use move-correspong&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;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 14:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033621#M1349771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T14:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: select few fields into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033622#M1349772</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;You can use the select staement .You can also use &lt;STRONG&gt;select.. corresponding&lt;/STRONG&gt; Fields also &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else you can also use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT s1 ... sn  FROM dbtab  dbtab APPENDING CORRESPONDING FIELDS OF TABLE itab&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from performance point of view create internal table with rows that you need to manipulate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; because &lt;STRONG&gt;select..corresponding&lt;/STRONG&gt; takes a time and is not suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditi Wason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 14:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033622#M1349772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T14:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: select few fields into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033623#M1349773</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 you really need a sturcture which is defined in the data dictionary?&lt;/P&gt;&lt;P&gt;An complete different aproach would be to build a dynamical itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I mean? You declare the structure of your internal table within the coding of your program.&lt;/P&gt;&lt;P&gt;One way to do this would be with a statment like this (just to give a hint):&lt;/P&gt;&lt;P&gt;CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      it_fieldcatalog = t_fcat&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      ep_table        = ref_t_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would allow you to do anything you like, because you even can built a select statement on runtime.&lt;/P&gt;&lt;P&gt;So far I didn't observe any "new" performance problem when doing so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards &lt;/P&gt;&lt;P&gt;Herbert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 15:06:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033623#M1349773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T15:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: select few fields into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033624#M1349774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you experts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried and I got dump .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought some new way of doing will be there for this  rather than using  into corresponding fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you once again for the responses&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 16:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-few-fields-into-table/m-p/6033624#M1349774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T16:27:33Z</dc:date>
    </item>
  </channel>
</rss>

