<?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: Refer to a variable via another variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refer-to-a-variable-via-another-variable/m-p/1695708#M305234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2008 05:45:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-15T05:45:35Z</dc:date>
    <item>
      <title>Refer to a variable via another variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refer-to-a-variable-via-another-variable/m-p/1695705#M305231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a structure with many fields eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begin of struc&lt;/P&gt;&lt;P&gt;  field01&lt;/P&gt;&lt;P&gt;  field02&lt;/P&gt;&lt;P&gt;  fieldnn&lt;/P&gt;&lt;P&gt;end of struc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then work out a variable to get to one field in struc  eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate 'struc-field' lv_num into lv_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(lv_temp now has 'struc-field15' in it as a value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move '12345' to lv_temp.   (where I want the value 12345 to end up in struc-field15 not in lv_temp).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 23:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refer-to-a-variable-via-another-variable/m-p/1695705#M305231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T23:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to a variable via another variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refer-to-a-variable-via-another-variable/m-p/1695706#M305232</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;Use field-symbols ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN (LV_TEMP) TO &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;FS&amp;gt; = '1234'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working example..&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------" /&gt;&lt;P&gt;data: begin of struc,&lt;/P&gt;&lt;P&gt;       field1(10),&lt;/P&gt;&lt;P&gt;      end of struc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lv_temp type char30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_temp = 'STRUC-FIELD1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN (LV_TEMP) TO &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;FS&amp;gt; = '1234'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / STRUC-FIELD1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Narendran Muthukumaran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 23:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refer-to-a-variable-via-another-variable/m-p/1695706#M305232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T23:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to a variable via another variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refer-to-a-variable-via-another-variable/m-p/1695707#M305233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Narendran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using field symbols but was missing the brackets around lv_temp, so I couldnt get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points awared.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2006 00:02:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refer-to-a-variable-via-another-variable/m-p/1695707#M305233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-10T00:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to a variable via another variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refer-to-a-variable-via-another-variable/m-p/1695708#M305234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 05:45:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refer-to-a-variable-via-another-variable/m-p/1695708#M305234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T05:45:35Z</dc:date>
    </item>
  </channel>
</rss>

