PROBLEM SOLVED Re: Help, need user name for wf initiator in the task text

Sunni sunni sunnilondon at hotmail.com
Thu Feb 20 11:20:58 EST 2003


Thanks for you suggestions, problem solved.
Working code fyi:
 
DATA:
      ZGETUSERNAME(255),
      Agent like wfsyst-agent,   "import parameter contains wf_initiator
      AUTHORISER TYPE SWC_OBJECT,
      NAME LIKE ADDR3_VAL-NAME_TEXT.  "attribute containing name
                                      "export parameter
*for instance independant that returns obj ref but not parameter
*swc_set_objectkey agent.
 
swc_get_element container 'Agent' Agent.  "import parameter
SWC_CREATE_OBJECT AUTHORISER 'USR01' AGENT.
SWC_GET_PROPERTY AUTHORISER 'Name' NAME.
*SWC_GET_PROPERTY SELF 'Name' Name.
swc_set_element container 'Name' Name.   "export parameter
 
 
  SWC_SET_ELEMENT CONTAINER RESULT Name.  "ZGETUSERNAME.
 
 
 
 
 
 
 
>From: "Dart, Jocelyn" <jocelyn.dart at sap.com>
>Reply-To: SAP Workflow Users' Group <SAP-WUG at MITVMA.MIT.EDU>
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Re: Help, need user name for wf initiator in the task text
>Date: Thu, 20 Feb 2003 00:31:21 +0100
>
>Hi Sunni,
>If you just want to get the user name for display in a step in your
>workflow you can use instance-independent method
>USR01.FINDUSERFROMAGENTSTRUCTURE
>to translate your workflow initiator to a USR01 object.
>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: Flavio Oliveira [mailto:oliveiraflavio at hotmail.com]
>Sent: Thursday, 20 February 2003 5:35 AM
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Re: Help, need user name for wf initiator in the task text
>
>
>Sunni:
>
>You can create on your event a new parameter that is the user name and, on
>the event check function module you can set this parameter with the user
>name (that you can get from the object USR01).
>
>Then you create a container element on your workflow to receive the event
>parameter and populate it on the binding.
>
>Just do not forget that the key of the object USR01 is the user id and the
>workflow initiator has the string 'US' before the user id.
>
>Flavio.
>
>
> >From: Sunni sunni <sunnilondon at hotmail.com>
> >Reply-To: SAP Workflow Users' Group <SAP-WUG at MITVMA.MIT.EDU>
> >To: SAP-WUG at MITVMA.MIT.EDU
> >Subject: Help, need user name for wf initiator in the task text
> >Date: Wed, 19 Feb 2003 17:22:35 +0000
> >
> >Hi
> >
> >I need to get the user name for the workflow initiator in the task
> >description text.  I've tried all sorts of bindings and tried to
>reference
> >object usr01 but no success.
> >
> >How can I link the wf initiator to this object and get the attribute user
> >name held in the user master record (in simple english)?
> >
> >
> >Any suggestions most appeciated
> >
> >Many thanks
> >Sunni
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >_________________________________________________________________
> >Chat online in real time with MSN Messenger http://messenger.msn.co.uk
>
>
>_________________________________________________________________
>Add photos to your e-mail with MSN 8. Get 2 months FREE*.
>http://join.msn.com/?page=features/featuredemail
 
 
_________________________________________________________________
Worried what your kids see online? Protect them better with MSN 8
http://join.msn.com/?page=features/parental&pgmarket=en-gb&XAPID=186&DI=1059
 


More information about the SAP-WUG mailing list