Check if tran being called by Workflow

Raskin, Alon (Soliance) ARaskin at cps-satx.com
Thu Jan 31 10:56:36 EST 2002


Call FM SWE_WI_GET_FROM_REQUESTER . Should return a Work Item number only if
called from a Workflow. Not sure about SY-CALLD field.
 
Alon Raskin
Workflow Advisor - Soliance
(xtn. 3183)
 
-----Original Message-----
From: Schroeter, Brad [mailto:BSchroeter at ti.com]
Sent: January 31 2002 9:49
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Check if tran being called by Workflow
 
I'm on 4.0B and I've got a transaction that is executed manually by users
outside of workflow and then this same transaction is sent to users as a
work item within a workflow process (for both it's a change transaction).
Within the workflow process I want to do some validation on data entered by
the user in the transaction, but I don't want to do this validation when the
transaction is called by users outside of workflow (this transaction is used
in two different business processes where the data requirements are
different).
I've been able to implement a user exit within the transaction so I can do
my validation.  I ran both the transaction within workflow and outside of
workflow and did a debug.  I looked at the system fields (SYST) to see if
there was any field I can use to let me know if the transaction was being
called within workflow.  The only one that seemed to stand out to me was
SY-CALLD: within workflow it's "X" and outside of workflow it's blank.
This seems to work but I thought I'd ask you workflow experts to see if
there's any problems with how I'm doing this or if there's a better way.
Thanks,
Brad
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20020131/aced5f35/attachment.htm


More information about the SAP-WUG mailing list