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. "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"><<a href="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</a>></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 'help' 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 "Re: Contents of SAP-WUG digest..."<br>
<br>
<br>
Today'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: "Florin Wach" <<a href="mailto:florin.wach@gmx.net">florin.wach@gmx.net</a>><br>
Subject: Re: Instantiate class object type<br>
To: "SAP Workflow Users' Group" <<a href="mailto:sap-wug@MIT.EDU">sap-wug@MIT.EDU</a>><br>
Message-ID: <<a href="mailto:20100310144729.285820@gmx.net">20100310144729.285820@gmx.net</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hey,<br>
<br>
you'll need to implement the interface IF_WORKFLOW to get it work. Please search this Forum for Jocelyn's Whitepapter and Blog's reference where a full example is given for an implementation!<br>
<br>
Best wishes,<br>
Florin<br>
<br>
-------- Original-Nachricht --------<br>
> Datum: Wed, 10 Mar 2010 06:45:15 -0800 (PST)<br>
> Von: Shai Eyal <<a href="mailto:shai.eyal@yahoo.com">shai.eyal@yahoo.com</a>><br>
> An: sap-wug <<a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a>><br>
> Betreff: Instantiate class object type<br>
<br>
> Hi all,<br>
><br>
> This is?quite weird but I'm probably missing something. I've create a new<br>
> class. Testing it?via SE24?works perfect for me.?However getting the<br>
> object instant into the workflow does not work.<br>
> My workflow starts with BOR object event and during the flow I would like<br>
> to instantiate the class object type.<br>
> I tried to?create a task that runs method CREATEINSTANCE. When I execute<br>
> method CREATEINSTANCE via SE24 it returns the object correctly. However<br>
> when?I execute it via task, the binding resolve with nothing.<br>
><br>
> What am I missing?<br>
><br>
> Thanks,<br>
><br>
> ?<br>
> Regards,<br>
> Shai Eyal<br>
> SAP Logistics senior consultant<br>
> SAP Workflow & BPM specialist<br>
> <a href="http://www.linkedin.com/in/shaieyal" target="_blank">http://www.linkedin.com/in/shaieyal</a><br>
> Mobile: 972-52-5816633<br>
><br>
><br>
> New Email names for you!<br>
> Get the Email name you&#39;ve always wanted on the new @ymail and<br>
> @rocketmail.<br>
> Hurry before someone else does!<br>
> <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: "Mike Pokraka" <<a href="mailto:wug@workflowconnections.com">wug@workflowconnections.com</a>><br>
Subject: Re: Instantiate class object type<br>
To: "SAP Workflow Users' Group" <<a href="mailto:sap-wug@MIT.EDU">sap-wug@MIT.EDU</a>><br>
Message-ID:<br>
<<a href="mailto:7103d5f02855ebd65ef38cfef34cdf8c.squirrel@g.mail.aaisp.net.uk">7103d5f02855ebd65ef38cfef34cdf8c.squirrel@g.mail.aaisp.net.uk</a>><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'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>
&MYOBJ_CL& <= %ZCL_MYOBJ.GET_INSTANCE( &MYOBJ_BO.KEY& )%<br>
<br>
<br>
On Wed, March 10, 2010 2:45 pm, Shai Eyal wrote:<br>
> Hi all,<br>
><br>
> This is?quite weird but I'm probably missing something. I've create a new<br>
> class. Testing it?via SE24?works perfect for me.?However getting the<br>
> object instant into the workflow does not work.<br>
> My workflow starts with BOR object event and during the flow I would like<br>
> to instantiate the class object type.<br>
> I tried to?create a task that runs method CREATEINSTANCE. When I execute<br>
> method CREATEINSTANCE via SE24 it returns the object correctly. However<br>
> when?I execute it via task, the binding resolve with nothing.<br>
><br>
> What am I missing?<br>
><br>
> Thanks,<br>
><br>
> ?<br>
> Regards,<br>
> Shai Eyal<br>
> SAP Logistics senior consultant<br>
> SAP Workflow & BPM specialist<br>
> <a href="http://www.linkedin.com/in/shaieyal" target="_blank">http://www.linkedin.com/in/shaieyal</a><br>
> Mobile: 972-52-5816633<br>
><br>
><br>
> New Email names for you!<br>
> Get the Email name you&#39;ve always wanted on the new @ymail and<br>
> @rocketmail.<br>
> Hurry before someone else does!<br>
> <a href="http://mail.promotions.yahoo.com/newdomains/aa/_______________________________________________" target="_blank">http://mail.promotions.yahoo.com/newdomains/aa/_______________________________________________</a><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>
<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>