<?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: CAST with deep structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cast-with-deep-structure/m-p/9453627#M1741732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have differente parameters, I need do a CAST for deep structure, something like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;lt;fs_output&amp;gt; =&amp;nbsp; wl_output1-mt_confirma_proc_palete_transf-num_id &lt;STRONG&gt;CASTING TYPE (str_ty_deep_structure).&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this code return a Illegal casting...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 May 2013 11:17:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-05-13T11:17:48Z</dc:date>
    <item>
      <title>CAST with deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cast-with-deep-structure/m-p/9453624#M1741729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: arial, sans-serif;"&gt;I'm trying to do a generic code but I'm having trouble with deep structure, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;I have different class with different deep structure exporting parameters,&lt;SPAN style="font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: arial, sans-serif;"&gt;It is possible to do a "CASTING" with deep structure? Or have another way to solve my problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: arial, sans-serif;"&gt;Here is the problem:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; FIELD-SYMBOLS: &amp;lt;fs_output&amp;gt; TYPE ANY.&lt;BR /&gt;&amp;nbsp; DATA: obj_class TYPE REF TO object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREATE OBJECT obj_class TYPE (str_proxy).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fs_output&amp;gt; =&amp;nbsp; wl_output1-mt_confirma_proc_palete_transf-num_id .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL METHOD obj_class-&amp;gt;(str_method)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;output = &amp;lt;fs_output&amp;gt;. &lt;/STRONG&gt;&lt;/SPAN&gt; "--&amp;gt; CX_SY_DYN_CALL_ILLEGAL_TYPE&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 May 2013 20:42:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cast-with-deep-structure/m-p/9453624#M1741729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-12T20:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: CAST with deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cast-with-deep-structure/m-p/9453625#M1741730</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 think the parameters passing can't be generic in nature in OO ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 May 2013 22:36:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cast-with-deep-structure/m-p/9453625#M1741730</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-05-12T22:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: CAST with deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cast-with-deep-structure/m-p/9453626#M1741731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think you have different parameters in the method that you calling and the type of field symbol. Make sure that the type of output is ANY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 05:24:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cast-with-deep-structure/m-p/9453626#M1741731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-13T05:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: CAST with deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cast-with-deep-structure/m-p/9453627#M1741732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have differente parameters, I need do a CAST for deep structure, something like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;lt;fs_output&amp;gt; =&amp;nbsp; wl_output1-mt_confirma_proc_palete_transf-num_id &lt;STRONG&gt;CASTING TYPE (str_ty_deep_structure).&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this code return a Illegal casting...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 11:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cast-with-deep-structure/m-p/9453627#M1741732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-13T11:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: CAST with deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cast-with-deep-structure/m-p/9453628#M1741733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When dynamically calling methods you must use parameter table instead of exporting/importing. Refer to online help for call method (&amp;lt;f1&amp;gt;) and this doco: &lt;A href="http://help.sap.com/abapdocu_70/en/ABAPCALL_METHOD_SHORTREF.htm" title="http://help.sap.com/abapdocu_70/en/ABAPCALL_METHOD_SHORTREF.htm"&gt;http://help.sap.com/abapdocu_70/en/ABAPCALL_METHOD_SHORTREF.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Custodio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 01:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cast-with-deep-structure/m-p/9453628#M1741733</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2013-05-14T01:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: CAST with deep structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cast-with-deep-structure/m-p/9453629#M1741734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have given a link on field symbol casting refer to that, you may get some ideas of casting and where you going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/docs/DOC-22613"&gt;http://scn.sap.com/docs/DOC-22613&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 08:29:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cast-with-deep-structure/m-p/9453629#M1741734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-14T08:29:17Z</dc:date>
    </item>
  </channel>
</rss>

