<?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>Question Re: Dynamic Data Type declaration from Parameter value in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/dynamic-data-type-declaration-from-parameter-value/qaa-p/1299162#M561065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok....thanks for the answer but its time to make the question harder.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following code:&lt;/P&gt;&lt;P&gt;DATA: it_query_results TYPE REF TO data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER: prxy_cls(30).&lt;/P&gt;&lt;P&gt;CREATE DATA it_query_results TYPE STANDARD TABLE OF (prxy_cls).&lt;/P&gt;&lt;P&gt;ASSIGN it_query_results-&amp;gt;* TO &amp;lt;l_it_query_result&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....I do all sorts of processing with &amp;lt;l_it_query_result&amp;gt;.....then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD o_query_result-&amp;gt;execute_asynchronous&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;       output = &amp;lt;l_it_query_result&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only problem is method execute_asynchronous doesnt expect a type ref and only expects table type ZBWCOPA9030V00_QUERY_RESULT1...which is what I am entering in the parameter prxy_cls..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need help badly..&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 May 2006 16:04:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-03T16:04:04Z</dc:date>
    <item>
      <title>Dynamic Data Type declaration from Parameter value</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamic-data-type-declaration-from-parameter-value/qaq-p/1299159</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 have a silly question..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to dynamically declare a variable based on the contents of a parameter...like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables: RSDUPD.&lt;/P&gt;&lt;P&gt;Parameter: p_Daty like RSDUPD-DATU&lt;/P&gt;&lt;P&gt;Data: l_last_day like (p_Daty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 20:58:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamic-data-type-declaration-from-parameter-value/qaq-p/1299159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-02T20:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Data Type declaration from Parameter value</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamic-data-type-declaration-from-parameter-value/qaa-p/1299160#M561063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA l_last_day TYPE (p_daty).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 21:01:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamic-data-type-declaration-from-parameter-value/qaa-p/1299160#M561063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-02T21:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Data Type declaration from Parameter value</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamic-data-type-declaration-from-parameter-value/qaa-p/1299161#M561064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry,&lt;/P&gt;&lt;P&gt;insert this line before that:&lt;/P&gt;&lt;P&gt;Data: l_last_day type ref to data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 21:15:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamic-data-type-declaration-from-parameter-value/qaa-p/1299161#M561064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-02T21:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Data Type declaration from Parameter value</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamic-data-type-declaration-from-parameter-value/qaa-p/1299162#M561065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok....thanks for the answer but its time to make the question harder.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following code:&lt;/P&gt;&lt;P&gt;DATA: it_query_results TYPE REF TO data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER: prxy_cls(30).&lt;/P&gt;&lt;P&gt;CREATE DATA it_query_results TYPE STANDARD TABLE OF (prxy_cls).&lt;/P&gt;&lt;P&gt;ASSIGN it_query_results-&amp;gt;* TO &amp;lt;l_it_query_result&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....I do all sorts of processing with &amp;lt;l_it_query_result&amp;gt;.....then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD o_query_result-&amp;gt;execute_asynchronous&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;       output = &amp;lt;l_it_query_result&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only problem is method execute_asynchronous doesnt expect a type ref and only expects table type ZBWCOPA9030V00_QUERY_RESULT1...which is what I am entering in the parameter prxy_cls..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need help badly..&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 16:04:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamic-data-type-declaration-from-parameter-value/qaa-p/1299162#M561065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T16:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Data Type declaration from Parameter value</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamic-data-type-declaration-from-parameter-value/qaa-p/1299163#M561066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To the best of knowledge, if you are calling a function module or method, and that method expects the parameter/table of a particular type, then you have to stick to that type. In only one situation it could have worked had the method you are using been having parameter/table with no type attached. &lt;/P&gt;&lt;P&gt;So if you using issues facing issues with that field-symbol in case of calling function/method, just declare a parameter/table of that type, pass your data from the field-symbol to that and call the function/method.e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. DATA: t_temp_table type &amp;lt;whatever type the method  expects&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Pass data from &amp;lt;l_it_query_result&amp;gt; to t_temp_table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Call method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For all other purposes internal to your program, the field-symbol &amp;lt;l_it_query_result&amp;gt; should work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 18:55:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamic-data-type-declaration-from-parameter-value/qaa-p/1299163#M561066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T18:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Data Type declaration from Parameter value</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamic-data-type-declaration-from-parameter-value/qaa-p/1299164#M561067</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;As the specific PROXY / function expects parameter of a specific type there is not much we can do there. What you can do, is to declare a variable of the same type as that of the PROXY parameter, move the value of the dynamic vairable into that and then pass that variable to the PROXY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2006 03:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamic-data-type-declaration-from-parameter-value/qaa-p/1299164#M561067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-04T03:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Data Type declaration from Parameter value</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamic-data-type-declaration-from-parameter-value/qaa-p/1299165#M561068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  I have resorted to writing different programs for different proxy classes.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to get the name of the proxy class as varible and then exceute the appropriate ones....but because of the type casting problems it seems that all I can do is do data declaration for all the classes and then use case statement to choose the right one based on the parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On top of this there is the issue with the class parameter which expects a specific data type so I will have to follow the same logic as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So its no use....I finally written different programs for different proxy classes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 15:00:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamic-data-type-declaration-from-parameter-value/qaa-p/1299165#M561068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T15:00:23Z</dc:date>
    </item>
  </channel>
</rss>

