<?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 ABAP loop inside eCATT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-loop-inside-ecatt/m-p/5280643#M1218800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Colleagues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to read multiple values from a table and display for which i going thru an loop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But to display it is becoming an problem can you kindly see the code below .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am trying to store the table fields in an table as mentioend below in the ABAP  ENDABAP code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; V_C3[]-TABLE_LINE = &amp;lt;fs_field&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am getting an error while compiling the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you suggest the solution for the same ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at &amp;lt;fs_itab&amp;gt; assigning &amp;lt;fs_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'CLIENT' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_CLIENT = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C0' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C0 = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C1' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C1 = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C2' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C2 = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C3' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C3[]-TABLE_LINE = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C4' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C4 = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C5' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C5 = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C6' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C6 = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C7' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C7 = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C8' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C8 = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'MESSAGE_ID' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_MESSAGE_ID = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'TIMESTAMP' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_TIMESTAMP = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'EXTRACTKEY' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_EXTRACTKEY = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'STATEID' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_STATEID = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'DEVICE_ID' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_DEVICE_ID = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDLOOP.&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;harsha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Mar 2009 23:16:14 GMT</pubDate>
    <dc:creator>harsha_s</dc:creator>
    <dc:date>2009-03-01T23:16:14Z</dc:date>
    <item>
      <title>ABAP loop inside eCATT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-loop-inside-ecatt/m-p/5280643#M1218800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Colleagues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to read multiple values from a table and display for which i going thru an loop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But to display it is becoming an problem can you kindly see the code below .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am trying to store the table fields in an table as mentioend below in the ABAP  ENDABAP code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; V_C3[]-TABLE_LINE = &amp;lt;fs_field&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am getting an error while compiling the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you suggest the solution for the same ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at &amp;lt;fs_itab&amp;gt; assigning &amp;lt;fs_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'CLIENT' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_CLIENT = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C0' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C0 = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C1' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C1 = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C2' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C2 = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C3' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C3[]-TABLE_LINE = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C4' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C4 = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C5' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C5 = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C6' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C6 = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C7' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C7 = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'C8' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_C8 = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'MESSAGE_ID' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_MESSAGE_ID = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'TIMESTAMP' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_TIMESTAMP = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'EXTRACTKEY' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_EXTRACTKEY = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'STATEID' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_STATEID = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        assign component 'DEVICE_ID' of structure &amp;lt;fs_wa&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;        V_DEVICE_ID = &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDLOOP.&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;harsha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Mar 2009 23:16:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-loop-inside-ecatt/m-p/5280643#M1218800</guid>
      <dc:creator>harsha_s</dc:creator>
      <dc:date>2009-03-01T23:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP loop inside eCATT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-loop-inside-ecatt/m-p/5280644#M1218801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Harsha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This task can be performed in more simpler way if i understand your requirements correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside ABAP ... ENDABAP statements use Select statement and read all the values from your target table and assign it to a Local variable of the same table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Import &amp;amp; Export variables cannot be used inside the ABAP ... ENDABAP statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once all the values are stored in the Local table , outside the ENDABAP statement you can assign directly to the Export variable of table type with the local variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This export variable becomes visible outside the script asusual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should solve your requirment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Best regards,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 04:58:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-loop-inside-ecatt/m-p/5280644#M1218801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T04:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP loop inside eCATT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-loop-inside-ecatt/m-p/5280645#M1218802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i am not able to even apply that logic because am fetching the name of the table everytime using one more script as the table name is generated dynamically .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i cannot create a variable of that datatype .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone kindly suggest if there are any other solution for this problem/issue ?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;harsha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 17:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-loop-inside-ecatt/m-p/5280645#M1218802</guid>
      <dc:creator>harsha_s</dc:creator>
      <dc:date>2009-03-03T17:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP loop inside eCATT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-loop-inside-ecatt/m-p/5280646#M1218803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Harsha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a limitation with the tool i guess , not everyting can be handled through automation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Best regards,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 19:14:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-loop-inside-ecatt/m-p/5280646#M1218803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-04T19:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP loop inside eCATT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-loop-inside-ecatt/m-p/5280647#M1218804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its True even i did lot of R&amp;amp;D but was not able to find any logic .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from Internal table concept &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;harsha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 19:23:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-loop-inside-ecatt/m-p/5280647#M1218804</guid>
      <dc:creator>harsha_s</dc:creator>
      <dc:date>2009-03-04T19:23:18Z</dc:date>
    </item>
  </channel>
</rss>

