<?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 Loop over field symbol in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-over-field-symbol/m-p/12607280#M2011503</link>
    <description>&lt;P&gt;Hi experts,&lt;/P&gt;
  &lt;P&gt;I am trying to loop over field symbol but unable to understand how to do it.&lt;/P&gt;
  &lt;P&gt;I am taking table name dynamically, so I do not know the structure of the table.&lt;/P&gt;
  &lt;P&gt;Below is my code.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;    CREATE DATA LR_TABLE TYPE TABLE OF (TABLE_NAME).
    ASSIGN LR_TABLE-&amp;gt;* TO &amp;lt;FT_REC&amp;gt;.

    SELECT (FIELD)
      INTO CORRESPONDING FIELDS OF TABLE &amp;lt;FT_REC&amp;gt;
      FROM (TABLE_NAME)
      UP TO 10 ROWS
      ORDER BY PRIMARY KEY.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I want to take each field from each row and export it into a structure. Is there any better way to do it ? &lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2022 06:53:08 GMT</pubDate>
    <dc:creator>former_member778328</dc:creator>
    <dc:date>2022-07-28T06:53:08Z</dc:date>
    <item>
      <title>Loop over field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-over-field-symbol/m-p/12607280#M2011503</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
  &lt;P&gt;I am trying to loop over field symbol but unable to understand how to do it.&lt;/P&gt;
  &lt;P&gt;I am taking table name dynamically, so I do not know the structure of the table.&lt;/P&gt;
  &lt;P&gt;Below is my code.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;    CREATE DATA LR_TABLE TYPE TABLE OF (TABLE_NAME).
    ASSIGN LR_TABLE-&amp;gt;* TO &amp;lt;FT_REC&amp;gt;.

    SELECT (FIELD)
      INTO CORRESPONDING FIELDS OF TABLE &amp;lt;FT_REC&amp;gt;
      FROM (TABLE_NAME)
      UP TO 10 ROWS
      ORDER BY PRIMARY KEY.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I want to take each field from each row and export it into a structure. Is there any better way to do it ? &lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 06:53:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-over-field-symbol/m-p/12607280#M2011503</guid>
      <dc:creator>former_member778328</dc:creator>
      <dc:date>2022-07-28T06:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Loop over field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-over-field-symbol/m-p/12607281#M2011504</link>
      <description>&lt;P&gt;Search forum or ABAP documentation:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ASSIGN COMPONENT 'COMPNAME' OF STRUCTURE &amp;lt;STRUCTURE&amp;gt; TO &amp;lt;FIELD&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jul 2022 11:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-over-field-symbol/m-p/12607281#M2011504</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-07-28T11:19:03Z</dc:date>
    </item>
  </channel>
</rss>

