WFSYST-AGENT and USR01

Dart, Jocelyn jocelyn.dart at sap.com
Mon Nov 18 03:56:52 EST 2002


Hi Cristiana,
USR01 has a method "FindUserFromAgentStructure" - just create a task
based on that method, passing your _EVT_CREATOR value to it and it will
return the USR01 object instance.
 
BTW it's in the book - try the index.
Regards,
        Jocelyn Dart
Consultant (SRM, EBP, Workflow)
and co-author of the book
"Practical Workflow for SAP"
SAP Australia
email: jocelyn.dart at sap.com
phone: +61 412 390 267
fax:   +61 2 9935 4880
 
 
 
 
-----Original Message-----
From: Cristiana D'Agosto [mailto:cristiana.dagosto at au1.ibm.com]
Sent: Monday, 18 November 2002 1:16 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: WFSYST-AGENT and USR01
 
 
Hello all,
 
I am on version 4.6c, developing workflows to Process Purchase Req/
Purchase Orders and we are not using the HR module here.
 
I have a 'wait for PO Released' within the Purchase Req workflow.
When a PO is released, a notification is sent to the user that created the
Purchase Req.
In this notification I want to have the name of the user that released the
PO. In the workflow container I have POReleasedBy defined as WFSYST-AGENT
and it is populated with _EVT_CREATOR (also WFSYST-AGENT).
 
To print the name of the user that released the PO I will use object
USR01, so I created POReleasedByUser as USR01. How do I make the 'link'
between WFSYST-AGENT and USR01?
 
I understand that I have to create an object instance and I was thinking
of using SYSTEM.GenericInstantiate. To use that though, I only need to
pass the user name as parameter and the USR01 as object type. What's the
best way of droping the 'US' from the agent?? Will I have to create
another task only for that??
 
Maybe there is a better way of printing a user name in a notification?
 
Thanks in advance for any help you can provide.
 
Cheers
 
Cristiana
 


More information about the SAP-WUG mailing list