<?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: loop at internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661436#M613993</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;It is NOT Possible. You need to LOOP by Rows only and then you can do your processing for each column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2007 15:53:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-10T15:53:43Z</dc:date>
    <item>
      <title>loop at internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661434#M613991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; in genral we loop by row like&lt;/P&gt;&lt;P&gt;loop at itab&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;end loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is to loop itab by column&lt;/P&gt;&lt;P&gt;can any one give me idea&lt;/P&gt;&lt;P&gt;its urgent...............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 15:50:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661434#M613991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T15:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: loop at internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661435#M613992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is nothing like looping by column. Once you have read a record of the table into work area, you have access to all the fields of that internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you want to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 15:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661435#M613992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T15:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: loop at internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661436#M613993</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;It is NOT Possible. You need to LOOP by Rows only and then you can do your processing for each column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 15:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661436#M613993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T15:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: loop at internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661437#M613994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Turn the internal table "on it's side"... and then loop thru it as needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 15:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661437#M613994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T15:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: loop at internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661438#M613995</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 not loop by column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can sort the internal table by column (ascending or descending order) prior to loop.&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 15:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661438#M613995</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-08-10T15:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: loop at internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661439#M613996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could loop at the columns by using Field-symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically DESCRIBE the structure and loop thru its components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would then loop thru column using the currently, assigned Field-symbola nd then address each row as neede (using a LOOP or READ TABLE with wan INDEX).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 16:02:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661439#M613996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T16:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: loop at internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661440#M613997</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;Doesn't exists columns loop, but you can do as follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: ttable TYPE TABLE OF mara WITH HEADER LINE.

FIELD-SYMBOLS &amp;lt;field&amp;gt; TYPE ANY.

LOOP AT ttable.

" Each column of ttable is moved to &amp;lt;field&amp;gt;
  DO.
    ASSIGN COMPONENT sy-index OF STRUCTURE ttable TO &amp;lt;field&amp;gt;.

    IF sy-subrc IS INITIAL.
      WRITE &amp;lt;field&amp;gt;. "Here is a column value
    ELSE. 
      EXIT." Exit when all collumn is processed
    ENDIF.
  ENDDO.

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Don't forget to close this Thread and reward points for useful answers when your question be answered.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcelo Ramos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 16:06:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661440#M613997</guid>
      <dc:creator>marcelo_ramos1</dc:creator>
      <dc:date>2007-08-10T16:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: loop at internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661441#M613998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to loop by column but as all replied that there is no such process i have to see some other way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 16:30:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661441#M613998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T16:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: loop at internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661442#M613999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really true.... there is no pre-built option for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use FIELD-SYMBOLS as mentioned above and take a snapshot of the internal table's struecture (meaning the columns) and then LOOP thru the columns first then read the rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is true that ABAP does not "naturally" support your needs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 17:02:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table/m-p/2661442#M613999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T17:02:36Z</dc:date>
    </item>
  </channel>
</rss>

