<?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: Method call with local variable &amp;quot;type ref to data&amp;quot; in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/method-call-with-local-variable-quot-type-ref-to-data-quot/qaa-p/9047634#M3210648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the reply. Yes i did the reverse eingineering. You are right, the standard uses the parameter to determine the table type and then creates a internal table of that type. &lt;/P&gt;&lt;P&gt;I wanted a method that is fully dynamic, but that is not possible &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1023/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ioan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Oct 2012 08:21:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-10-04T08:21:38Z</dc:date>
    <item>
      <title>Method call with local variable "type ref to data"</title>
      <link>https://community.sap.com/t5/technology-q-a/method-call-with-local-variable-quot-type-ref-to-data-quot/qaq-p/9047631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am calling a method that has one exporting parameter with type ANY TABLE.&lt;/P&gt;&lt;P&gt;My problem is that abap won't let me activate the code because of the incompatible actual parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data: lt_dynamic &lt;SPAN class="L0S52"&gt;type &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&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; lo_node &lt;SPAN class="L0S52"&gt;type &lt;SPAN class="L0S52"&gt;ref &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;to &lt;/SPAN&gt;if_wd_context_node&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;field-symbols&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&amp;lt;ls_dynamic&amp;gt; &lt;SPAN class="L0S52"&gt;type any table.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp; create data lt_dynamic type ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lo_node&lt;SPAN class="L0S70"&gt;-&amp;gt;get_static_attributes_table&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;importing &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lt_dynamic &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. &amp;lt;-- not activating&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lo_node&lt;SPAN class="L0S70"&gt;-&amp;gt;get_static_attributes_table&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;importing &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &amp;lt;&lt;/SPAN&gt;lt_dynamic&amp;gt; &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. &amp;lt;-- activating but the field symbol is not assigned&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="L0S55"&gt;I need the reference of the table "table" of the method "get_static_attributes_table" in this example.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="L0S55"&gt;Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="L0S55"&gt;Ioan.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 11:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/method-call-with-local-variable-quot-type-ref-to-data-quot/qaq-p/9047631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-24T11:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Method call with local variable "type ref to data"</title>
      <link>https://community.sap.com/t5/technology-q-a/method-call-with-local-variable-quot-type-ref-to-data-quot/qaa-p/9047632#M3210646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just found out, what i am trying i not possible. The method GET_STATIC_ATTRIBUTES_TABLE also uses the exporting parameter to determine the type of the table &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1011/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;And generally i don't think that this is possible. The &amp;lt;lt_dynamic&amp;gt; field symbol has to be assigned and for that you need a variable/memory area, that can store any table. I don't have too much time now to look but in my opinion is not possible ... for now at least &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1011/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 11:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/method-call-with-local-variable-quot-type-ref-to-data-quot/qaa-p/9047632#M3210646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-24T11:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Method call with local variable "type ref to data"</title>
      <link>https://community.sap.com/t5/technology-q-a/method-call-with-local-variable-quot-type-ref-to-data-quot/qaa-p/9047633#M3210647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're correct that you can't create &amp;amp; assign a field of type 'ANY TABLE'. You have to know what type of data to create, and then assign it to your field symbol. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a quick where-used on the interface of that method, and it looks like the type of that table depends on the element which that node represents. So for example when the node has name 'EXTR_SELECT_TABLE' the type of the table passed into the method is if_main_view&lt;SPAN class="L0S70"&gt;=&amp;gt;element_extr_select_table. It appears that each application will know the proper type for the element node that it's working with, so I think you'll need to roll up your sleeves and do some reverse-engineering to find out what type your table needs to be. The good news is if you're only working with a single static element node, you can just declare your table of the correct type using the DATA keyword. You won't have to use pointers/field symbols/references. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 18:54:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/method-call-with-local-variable-quot-type-ref-to-data-quot/qaa-p/9047633#M3210647</guid>
      <dc:creator>alex_campbell</dc:creator>
      <dc:date>2012-10-01T18:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Method call with local variable "type ref to data"</title>
      <link>https://community.sap.com/t5/technology-q-a/method-call-with-local-variable-quot-type-ref-to-data-quot/qaa-p/9047634#M3210648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the reply. Yes i did the reverse eingineering. You are right, the standard uses the parameter to determine the table type and then creates a internal table of that type. &lt;/P&gt;&lt;P&gt;I wanted a method that is fully dynamic, but that is not possible &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1023/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ioan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 08:21:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/method-call-with-local-variable-quot-type-ref-to-data-quot/qaa-p/9047634#M3210648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-04T08:21:38Z</dc:date>
    </item>
  </channel>
</rss>

