<?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 Dynamic data type declaration with series in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-type-declaration-with-series/m-p/12149076#M1976838</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;Can someone help me, is it possible to declare a variable dynamically?&lt;/P&gt;
  &lt;P&gt;I am just trying out this way but getting syntax error.&lt;BR /&gt;actual declaration is like, &lt;BR /&gt;data: lt_itab type /someNameSpace/some_table_name_1_k. (here this type has 1 to 14). I just want to replace this 1 dynamically &lt;/P&gt;
  &lt;P&gt;" data: lv_str(30) type c,&lt;BR /&gt; lv_type(30) type c,&lt;BR /&gt; lv_num typ n.&lt;/P&gt;
  &lt;P&gt; lv_str = '/someNameSpace/some_table_name_'. &lt;/P&gt;
  &lt;P&gt; lv_num = ls_var-nr_dimensions.&lt;/P&gt;
  &lt;P&gt; CONCATENATE lv_str lv_num '_k' INTO lv_type. &lt;/P&gt;
  &lt;P&gt; DATA lt_tab TYPE lv_type. "gives syntax error lv_type unknown?&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;BR /&gt;Mohammed &lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2020 16:27:59 GMT</pubDate>
    <dc:creator>mohammedsarvar_ka</dc:creator>
    <dc:date>2020-01-16T16:27:59Z</dc:date>
    <item>
      <title>Dynamic data type declaration with series</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-type-declaration-with-series/m-p/12149076#M1976838</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;Can someone help me, is it possible to declare a variable dynamically?&lt;/P&gt;
  &lt;P&gt;I am just trying out this way but getting syntax error.&lt;BR /&gt;actual declaration is like, &lt;BR /&gt;data: lt_itab type /someNameSpace/some_table_name_1_k. (here this type has 1 to 14). I just want to replace this 1 dynamically &lt;/P&gt;
  &lt;P&gt;" data: lv_str(30) type c,&lt;BR /&gt; lv_type(30) type c,&lt;BR /&gt; lv_num typ n.&lt;/P&gt;
  &lt;P&gt; lv_str = '/someNameSpace/some_table_name_'. &lt;/P&gt;
  &lt;P&gt; lv_num = ls_var-nr_dimensions.&lt;/P&gt;
  &lt;P&gt; CONCATENATE lv_str lv_num '_k' INTO lv_type. &lt;/P&gt;
  &lt;P&gt; DATA lt_tab TYPE lv_type. "gives syntax error lv_type unknown?&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;BR /&gt;Mohammed &lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 16:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-type-declaration-with-series/m-p/12149076#M1976838</guid>
      <dc:creator>mohammedsarvar_ka</dc:creator>
      <dc:date>2020-01-16T16:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data type declaration with series</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-type-declaration-with-series/m-p/12149077#M1976839</link>
      <description>&lt;P&gt;See &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abapcreate_data_built_in.htm"&gt;ABAP documentation of CREATE DATA&lt;/A&gt;.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: dref TYPE REF TO DATA.

CREATE DATA dref TYPE (lv_type).
ASSIGN dref-&amp;gt;* TO FIELD-SYMBOL(&amp;lt;fs&amp;gt;).
...&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Jan 2020 16:50:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-type-declaration-with-series/m-p/12149077#M1976839</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-01-16T16:50:05Z</dc:date>
    </item>
  </channel>
</rss>

