Instantiate class object type

Guru Dutt gurudutt.sap at gmail.com
Wed Mar 10 13:22:37 EST 2010


Hi Shai Eyal,

Please look at your FIND_BY_LPOR method implementation.

Try to use this code:

Create Object Result
    type (LPOR_TYPID)
exporting
    ip_key = LPOR_INSTID.    "This is dynamic calling of class. Define the
import parameter
                                             IP_KEY in Constructor method of
your class. From IP_KEY
                                             populate the key attributes of
class length wise.


Best Regards,
Guru Dutt
IBM
SAP Business Workflow Consultant
Mobile : +91-9748445814



On Wed, Mar 10, 2010 at 10:35 PM, <sap-wug-request at mit.edu> wrote:

> Send SAP-WUG mailing list submissions to
>        sap-wug at mit.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://mailman.mit.edu/mailman/listinfo/sap-wug
> or, via email, send a message with subject or body 'help' to
>        sap-wug-request at mit.edu
>
> You can reach the person managing the list at
>        sap-wug-owner at mit.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of SAP-WUG digest..."
>
>
> Today's Topics:
>
>   1. Re: Instantiate class object type (Florin Wach)
>   2. Re: Instantiate class object type (Mike Pokraka)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 10 Mar 2010 15:47:29 +0100
> From: "Florin Wach" <florin.wach at gmx.net>
> Subject: Re: Instantiate class object type
> To: "SAP Workflow Users' Group" <sap-wug at MIT.EDU>
> Message-ID: <20100310144729.285820 at gmx.net>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hey,
>
> 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!
>
> Best wishes,
> Florin
>
> -------- Original-Nachricht --------
> > Datum: Wed, 10 Mar 2010 06:45:15 -0800 (PST)
> > Von: Shai Eyal <shai.eyal at yahoo.com>
> > An: sap-wug <sap-wug at mit.edu>
> > Betreff: Instantiate class object type
>
> > Hi all,
> >
> > This is?quite weird but I'm probably missing something. I've create a new
> > class. Testing it?via SE24?works perfect for me.?However getting the
> > object instant into the workflow does not work.
> > My workflow starts with BOR object event and during the flow I would like
> > to instantiate the class object type.
> > I tried to?create a task that runs method CREATEINSTANCE. When I execute
> > method CREATEINSTANCE via SE24 it returns the object correctly. However
> > when?I execute it via task, the binding resolve with nothing.
> >
> > What am I missing?
> >
> > Thanks,
> >
> > ?
> > Regards,
> > Shai Eyal
> > SAP Logistics senior consultant
> > SAP Workflow & BPM specialist
> > http://www.linkedin.com/in/shaieyal
> > Mobile: 972-52-5816633
> >
> >
> >       New Email names for you!
> > Get the Email name you&#39;ve always wanted on the new @ymail and
> > @rocketmail.
> > Hurry before someone else does!
> > http://mail.promotions.yahoo.com/newdomains/aa/
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 10 Mar 2010 15:41:16 -0000 (GMT)
> From: "Mike Pokraka" <wug at workflowconnections.com>
> Subject: Re: Instantiate class object type
> To: "SAP Workflow Users' Group" <sap-wug at MIT.EDU>
> Message-ID:
>        <7103d5f02855ebd65ef38cfef34cdf8c.squirrel at g.mail.aaisp.net.uk>
> Content-Type: text/plain;charset=iso-8859-1
>
> This is usually a problem with the BI_PERSISTENT LPOR methods, but in your
> case there's no need for a task. Create a static functional method with
> your key as a parameter and use it directly in a step binding or container
> operation:
> &MYOBJ_CL&  <=  %ZCL_MYOBJ.GET_INSTANCE( &MYOBJ_BO.KEY& )%
>
>
> On Wed, March 10, 2010 2:45 pm, Shai Eyal wrote:
> > Hi all,
> >
> > This is?quite weird but I'm probably missing something. I've create a new
> > class. Testing it?via SE24?works perfect for me.?However getting the
> > object instant into the workflow does not work.
> > My workflow starts with BOR object event and during the flow I would like
> > to instantiate the class object type.
> > I tried to?create a task that runs method CREATEINSTANCE. When I execute
> > method CREATEINSTANCE via SE24 it returns the object correctly. However
> > when?I execute it via task, the binding resolve with nothing.
> >
> > What am I missing?
> >
> > Thanks,
> >
> > ?
> > Regards,
> > Shai Eyal
> > SAP Logistics senior consultant
> > SAP Workflow & BPM specialist
> > http://www.linkedin.com/in/shaieyal
> > Mobile: 972-52-5816633
> >
> >
> >       New Email names for you!
> > Get the Email name you&#39;ve always wanted on the new @ymail and
> > @rocketmail.
> > Hurry before someone else does!
> >
> http://mail.promotions.yahoo.com/newdomains/aa/_______________________________________________
> > SAP-WUG mailing list
> > SAP-WUG at mit.edu
> > http://mailman.mit.edu/mailman/listinfo/sap-wug
> >
>
>
>
>
> ------------------------------
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
> End of SAP-WUG Digest, Vol 64, Issue 21
> ***************************************
>



-- 
Regards,
Guru Dutt
Tel : +919748445814
Email : gurudutt.sap at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20100310/0f10d048/attachment.htm


More information about the SAP-WUG mailing list