<?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: Determining a variable name during runtime in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/determining-a-variable-name-during-runtime/m-p/1257893#M146759</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'm given a from date and to date range such as 03.2006 to 10.2006.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this date range I need to select from MVER to obtain material consumption history. I then need to sum the quantity for periods 3 to 10 i.e. from MVER-GSV03 to MVER-GSV10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So by first selecting the record in a structure ST_MVER we then use the following syntax to 'loop' through all 13 periods (GSV01 to GVS13) and summing them up but only for thos periods chosen i.e. period 3 to 10, not 1 to 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do 10 times varying l_temp&lt;/P&gt;&lt;P&gt;            from mver-gsv01&lt;/P&gt;&lt;P&gt;            next mver-gsv02.&lt;/P&gt;&lt;P&gt;  if current &amp;lt;l_temp period&amp;gt; is greate or equal to from period (3) and less than to period (10).&lt;/P&gt;&lt;P&gt;  sum it up.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Apr 2006 04:44:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-07T04:44:07Z</dc:date>
    <item>
      <title>Determining a variable name during runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determining-a-variable-name-during-runtime/m-p/1257891#M146757</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;I need to determine the name of a variable during runtime. For example L_TEMP (type i) contains value 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During runtime we know the value is 10 but I&amp;#146;m more interested in obtaining the name &amp;#145;L_TEMP&amp;#146; and assigning it to another variable of type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the name to compare it against another value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A reason on why I need this is when using the following syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do 10 times varying l_temp&lt;/P&gt;&lt;P&gt;            from mver-gsv01&lt;/P&gt;&lt;P&gt;            next mver-gsv02.&lt;/P&gt;&lt;P&gt;&amp;lt;whatever code&amp;gt; ...&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to keep track of which field in MVER is being processed within the DO loop ie. GSV01, GSV02, GVS03 ... etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help would be appreciated and points rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Liam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 04:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determining-a-variable-name-during-runtime/m-p/1257891#M146757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-07T04:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Determining a variable name during runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determining-a-variable-name-during-runtime/m-p/1257892#M146758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Liam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think that will be possible. However, can you explain a little more, with the code you have, your requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure we will be able to process the data without knowing the name of the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 04:34:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determining-a-variable-name-during-runtime/m-p/1257892#M146758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-07T04:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Determining a variable name during runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determining-a-variable-name-during-runtime/m-p/1257893#M146759</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'm given a from date and to date range such as 03.2006 to 10.2006.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this date range I need to select from MVER to obtain material consumption history. I then need to sum the quantity for periods 3 to 10 i.e. from MVER-GSV03 to MVER-GSV10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So by first selecting the record in a structure ST_MVER we then use the following syntax to 'loop' through all 13 periods (GSV01 to GVS13) and summing them up but only for thos periods chosen i.e. period 3 to 10, not 1 to 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do 10 times varying l_temp&lt;/P&gt;&lt;P&gt;            from mver-gsv01&lt;/P&gt;&lt;P&gt;            next mver-gsv02.&lt;/P&gt;&lt;P&gt;  if current &amp;lt;l_temp period&amp;gt; is greate or equal to from period (3) and less than to period (10).&lt;/P&gt;&lt;P&gt;  sum it up.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 04:44:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determining-a-variable-name-during-runtime/m-p/1257893#M146759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-07T04:44:07Z</dc:date>
    </item>
  </channel>
</rss>

