<?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 Fieldname assignment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldname-assignment/m-p/3942250#M942957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u have to use fieldsymbol for this.&lt;/P&gt;&lt;P&gt;go to abap editor write fieldsymbols and press F1 .&lt;/P&gt;&lt;P&gt;u will get help for fieldsymbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suyog Haralikar on Jun 4, 2008 5:25 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jun 2008 03:21:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-04T03:21:33Z</dc:date>
    <item>
      <title>Dynamic Fieldname assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldname-assignment/m-p/3942249#M942956</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;How to get the field name dynamically from an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to assign some fields based on some condition, but i dont know which fields meet the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it_pos.&lt;/P&gt;&lt;P&gt; Loop at it_fieldcat.&lt;/P&gt;&lt;P&gt;   if it_fieldcat-no_out = ' '.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Now how to get the field name dynamically&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;it_display-(it_fieldcat-fieldname) = it_pos-(it_fieldcat-fieldname)*.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code is giving error, what is the correct syntax for such assignments&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ravi K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 03:11:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldname-assignment/m-p/3942249#M942956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T03:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Fieldname assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldname-assignment/m-p/3942250#M942957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u have to use fieldsymbol for this.&lt;/P&gt;&lt;P&gt;go to abap editor write fieldsymbols and press F1 .&lt;/P&gt;&lt;P&gt;u will get help for fieldsymbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suyog Haralikar on Jun 4, 2008 5:25 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 03:21:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldname-assignment/m-p/3942250#M942957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T03:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Fieldname assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldname-assignment/m-p/3942251#M942958</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;Better way to do this is to use field symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use class cl_abap_structdescr to get the components of your structure and then use field symbols to compare values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT &amp;lt;comp&amp;gt; OF STRUCTURE &amp;lt;your structure&amp;gt; TO &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 03:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fieldname-assignment/m-p/3942251#M942958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T03:23:53Z</dc:date>
    </item>
  </channel>
</rss>

