Hi Shai Eyal,<br><br>Please look at your FIND_BY_LPOR method implementation. <br><br>Try to use this code:<br><br>Create Object Result<br>    type (LPOR_TYPID)<br>exporting<br>    ip_key = LPOR_INSTID.    &quot;This is dynamic calling of class. Define the import parameter <br>
                                             IP_KEY in Constructor method of your class. From IP_KEY    <br>                                             populate the key attributes of class length wise.<br><br><br>Best Regards,<br>
Guru Dutt<br>IBM<br>SAP Business Workflow Consultant<br>Mobile : +91-9748445814<br><br><br><br><div class="gmail_quote">On Wed, Mar 10, 2010 at 10:35 PM,  <span dir="ltr">&lt;<a href="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Send SAP-WUG mailing list submissions to<br>
        <a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:sap-wug-owner@mit.edu">sap-wug-owner@mit.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of SAP-WUG digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: Instantiate class object type (Florin Wach)<br>
   2. Re: Instantiate class object type (Mike Pokraka)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 10 Mar 2010 15:47:29 +0100<br>
From: &quot;Florin Wach&quot; &lt;<a href="mailto:florin.wach@gmx.net">florin.wach@gmx.net</a>&gt;<br>
Subject: Re: Instantiate class object type<br>
To: &quot;SAP Workflow Users&#39; Group&quot; &lt;<a href="mailto:sap-wug@MIT.EDU">sap-wug@MIT.EDU</a>&gt;<br>
Message-ID: &lt;<a href="mailto:20100310144729.285820@gmx.net">20100310144729.285820@gmx.net</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hey,<br>
<br>
you&#39;ll need to implement the interface IF_WORKFLOW to get it work. Please search this Forum for Jocelyn&#39;s Whitepapter and Blog&#39;s reference where a full example is given for an implementation!<br>
<br>
Best wishes,<br>
Florin<br>
<br>
-------- Original-Nachricht --------<br>
&gt; Datum: Wed, 10 Mar 2010 06:45:15 -0800 (PST)<br>
&gt; Von: Shai Eyal &lt;<a href="mailto:shai.eyal@yahoo.com">shai.eyal@yahoo.com</a>&gt;<br>
&gt; An: sap-wug &lt;<a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a>&gt;<br>
&gt; Betreff: Instantiate class object type<br>
<br>
&gt; Hi all,<br>
&gt;<br>
&gt; This is?quite weird but I&#39;m probably missing something. I&#39;ve create a new<br>
&gt; class. Testing it?via SE24?works perfect for me.?However getting the<br>
&gt; object instant into the workflow does not work.<br>
&gt; My workflow starts with BOR object event and during the flow I would like<br>
&gt; to instantiate the class object type.<br>
&gt; I tried to?create a task that runs method CREATEINSTANCE. When I execute<br>
&gt; method CREATEINSTANCE via SE24 it returns the object correctly. However<br>
&gt; when?I execute it via task, the binding resolve with nothing.<br>
&gt;<br>
&gt; What am I missing?<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; ?<br>
&gt; Regards,<br>
&gt; Shai Eyal<br>
&gt; SAP Logistics senior consultant<br>
&gt; SAP Workflow &amp; BPM specialist<br>
&gt; <a href="http://www.linkedin.com/in/shaieyal" target="_blank">http://www.linkedin.com/in/shaieyal</a><br>
&gt; Mobile: 972-52-5816633<br>
&gt;<br>
&gt;<br>
&gt;       New Email names for you!<br>
&gt; Get the Email name you&amp;#39;ve always wanted on the new @ymail and<br>
&gt; @rocketmail.<br>
&gt; Hurry before someone else does!<br>
&gt; <a href="http://mail.promotions.yahoo.com/newdomains/aa/" target="_blank">http://mail.promotions.yahoo.com/newdomains/aa/</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 10 Mar 2010 15:41:16 -0000 (GMT)<br>
From: &quot;Mike Pokraka&quot; &lt;<a href="mailto:wug@workflowconnections.com">wug@workflowconnections.com</a>&gt;<br>
Subject: Re: Instantiate class object type<br>
To: &quot;SAP Workflow Users&#39; Group&quot; &lt;<a href="mailto:sap-wug@MIT.EDU">sap-wug@MIT.EDU</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:7103d5f02855ebd65ef38cfef34cdf8c.squirrel@g.mail.aaisp.net.uk">7103d5f02855ebd65ef38cfef34cdf8c.squirrel@g.mail.aaisp.net.uk</a>&gt;<br>
Content-Type: text/plain;charset=iso-8859-1<br>
<br>
This is usually a problem with the BI_PERSISTENT LPOR methods, but in your<br>
case there&#39;s no need for a task. Create a static functional method with<br>
your key as a parameter and use it directly in a step binding or container<br>
operation:<br>
&amp;MYOBJ_CL&amp;  &lt;=  %ZCL_MYOBJ.GET_INSTANCE( &amp;MYOBJ_BO.KEY&amp; )%<br>
<br>
<br>
On Wed, March 10, 2010 2:45 pm, Shai Eyal wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; This is?quite weird but I&#39;m probably missing something. I&#39;ve create a new<br>
&gt; class. Testing it?via SE24?works perfect for me.?However getting the<br>
&gt; object instant into the workflow does not work.<br>
&gt; My workflow starts with BOR object event and during the flow I would like<br>
&gt; to instantiate the class object type.<br>
&gt; I tried to?create a task that runs method CREATEINSTANCE. When I execute<br>
&gt; method CREATEINSTANCE via SE24 it returns the object correctly. However<br>
&gt; when?I execute it via task, the binding resolve with nothing.<br>
&gt;<br>
&gt; What am I missing?<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; ?<br>
&gt; Regards,<br>
&gt; Shai Eyal<br>
&gt; SAP Logistics senior consultant<br>
&gt; SAP Workflow &amp; BPM specialist<br>
&gt; <a href="http://www.linkedin.com/in/shaieyal" target="_blank">http://www.linkedin.com/in/shaieyal</a><br>
&gt; Mobile: 972-52-5816633<br>
&gt;<br>
&gt;<br>
&gt;       New Email names for you!<br>
&gt; Get the Email name you&amp;#39;ve always wanted on the new @ymail and<br>
&gt; @rocketmail.<br>
&gt; Hurry before someone else does!<br>
&gt; <a href="http://mail.promotions.yahoo.com/newdomains/aa/_______________________________________________" target="_blank">http://mail.promotions.yahoo.com/newdomains/aa/_______________________________________________</a><br>

&gt; SAP-WUG mailing list<br>
&gt; <a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
&gt; <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
&gt;<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
<a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
<br>
<br>
End of SAP-WUG Digest, Vol 64, Issue 21<br>
***************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Guru Dutt<br>Tel : +919748445814<br>Email : <a href="mailto:gurudutt.sap@gmail.com">gurudutt.sap@gmail.com</a><br>