<?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 access to work area fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-access-to-work-area-fields/m-p/3273037#M782434</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;Try the following example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: i_TAB           LIKE PA0001 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        l_field(50)     TYPE C,&lt;/P&gt;&lt;P&gt;        l_fieldname(50) TYPE C VALUE 'UNAME'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;fieldxx&amp;gt; TYPE ANY,&lt;/P&gt;&lt;P&gt;                 &amp;lt;valxx&amp;gt;   TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASSIGN l_fieldname TO &amp;lt;fieldxx&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM PA0001 INTO TABLE I_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT I_TAB.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'I_TAB-' &amp;lt;fieldxx&amp;gt; INTO l_field.&lt;/P&gt;&lt;P&gt;    ASSIGN (l_field) TO &amp;lt;valxx&amp;gt;.&lt;/P&gt;&lt;P&gt;    WRITE &amp;lt;valxx&amp;gt;.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2008 12:45:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-14T12:45:22Z</dc:date>
    <item>
      <title>Dynamic access to work area fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-access-to-work-area-fields/m-p/3273036#M782433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I've got a DataBase table with 20 fields with different names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1&lt;/P&gt;&lt;P&gt;field2&lt;/P&gt;&lt;P&gt;field3.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;field20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a work area to read values and i wanna read an specific field of this work area.&lt;/P&gt;&lt;P&gt;The problem is the following:&lt;/P&gt;&lt;P&gt;I don't know the name of the field i need to access, instead, i have it in a field symbol.&lt;/P&gt;&lt;P&gt;Is there any way i can get the value of this field???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 11:59:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-access-to-work-area-fields/m-p/3273036#M782433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T11:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic access to work area fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-access-to-work-area-fields/m-p/3273037#M782434</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;Try the following example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: i_TAB           LIKE PA0001 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        l_field(50)     TYPE C,&lt;/P&gt;&lt;P&gt;        l_fieldname(50) TYPE C VALUE 'UNAME'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;fieldxx&amp;gt; TYPE ANY,&lt;/P&gt;&lt;P&gt;                 &amp;lt;valxx&amp;gt;   TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASSIGN l_fieldname TO &amp;lt;fieldxx&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM PA0001 INTO TABLE I_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT I_TAB.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'I_TAB-' &amp;lt;fieldxx&amp;gt; INTO l_field.&lt;/P&gt;&lt;P&gt;    ASSIGN (l_field) TO &amp;lt;valxx&amp;gt;.&lt;/P&gt;&lt;P&gt;    WRITE &amp;lt;valxx&amp;gt;.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 12:45:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-access-to-work-area-fields/m-p/3273037#M782434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T12:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic access to work area fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-access-to-work-area-fields/m-p/3273038#M782435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am considering 'MARA' as my work area name, &amp;lt;fieldname&amp;gt; as the fieldstring with the fieldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD_SYMBOLS : &amp;lt;value&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: fn type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate 'MARA-' &amp;lt;fieldname&amp;gt; into fn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign (fn) to &amp;lt;value&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the field string &amp;lt;value&amp;gt; will have the required value from the work area's appropriate field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 12:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-access-to-work-area-fields/m-p/3273038#M782435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T12:55:45Z</dc:date>
    </item>
  </channel>
</rss>

