<?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 variable name in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variable-name/m-p/9677723#M1766859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sreedhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this was just an example i gave for time.&lt;/P&gt;&lt;P&gt;assume I need to create variable on the fly for GL accounts.&lt;/P&gt;&lt;P&gt;user can enter data in any number of GL accounts, then I just have these all GL account together in one string seperated by ','.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie GL001,GL005,GL0056,GL0089&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to store these individual GL's in dynamically created 4 variables.&lt;/P&gt;&lt;P&gt;I want to know how to create these variable if number of accounts is not known.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Aug 2013 21:02:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-08-20T21:02:20Z</dc:date>
    <item>
      <title>Dynamic variable name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variable-name/m-p/9677721#M1766857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create variable names dynamically in my program.&lt;/P&gt;&lt;P&gt;i know what should be the type of my variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: I want to create variable of pattern time.001, time.002, time.003 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i get values 001, 002 from one of my source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I loop that source,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_table.&lt;/P&gt;&lt;P&gt;wa_table-period holds this number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i want to concatenate that number(001) with time and use this time.001 as a variable for further calculations.&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;this time.001 then time.002 should have type c length 7 and should be able to store values in those variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want this variables are seperate and not in any internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in short, data: time.001(7) type c,&lt;/P&gt;&lt;P&gt;time.002(7) type c. needs to be created dynamically in program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please&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;Sonali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 16:02:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variable-name/m-p/9677721#M1766857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-20T16:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variable name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variable-name/m-p/9677722#M1766858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sonali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this instead of creating variables dynamically, you can make use of field symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;loop at it_table into wa_table.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONCATENATE 'TIME' wa_table-period into lv_temp.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ASSIGN (lv_temp) to &amp;lt;fs_time&amp;gt;.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now &amp;lt;fs_time&amp;gt; holds time001(if wa_table-period is 001). Whenever you want to use time001, you can use field symbol &amp;lt;fs_time&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Sreedhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 16:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variable-name/m-p/9677722#M1766858</guid>
      <dc:creator>chittari_sreedhar</dc:creator>
      <dc:date>2013-08-20T16:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variable name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variable-name/m-p/9677723#M1766859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sreedhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this was just an example i gave for time.&lt;/P&gt;&lt;P&gt;assume I need to create variable on the fly for GL accounts.&lt;/P&gt;&lt;P&gt;user can enter data in any number of GL accounts, then I just have these all GL account together in one string seperated by ','.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie GL001,GL005,GL0056,GL0089&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to store these individual GL's in dynamically created 4 variables.&lt;/P&gt;&lt;P&gt;I want to know how to create these variable if number of accounts is not known.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 21:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variable-name/m-p/9677723#M1766859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-20T21:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variable name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variable-name/m-p/9677724#M1766860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sonali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz refer : &lt;A _jive_internal="true" href="https://answers.sap.com/thread/853522" title="http://scn.sap.com/thread/853522"&gt;http://scn.sap.com/thread/853522&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 05:06:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variable-name/m-p/9677724#M1766860</guid>
      <dc:creator>sandeep_ramesh88</dc:creator>
      <dc:date>2013-08-21T05:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variable name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variable-name/m-p/9677725#M1766861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sonali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with these following&amp;nbsp; links. May be you got some idea to get rid of your problem &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1735/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://answers.sap.com/thread/1823076" title="http://scn.sap.com/thread/1823076"&gt;http://scn.sap.com/thread/1823076&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="https://www.google.co.in/search?q=Dynamic+variable+name+in+sap+site:scn.sap.com&amp;amp;biw=1920&amp;amp;bih=950" title="https://www.google.co.in/search?q=Dynamic+variable+name+in+sap+site:scn.sap.com&amp;amp;biw=1920&amp;amp;bih=950"&gt;https://www.google.co.in/search?q=Dynamic+variable+name+in+sap+site:scn.sap.com&amp;amp;biw=1920&amp;amp;bih=950&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Chandra..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 05:28:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-variable-name/m-p/9677725#M1766861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-21T05:28:37Z</dc:date>
    </item>
  </channel>
</rss>

