<?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: How to pass Object references to Remote Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-object-references-to-remote-function-module/m-p/8178524#M1623975</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;you may try to serialize/deserialize the instance (CALL TRANSFORMATION with the ID transformation), by defining IF_SERIALIZABLE_OBJECT interface at the class level, and you pass the serialized (x)string to the RFC-enabled function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2011 19:40:55 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2011-09-14T19:40:55Z</dc:date>
    <item>
      <title>How to pass Object references to Remote Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-object-references-to-remote-function-module/m-p/8178523#M1623974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Halo Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on an Perfomance Optimization project . I am trying to optimize the program by scehduling the individual methods inside the  program via asynchronous function modules . By this way I can run this independent  methods parallely ( and not sequentailly) . for eg &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the program has&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 me-&amp;gt;m1( ).

me-&amp;gt;m2( ).

me-&amp;gt;m3( )

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if m2 and m3 are independent of each other I schedule them parallely by &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'ZM2'
    STARTING NEW TASK 'FUNC1'
    DESTINATION 'NONE'
    CALLING ZCLASS=&amp;gt;set_flag_4_m2 ON END OF TASK.

CALL FUNCTION 'ZM3'
    STARTING NEW TASK 'FUNC2'
    DESTINATION 'NONE'
    CALLING ZCLASS=&amp;gt;set_flag_4_m3 ON END OF TASK.




  WAIT UNTIL l_m2_flag = 'X' AND
             l_m3_flag = 'X'.

  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is methods m2 and m3 are having lot of local methods which is not available in FM ZM2 and ZM3 . I am not able to pass the instance of the class ZCLASS also to this FMs( as type ref to is not allowed in Remote Function Module ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to do with shared memory area . When I tried that it says shared memory area tick is not possible for classes with event handler methods.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I have any option to pass the instance ZCLASS to Asynchronous  RFM ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arshad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 19:20:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-object-references-to-remote-function-module/m-p/8178523#M1623974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-14T19:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass Object references to Remote Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-object-references-to-remote-function-module/m-p/8178524#M1623975</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;you may try to serialize/deserialize the instance (CALL TRANSFORMATION with the ID transformation), by defining IF_SERIALIZABLE_OBJECT interface at the class level, and you pass the serialized (x)string to the RFC-enabled function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 19:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-object-references-to-remote-function-module/m-p/8178524#M1623975</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-09-14T19:40:55Z</dc:date>
    </item>
  </channel>
</rss>

