<?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: Read structure FIELD Dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536815#M244882</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;Thanks a lot. &lt;/P&gt;&lt;P&gt;This Assign component statement solved my problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a Nice Day&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Aug 2006 12:55:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-07T12:55:39Z</dc:date>
    <item>
      <title>Read structure FIELD Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536808#M244875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on CO-PA exit EXIT_SAPLKEAB_001.&lt;/P&gt;&lt;P&gt;In this exit we have a structure EP_SOURCE. This structure gets its structure dynamically. In my case this is of type CE1SN00. These CE1 tables gets generated in SAP dynamically when you maintain any Operating Concern in CO-PA. In my case Operating concern SN00 has been maintained. And in this CE1SN00 there are multiple Value fields. I have to apply a formula on one of the fields.&lt;/P&gt;&lt;P&gt;The problem is that I have to apply a formula on different fields everytime. I have a Z table which has fields 'Operating Concern', 'Field' and 'Active Indicator'. I have to read this Z table based on the Operating Concern and get the 'Field' name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in my Z table if I have a Operating Concern 'S_AL' and field 'KWBLOK_ME'. And the EP_SOURCE structure has got an entry from table 'CE1S_AL'. I have to read 'EP_SOURCE-KWBLOK_ME' and apply the formula on it. &lt;/P&gt;&lt;P&gt;And next time if I have a Operating Concern 'S_AL' and field 'KWFLHR_ME'. I have to read 'EP_SOURCE-KWFLHR_ME' and apply the formula on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have done so far is I have defined a structure IT_CE1S_AL as type CE1S_AL and moving all the values from EPSOURCE to IT_CE1S_AL. Now I have to read the value of only that field which is there in 'Z' table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I have explained this well. Please help me in solving this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 10:28:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536808#M244875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T10:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Read structure FIELD Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536809#M244876</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;Check this FM : DYNP_VALUES_READ to read the field values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Appana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 11:05:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536809#M244876</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-08-07T11:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read structure FIELD Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536810#M244877</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;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;f1&amp;gt; TYPE ANY, &amp;lt;f2&amp;gt; TYPE ANY, &amp;lt;f3&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;ASSIGN EP_SOURCE TO &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN 'S_AL' TO &amp;lt;f2&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT &amp;lt;f2&amp;gt; OF STRUCTURE &amp;lt;f1&amp;gt; TO &amp;lt;f3&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;f3&amp;gt; contains the required value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 11:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536810#M244877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T11:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Read structure FIELD Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536811#M244878</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;Take your all fields into an internal table from your Ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols:&amp;lt;f1&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;itab-fld = 'KWBLOK_ME' .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;assign component itab-fld of structure CE1S_AL to &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;now you have values in the &amp;lt;f1&amp;gt; as&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;f_value = &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 11:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536811#M244878</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-08-07T11:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Read structure FIELD Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536812#M244879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rajesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use field symbols for this...&lt;/P&gt;&lt;P&gt;here is the sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; field-symbols &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;itab-field1 = 'KWBLOK_ME' .&lt;/P&gt;&lt;P&gt;Assign the itab-field1 of structure CE1S_AL to &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;You have the values in &amp;lt;f1&amp;gt; as &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;value = &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;P&gt;*You can apply the formula here..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 11:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536812#M244879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T11:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Read structure FIELD Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536813#M244880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Appana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, but this won't solve my problem, here I am trying to read a structure in a user-exit and want to read one field only from that structure and this one field could be anything.&lt;/P&gt;&lt;P&gt;For example: I have a structure called MARA. In first instance I want to read MARA-ERSDA because ERSDA is there in my 'Z' table and in second instance I might have to read field MARA-LAEDA because the ERSDA field has been replced by LAEDA now in the 'Z' table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 11:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536813#M244880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T11:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Read structure FIELD Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536814#M244881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richa, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur reply. But my requirement is something different. I have tried the field symbols but getting an error message - "Data object 'EP_SOURCE' does not have a component called &amp;lt;FS1&amp;gt;".&lt;/P&gt;&lt;P&gt;Once again my requirement is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Z table ZCO_VALUE. The structure of the table is:&lt;/P&gt;&lt;P&gt;_______________________________________&lt;/P&gt;&lt;P&gt;MANDT  |  OP_CON  |  FIELD   |  A_IND |&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And there 2 two entries in this table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_______________________________________&lt;/P&gt;&lt;P&gt;100    |  S_AL    |KWBLOK_ME |  A     |&lt;/P&gt;&lt;P&gt;100    |  S_AL    |KWBLHR_ME |  A     |&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have a structure EP_SOURCE in user-exit which is just like CE1S_AL. KWBLOK_ME &amp;amp; KWBLHR_ME are technical field names in CE1S_AL. I want to read the value of either CE1S_AL-KWBLOK_ME or CE1S_AL-KWBLHR_ME.&lt;/P&gt;&lt;P&gt;Now in my first instance I want to read &lt;/P&gt;&lt;P&gt;EP_SOURCE-KWBLOK_ME, but I have KWBLOK_ME as a value in ITAB_ZCO_VALUE. I have defined a field-symbol &amp;lt;fs1&amp;gt; to get values KWBLOK_ME or KWBLHR_ME. And trying to read by write the code as: &lt;/P&gt;&lt;P&gt;get_value = EP_SOURCE-&amp;lt;fs1&amp;gt; or&lt;/P&gt;&lt;P&gt;Assign ep_source-&amp;lt;fs1&amp;gt; to get_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But because ep_source is not referenced to any structure I can't use any of the above statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 12:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536814#M244881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T12:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Read structure FIELD Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536815#M244882</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;Thanks a lot. &lt;/P&gt;&lt;P&gt;This Assign component statement solved my problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a Nice Day&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 12:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536815#M244882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T12:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Read structure FIELD Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536816#M244883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay, Naimesh, Richa:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to All. &lt;/P&gt;&lt;P&gt;I have got my code working now.&lt;/P&gt;&lt;P&gt;I was using ASSIGN statement only. Silly Me.&lt;/P&gt;&lt;P&gt;By using ASSIGN COMPONENT I got what I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks to All of YOU who replied to my post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 14:25:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-structure-field-dynamically/m-p/1536816#M244883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T14:25:16Z</dc:date>
    </item>
  </channel>
</rss>

