<?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 Problem with field assign in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-assign/m-p/6313213#M1393061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   i have a table with two fields, one have data of fields names and the other contains the values of this fields. For example,&lt;/P&gt;&lt;P&gt;ztable-field   = ekpo-ebeln&lt;/P&gt;&lt;P&gt;ztable-value = 0000001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to assign this value to the field (that means ekpo-ebeln = 0000001), does anyone know how can i do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Nov 2009 15:21:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-16T15:21:26Z</dc:date>
    <item>
      <title>Problem with field assign</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-assign/m-p/6313213#M1393061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   i have a table with two fields, one have data of fields names and the other contains the values of this fields. For example,&lt;/P&gt;&lt;P&gt;ztable-field   = ekpo-ebeln&lt;/P&gt;&lt;P&gt;ztable-value = 0000001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to assign this value to the field (that means ekpo-ebeln = 0000001), does anyone know how can i do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 15:21:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-assign/m-p/6313213#M1393061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T15:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with field assign</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-assign/m-p/6313214#M1393062</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;The first step u need to create or have a workare just like the table in the field ZTABLE-FIELD:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA MY_WORKARE TYPE REF TO DATA.
DATA MY_TAB(30) TYPE C.
DATA MY_FIELD(30) TYPE C.

SPLIT ZTABLE-FIELD AT '-' INTO MY_TAB MY_FIELD.

CREATE DATA MY_WORKAREA TYPE (MY_TAB).

Now u can assign the value

FIELD-SYMBOLS: &amp;lt;FS_TAB&amp;gt; TYPE ANY.
FIELD-SYMBOLS: &amp;lt;FS_FIELD&amp;gt; TYPE ANY.

ASSIGN MY_WORKAREA-&amp;gt;* TO &amp;lt;FS_TAB&amp;gt;.
ASSIGN COMPONENT MY_FIELD OF STRUCTURE &amp;lt;FS_TAB&amp;gt; TO &amp;lt;FS_FIELD&amp;gt;.
&amp;lt;FS_FIELD&amp;gt; = ZTABLE-VALUE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else if u have deafine a workare by statamanet TABLES:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ASSIGN (ZTABLE-FIELD) TO &amp;lt;FS_FIELD&amp;gt;.
&amp;lt;FS_FIELD&amp;gt; = ZTABLE-VALUE..&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 15:35:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-field-assign/m-p/6313214#M1393062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T15:35:44Z</dc:date>
    </item>
  </channel>
</rss>

