Can an attribute know it's calling workflow?
Heath, Darrell L.
Darrell.Heath at Lyondell.com
Fri Aug 27 10:16:31 EDT 2004
Alon's suggestion is probably best but I have referred to SWO_%INVOKE to
get the requestor, then read the workitem (I know, it's not WAPI way
...).
requester =3D swo_%invoke-requester.
workitemid =3D requester-objkey. =20
=20
call function 'SWL_WI_READ'
exporting =20
wi_id =3D workitemid =20
:
:
Good luck, I know I had fun working on this one!
Darrell =20
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of
Alon Raskin
Sent: Friday, August 27, 2004 8:41 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Can an attribute know it's calling workflow?
try this FM SWE_WI_GET_FROM_REQUESTER
I have never tried it from an attribute but definitely works in methods.
Let us know how you get on.
Alon
-----Original message-----
From: Michael Pokraka workflow at quirky.me.uk
Date: Fri, 27 Aug 2004 23:35:04 +1000
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Can an attribute know it's calling workflow?
> Greetings all ye knowledgeable people,
>
> Simple one: Can an attribute somehow find out which workflow (if any)
is
> calling it?
> There's nothing obvious I can find, so I don't hold much hope but
perhaps
> someone has a sneaky workaround?
>
> I know, easy to do in a method and I'll probably end up doing that,
but a> n
> attribute would be a bit neater for various reasons.
>
> Cheers
> Mike
More information about the SAP-WUG
mailing list