<?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: Create variable with dynamic NAME in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542446#M1752090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if this helps &lt;A __default_attr="2092888" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://community.sap.com/"&gt;&lt;/A&gt;, Any value you pass to varname, the variable of that name is created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jul 2013 05:09:55 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2013-07-05T05:09:55Z</dc:date>
    <item>
      <title>Create variable with dynamic NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542441#M1752085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The task is to create variable with dynamic name. NOT type(!) but namу! All the ways using cl_abap_typedescr and cl_abap_elemdescr classes that I saw are useless.&lt;/P&gt;&lt;P&gt;I want to implement something like this semantically:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREATE DATA (name) TYPE var_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this syntax is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 17:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542441#M1752085</guid>
      <dc:creator>Astashonok</dc:creator>
      <dc:date>2013-07-03T17:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable with dynamic NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542442#M1752086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this out - &lt;A href="https://scn.sap.com/thread/53598"&gt;https://scn.sap.com/thread/53598&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 18:18:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542442#M1752086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-03T18:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable with dynamic NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542443#M1752087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create an internal table with two columns - ID &amp;amp; DATA. In ID, track the name of the object and in DATA, have the data reference of the object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this would keep track of your data objects with the ID and also create different data objects with different types.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;TYPES&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;ty_objs&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;id &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;char10&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;data &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;data&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;ty_objs&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;t_objs &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STANDARD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;ty_objs&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;ls_obj &lt;SPAN class="L0S52"&gt;LIKE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;t_objs&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lv_type &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;string&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;DO &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;5 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TIMES&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ls_obj&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;id &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;index&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; lv_type &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;index&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CONDENSE &lt;/SPAN&gt;lv_type&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CONCATENATE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'CHAR' &lt;/SPAN&gt;lv_type &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;lv_type&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CREATE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;ls_obj&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;data &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;lv_type&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;APPEND &lt;/SPAN&gt;ls_obj &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;t_objs&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;ENDDO&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'done'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, question is why do you need dynamic name of the variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 21:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542443#M1752087</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2013-07-03T21:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable with dynamic NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542444#M1752088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a user requirement. I saw the post which suggested Ankit but it's not the same.&lt;/P&gt;&lt;P&gt;As i see this is impossible. Is it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 07:33:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542444#M1752088</guid>
      <dc:creator>Astashonok</dc:creator>
      <dc:date>2013-07-04T07:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable with dynamic NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542445#M1752089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not verify the solution there, just saw it answered and posted here. &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1581/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Found this but its not dynamic it promotes reusability -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;define &lt;/SPAN&gt;test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data:&amp;amp;1(&amp;amp;2) &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;c.&lt;/P&gt;&lt;P&gt; end-of-definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; test name1 &lt;SPAN class="L0S32"&gt;3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; test name2 &lt;SPAN class="L0S32"&gt;5.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; decalres 2 variables name1 and name2.&lt;/P&gt;&lt;P&gt;-&amp;gt; See if you can play with these names and make them dynamic somehow ( i tried couldn't get it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS : Thanks to &lt;A _jive_internal="true" href="https://answers.sap.com/people/kesavadas.thekkillath" style="font-weight: bold; font-style: inherit; font-family: inherit; color: #3778c7; text-decoration: underline !important;"&gt;Kesavadas Thekkillath&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ankit Maskara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 13:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542445#M1752089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-04T13:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable with dynamic NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542446#M1752090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if this helps &lt;A __default_attr="2092888" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://community.sap.com/"&gt;&lt;/A&gt;, Any value you pass to varname, the variable of that name is created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 05:09:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542446#M1752090</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2013-07-05T05:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable with dynamic NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542447#M1752091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Kesavadas Thekkillath wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if this helps &lt;A _jive_internal="true" href="https://answers.sap.com/thread/2092888"&gt;Dynamic Variable Declaration&lt;/A&gt;, Any value you pass to varname, the variable of that name is created.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Maybe I'm newbie but in your solution I saw nothing but declaring field-symbol with name &amp;lt;varname&amp;gt; as name of the selection-screen parameter. Debugger doesn't lie. Maybe it should be so (field-symbol with the name passed to SSC parameter) but it doesn't.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 05:48:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542447#M1752091</guid>
      <dc:creator>Astashonok</dc:creator>
      <dc:date>2013-07-05T05:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable with dynamic NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542448#M1752092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you could explain you requirement clearly, may be we could help you. :-), What is the exact need for dynamic variable name ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 06:43:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542448#M1752092</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2013-07-05T06:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable with dynamic NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542449#M1752093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is user requrement - he wants to name variables similar to table names due to usability.&lt;/P&gt;&lt;P&gt;MARA - ZMARA&lt;/P&gt;&lt;P&gt;MAKT - ZMAKT&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;I wondering if it is technically possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 07:04:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542449#M1752093</guid>
      <dc:creator>Astashonok</dc:creator>
      <dc:date>2013-07-05T07:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable with dynamic NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542450#M1752094</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;That's called naming conventions and it's something you have to respect while coding &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1581/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A variable gets a name &lt;SPAN style="font-size: 10pt;"&gt;before you compile.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 13:45:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542450#M1752094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-05T13:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable with dynamic NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542451#M1752095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to everybody. I guess that it's impossible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 05:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542451#M1752095</guid>
      <dc:creator>Astashonok</dc:creator>
      <dc:date>2013-07-25T05:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable with dynamic NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542452#M1752096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you thought about using structures? i.e. if the variable is to be named after tables, then you could in theory dynamically generate a structure and then describe the structure getting its name. Something like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;FIELD-SYMBOLS&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&amp;lt;fs_structure&amp;gt; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;any&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fs_comp&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;abap_compdescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CREATE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;lv_ref &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;ls_file_contents&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;structure_name&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ASSIGN &lt;/SPAN&gt;lv_ref&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&amp;lt;fs_structure&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; lcl_descr_ref ?= cl_abap_typedescr&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;describe_by_name&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&amp;lt;fs_structure&amp;gt; &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Doing this you would be able to discover which table you are working with and you would be able to do things such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;fs_structure&amp;gt;-MATNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;fs_structure&amp;gt; is MARA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Beyond this, short of writing an ABAP generator and then compiling the code on the fly I cannot see how you can go further than this. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not really sure if this helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 09:47:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542452#M1752096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-19T09:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable with dynamic NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542453#M1752097</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;Some how I am a little puzzled about "This is user requirement" .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my experience I never encounter a user who dictate to me how the internal of a program should be written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are concern with input parameter, business logic, good performance ,Output layout and the reliably of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you shed some light on the situation in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dynamic tables are solution not requirements .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some how people tends to come out with complex solutions to simple problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Complex solutions are expensive !!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the real requirement in this case ? (like Kesavadas Thekkillath ask for)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 10:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542453#M1752097</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2013-09-19T10:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable with dynamic NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542454#M1752098</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 concur with Eitan. This can hardly be called a user requirement, it doesnt have any business merit to my knowledge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What prompted the user to came up with this question? Or in other words what are the business requirements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Rob Dielemans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 10:28:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542454#M1752098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-19T10:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable with dynamic NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542455#M1752099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I absolutely agree with you - this is a silly user requirement and a silly user. Now the problem is eliminated. Thanks to everybody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 05:30:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542455#M1752099</guid>
      <dc:creator>Astashonok</dc:creator>
      <dc:date>2013-09-20T05:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable with dynamic NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542456#M1752100</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 hope that you did not eliminate the user......&lt;/P&gt;&lt;P&gt;Somehow we still needs them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 05:41:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542456#M1752100</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2013-09-20T05:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create variable with dynamic NAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542457#M1752101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ha-ha)) Yes, still need. But only some of them&lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1795/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 07:55:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-variable-with-dynamic-name/m-p/9542457#M1752101</guid>
      <dc:creator>Astashonok</dc:creator>
      <dc:date>2013-09-20T07:55:03Z</dc:date>
    </item>
  </channel>
</rss>

