<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>Check if tran being called by Workflow</TITLE>
</HEAD>
<BODY>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">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).&nbsp; 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).</FONT></P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">I've been able to implement a user =
exit within the transaction so I can do my validation.&nbsp; I ran both =
the transaction within workflow and outside of workflow and did a =
debug.&nbsp; 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.&nbsp; The only one that seemed to stand out to me was =
SY-CALLD: within workflow it's &quot;X&quot; and outside of workflow =
it's blank.</FONT></P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">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.</FONT></P>
 
<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Brad</FONT>
</P>
 
</BODY>
</HTML>