Business Object
Czerwiec, Phil
Phil.Czerwiec at andrew.com
Thu Aug 29 16:45:04 EDT 2002
That did the trick. Thanks for all the feedback!
Phil
-----Original Message-----
From: Griffiths, Mark [mailto:mark.griffiths at sap.com]=20
Sent: Thursday, August 29, 2002 11:58 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Business Object
Hi Diane,
I think you slightly misunderstood:
You need to get the object into your container in the first place - Phil =
said that he only had the key field.
The technique outlined below would be done in a background task which =
would bring in the key fields from the workflow to the task to the =
import parameters of the object method. You would then use code similar =
to that below, instantiating the object, and then returning it through =
export parameters
to the task and then to a new element in the workflow container.
Hope that clarifies things,
Mark
-----Original Message-----
From: Nobles, Diane
To: SAP-WUG at MITVMA.MIT.EDU
Sent: 29/08/02 18:43
Subject: Re: Business Object
Why would you not want to add your business object to the WF container
and
pass it throughout your workflow. This is a lot cleaner and easier.
Diane Nobles
-----Original Message-----
From: Griffiths, Mark [mailto:mark.griffiths at sap.com]
Sent: Thursday, August 29, 2002 10:10 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Business Object
If you have the key fields for an object you can use the macro
SWC_CREATE_OBJECT <Obj Ref of type Swc_object> <Object type in ' '>
<object
key>
e.g. for a material object:
data: lv_myobject type swc_object,
lv_matnum like mara-matnr.
swc_create_object lv_myobject 'BUS1001006' lv_matnum.
You will obviously need to do this in something like a method on
background
task.
If you want to find out more about this sort of macro I would recommend
you
attend BC610 or read the help in the SAP Library - the contents of the
workflow reference documentation would answer a large chunk of the
questions
posted on this user group!
Cheers,
Mark
SAP UK
-----Original Message-----
From: Czerwiec, Phil
To: SAP-WUG at MITVMA.MIT.EDU
Sent: 29/08/02 15:55
Subject: Business Object
I need to populate the role container with a business object. I do not
have
the business object in the container, but I do have the key fields for
the
business object. Is there a way to get the business object?
More information about the SAP-WUG
mailing list