Reading worflow container element

Adao-Cruz, Miguel miguel.adao-cruz at capgemini.com
Wed Feb 16 14:19:19 EST 2005


Hi David,

Thanks it worked fine!

Why I had to do it (cf MARK mail)
I had object1 with attributes 1, 2 , 3 and 4
Attributes 2, 3, 4 are based on attribute 4.
This object is used in different workflows.

Then I realised that for one of the workflows, attribute 1 is empty (PO
number in case of parked invoice because no GR has bee done yet ;-)
So no attributes 2, 3, and 4.
The solution was to get attribute1 in the workflow container (import
parameter of the workflow container) by another way(... too long to
explain), and when calculating attribute1 do a check: if attribute1 is
initial then read the one from workflow container.
So now, in all cases I have my attribute 1, 2, 3 and 4 without having to
develop new verions of attributes 2, 3, 4 to handle this specific case.

Hope it is clear   ;-)


Cheers


Miguel.

___________________________________________________________________________
mit.edu <mailto:s at mit.edu>  [mailto:sap-wug-bounces at mit.edu] On Behalf Of
Yung. David
Sent: 16 February 2005 16:58
To: 'SAP Workflow Users' Group'
Subject: RE: Reading worflow container element



Try using FM "SAP_WAPI_READ_CONTAINER".  To use it you must know the
workitem id from which you intend to read the container.



In order to get the workitem ID, a suggestion is to use FM
"SAP_WAPI_WORKITEMS_TO_OBJECT", this will give you all the workflows related
to the object.



Cheers

David

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of
Adao-Cruz, Miguel
Sent: 16 February 2005 16:35
To: SAP-WUG at mitvma.mit.edu
Subject: Reading worflow container element



Hello,



Did someone already tried to read a workflow container from a virtual
attribute?

I tried the standard way:

SWC_GET_ELEMENT CONTAINER 'element' object-attribute.

but in this case the container is empty.



Any idea?



Cheers



* ** *** ** * ** *** ** * ** *** ** *
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.
Any views or opinions presented are solely those of the author, and do not
necessarily
represent those of ESB.
If you have received this email in error please notify the sender.

Although ESB scans e-mail and attachments for viruses, it does not guarantee

that either are virus-free and accepts no liability for any damage sustained

as a result of viruses.

* ** *** ** * ** *** ** * ** *** ** *

This message contains information that may be privileged or confidential and
is the property of the Capgemini Group. It is intended only for the person
to whom it is addressed. If you are not the intended recipient, you are not
authorized to read, print, retain, copy, disseminate, distribute, or use
this message or any part thereof. If you receive this message in error,
please notify the sender immediately and delete all copies of this message.




This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20050216/898ed754/attachment.htm


More information about the SAP-WUG mailing list