<?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: How to pick two fields from an internal table which has many fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pick-two-fields-from-an-internal-table-which-has-many-fields/m-p/1479938#M224677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a new internal table with field2 and field3 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use move-corresponding statement to move from itab1 to itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move corresponding itab1[] to itab2[]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Aug 2006 12:36:09 GMT</pubDate>
    <dc:creator>Manohar2u</dc:creator>
    <dc:date>2006-08-17T12:36:09Z</dc:date>
    <item>
      <title>How to pick two fields from an internal table which has many fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pick-two-fields-from-an-internal-table-which-has-many-fields/m-p/1479934#M224673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EX:Given format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field1	Field2	Field3	Field4(we get these 4 fields in the form of Tab delimited text file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to pick Field2 and Field3 with all the value into another internal table which has these two fields ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:Required format&lt;/P&gt;&lt;P&gt;Field2 Field3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 12:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pick-two-fields-from-an-internal-table-which-has-many-fields/m-p/1479934#M224673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T12:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick two fields from an internal table which has many fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pick-two-fields-from-an-internal-table-which-has-many-fields/m-p/1479935#M224674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shilpa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa_itab1.&lt;/P&gt;&lt;P&gt;wa_itab2-field2 = wa_itab1-field2.&lt;/P&gt;&lt;P&gt;wa_itab2-field3 = wa_itab1-field3.&lt;/P&gt;&lt;P&gt;append wa_itab2 to itab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 12:32:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pick-two-fields-from-an-internal-table-which-has-many-fields/m-p/1479935#M224674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T12:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick two fields from an internal table which has many fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pick-two-fields-from-an-internal-table-which-has-many-fields/m-p/1479936#M224675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shilpa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I don't think it is directly possible,&lt;/P&gt;&lt;P&gt;  in case of upload using GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  (we have to design the internal table, &lt;/P&gt;&lt;P&gt;  as per the data in the file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. However, we can do the reverse,&lt;/P&gt;&lt;P&gt;  in case of download using GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  (If our internal table contains 5 fields,&lt;/P&gt;&lt;P&gt;    we can output only  2,5 field for eg)&lt;/P&gt;&lt;P&gt;   using the parameter  COL_SELECT_MASK )&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 12:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pick-two-fields-from-an-internal-table-which-has-many-fields/m-p/1479936#M224675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T12:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick two fields from an internal table which has many fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pick-two-fields-from-an-internal-table-which-has-many-fields/m-p/1479937#M224676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You split the text from the four fields on TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;SPLIT itab-field at cl_abap_char_utilities=&amp;gt;horizontal_tab into f1 f2 f3 f4.&lt;/P&gt;&lt;P&gt;move f2 to itab1-f2.&lt;/P&gt;&lt;P&gt;move f3 to itab1-f3.&lt;/P&gt;&lt;P&gt;append itab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Anurag Bankley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Anurag Bankley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 12:34:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pick-two-fields-from-an-internal-table-which-has-many-fields/m-p/1479937#M224676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T12:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick two fields from an internal table which has many fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pick-two-fields-from-an-internal-table-which-has-many-fields/m-p/1479938#M224677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a new internal table with field2 and field3 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use move-corresponding statement to move from itab1 to itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move corresponding itab1[] to itab2[]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 12:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pick-two-fields-from-an-internal-table-which-has-many-fields/m-p/1479938#M224677</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-08-17T12:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick two fields from an internal table which has many fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pick-two-fields-from-an-internal-table-which-has-many-fields/m-p/1479939#M224678</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;While uploading data from flat file you couldn`t filter based on field names. After uploading the data, create a second internal table with fields of your need and use MOVE-CORRESPONDING ITAB1 TO ITAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the info. is helpful, reward if so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 12:44:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pick-two-fields-from-an-internal-table-which-has-many-fields/m-p/1479939#M224678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T12:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick two fields from an internal table which has many fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pick-two-fields-from-an-internal-table-which-has-many-fields/m-p/1479940#M224679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I got you right:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you simply want to copy these two fields from one table to another:  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
   lt_itab1 TYPE TABLE OF TS_ITAB1.
   lt_itab2 TYPE TABLE OF TS_ITAB2.
   ls_itab1 TYPE TS_ITAB1, " structure with F1-F4
   ls_itab2 TYPE TS_ITAB2. " structure with F2, F3
   
   LOOP at lt_itab1 INTO ls_itab1.
      MOVE-CORRESPONDING ls_itab1 TO ls_itab2.
      APPEND ls_itab2 TO lt_ITAB2.
   ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not what you were looking for - be more specific when asking a question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 12:47:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pick-two-fields-from-an-internal-table-which-has-many-fields/m-p/1479940#M224679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T12:47:12Z</dc:date>
    </item>
  </channel>
</rss>

