<?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: Simple Transformation: loop - internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-loop-internal-table/m-p/7955027#M1602205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   w_index LIKE sy-index..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT "internal table" INTO "workare" FROM w_index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              w_index = sy-tabix..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Menlo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate w_index into "x" x is the variable to which to transfer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanking you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jun 2011 16:14:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-02T16:14:43Z</dc:date>
    <item>
      <title>Simple Transformation: loop - internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-loop-internal-table/m-p/7955026#M1602204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am new with simple transformation. I read some stuff and try to build my first ST-programm. Now i stuck ...... &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope you guys could help me. I have build up an internal table and would like to transform it to an excel sheet. I found an article on the net and modified to my useage. It is working for a static table with static colunm number. But what if i have a internal table which column numbers could change?&lt;/P&gt;&lt;P&gt;Look at the coding:&lt;/P&gt;&lt;P&gt;          &amp;lt;tt:loop ref=".table"&amp;gt;         &lt;/P&gt;&lt;P&gt;            &amp;lt;Row&amp;gt;&lt;/P&gt;&lt;P&gt;              &amp;lt;Cell&amp;gt;&lt;/P&gt;&lt;P&gt;                &amp;lt;Data ss:Type="String"&amp;gt;&lt;/P&gt;&lt;P&gt;                  &amp;lt;tt:value ref="FIELD_1"/&amp;gt;&lt;/P&gt;&lt;P&gt;                &amp;lt;/Data&amp;gt;&lt;/P&gt;&lt;P&gt;              &amp;lt;/Cell&amp;gt;&lt;/P&gt;&lt;P&gt;              &amp;lt;Cell&amp;gt;&lt;/P&gt;&lt;P&gt;                &amp;lt;Data ss:Type="String"&amp;gt;&lt;/P&gt;&lt;P&gt;                  &amp;lt;tt:value ref="FIELD_2"/&amp;gt;&lt;/P&gt;&lt;P&gt;                &amp;lt;/Data&amp;gt;&lt;/P&gt;&lt;P&gt;              &amp;lt;/Cell&amp;gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; here i want to loop over my internal table columns&lt;/P&gt;&lt;P&gt;              &amp;lt;Cell&amp;gt;&lt;/P&gt;&lt;P&gt;                &amp;lt;Data ss:Type="String"&amp;gt;&lt;/P&gt;&lt;P&gt;                  &amp;lt;tt:value ref="FIELD_N"/&amp;gt;&lt;/P&gt;&lt;P&gt;                &amp;lt;/Data&amp;gt;&lt;/P&gt;&lt;P&gt;              &amp;lt;/Cell&amp;gt;&lt;/P&gt;&lt;P&gt;            &amp;lt;/Row&amp;gt;&lt;/P&gt;&lt;P&gt;          &amp;lt;/tt:loop&amp;gt;&lt;/P&gt;&lt;P&gt;I know i have to define a variable but this variable has to count startin from 1 to the end of the table columns. Then i have to concatenate the column name with the variable FILED_XX (like i do in ABAP). How can i achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   thx,&lt;/P&gt;&lt;P&gt;      M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 13:16:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-loop-internal-table/m-p/7955026#M1602204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-02T13:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Transformation: loop - internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-loop-internal-table/m-p/7955027#M1602205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   w_index LIKE sy-index..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT "internal table" INTO "workare" FROM w_index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              w_index = sy-tabix..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Menlo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate w_index into "x" x is the variable to which to transfer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanking you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 16:14:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-loop-internal-table/m-p/7955027#M1602205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-02T16:14:43Z</dc:date>
    </item>
  </channel>
</rss>

