<?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: Dynamic fieldnames in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldnames/m-p/7732683#M1581145</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 can be done, one way of doing it in a performant way is shown here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1934005"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With kind regards&lt;/P&gt;&lt;P&gt;Uwe Gebhardt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2011 15:10:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-04-14T15:10:48Z</dc:date>
    <item>
      <title>Dynamic fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldnames/m-p/7732680#M1581142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering something.&lt;/P&gt;&lt;P&gt;In an ABAP program, datas are extracted from an csv file with many columns (100).&lt;/P&gt;&lt;P&gt;The datas are similar for each columns.&lt;/P&gt;&lt;P&gt;In my internal table, my fields are called field1, field2...Etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do a loop to fill these fields.&lt;/P&gt;&lt;P&gt;Something like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO wv_i TIMES.&lt;/P&gt;&lt;P&gt;	field(wv_i) = wv_i.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where the wv_i is the end of the fieldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 09:57:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldnames/m-p/7732680#M1581142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-14T09:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldnames/m-p/7732681#M1581143</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 do it with field symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;fs1&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;DATA : field1 TYPE i.&lt;/P&gt;&lt;P&gt;DATA : l_char6 TYPE char6,&lt;/P&gt;&lt;P&gt;       l_char1 TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DO 1 TIMES.&lt;/P&gt;&lt;P&gt;    MOVE sy-index TO l_char1.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'FIELD' l_char1 INTO l_char6.&lt;/P&gt;&lt;P&gt;    ASSIGN (l_char6) TO &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;    &amp;lt;fs1&amp;gt; = 1.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE : &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 10:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldnames/m-p/7732681#M1581143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-14T10:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldnames/m-p/7732682#M1581144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this logic.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:it_string type table of string.
data:wa_string type string.
data:itab_data type table of XYZ.
data:wa_data type xyz.

do.
read dataset file_path into wa_string.
if sy-subrc = 0.
clear it_string[].
split wa_string at *tab* into it_string.
loop at it_string into wa_string.
assign component sy-tabix of structure wa_data to &amp;lt;fs&amp;gt;.
if sy-subrc = 0.
&amp;lt;fs&amp;gt; = wa_string.
endif.
at last.
append wa_data ti itab_data.
endloop.
else.
exit.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 10:58:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldnames/m-p/7732682#M1581144</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-04-14T10:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldnames/m-p/7732683#M1581145</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 can be done, one way of doing it in a performant way is shown here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1934005"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With kind regards&lt;/P&gt;&lt;P&gt;Uwe Gebhardt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 15:10:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldnames/m-p/7732683#M1581145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-14T15:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic fieldnames</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldnames/m-p/7732684#M1581146</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;Thank you ganesh.&lt;/P&gt;&lt;P&gt;Your solution works fine!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you to others too even if I didn't test your solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 08:23:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldnames/m-p/7732684#M1581146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-18T08:23:50Z</dc:date>
    </item>
  </channel>
</rss>

