What is the correct way to instantiate an object?

Kjetil Kilhavn KJETILK at statoil.com
Wed Sep 21 01:32:30 EDT 2005


If you have a method that finds this equipment I would consider changing
that to a virtual attribute of object type EQUI. Then you'll have the
equipment with you whenever you use your object type, and multiline
handling is quite easy.
 
Otherwise, using System.GenericInstantiate should be pretty
straightforward - but I remember having trouble using the existing tasks
because they had the object type predefined. If you create your own task
it shouldn't be a problem. With the multiple key fields you will
probably have to concatenate tem into the key yourself, at least
System.GenericInstantiate will not handle that for you.
-- 
Kjetil Kilhavn, Statoil KTJ IT BKS
 


________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of PEOU Tom T
Sent: 21. september 2005 02:03
To: sap-wug at mit.edu
Subject: What is the correct way to instantiate an object?



 

Hi All,

 

Can someone advise on the best way to instantiate another object into a
workflow?

For example, I want to retrieve a list of equipment from object EQUI
that is connected to an employee in BUS1065.

My workflow reads in a key field of 'employee number' and finds
equipment connected to that employee. 

I want to instantiate the object EQUI so I can easily retrieve
attributes from that object.

 

Can someone give me a good example of how I can use the
SYSTEM.GENERICINSTANTIATE method to instantiate this object?

And if possible, can you provide an example of how I would instantiate
an object that has multiple 'Key Fields'? 

 

Many thanks in advance.

 

Tom

 

Tom Peou

Workflow & ESS Administration

Roads and Traffic Authority

Centennial Plaza

260 Elizabeth Street

Surry Hills, NSW

P: (02) 9218 6601

E: Tom_PEOU at rta.nsw.gov.au

 

 

 

 

 

 

IMPORTANT NOTICE: This e-mail and any attachment to it are intended only
to be read or used by the named addressee. It is confidential and may
contain legally privileged information. No confidentiality or privilege
is waived or lost by any mistaken transmission to you. The RTA is not
responsible for any unauthorised alterations to this e-mail or
attachment to it. Views expressed in this message are those of the
individual sender, and are not necessarily the views of the RTA. If you
receive this e-mail in error, please immediately delete it from your
system and notify the sender. You must not disclose, copy or use any
part of this e-mail if you are not the intended recipient.



-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20050921/d991e1ea/attachment.htm


More information about the SAP-WUG mailing list