cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow Start condition not working

Former Member
0 Kudos

Hi Friends,

I have a start condition in my Custom workflow.

BO 'BUS2032' and the condition is SalesDocumentType = 'ZZZ' (Workflow should be executed only for Document type 'ZZZ')

Start condition is active (Checked in TCode SWB_COND)

When I evaluate condition with test data it is working fine. (Returns 'False' in case of any other document type and 'True' in case of 'ZZZ')

But, when I execute workflow it is not working. Workflow is being executed for all document types.

Please help me if any one has Idea

Seshu

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member184495
Active Contributor
0 Kudos

Hi SR,

though condition is active in SWB_COND, do check in WF builder (Basic data) if column C is active.

Is there a FM in the Check FM field of SWETYPV?

Aditya

Former Member
0 Kudos

Hi Aditya,

Column C is active in Basic data.

Function module SWB_CHECK_FB_START_COND_EVAL is there in Check FM field in SWETYPV

Seshu

Former Member
0 Kudos

check whether the condition for your case is implemented in this FM.

Former Member
0 Kudos

Yes, condition entry exit in table SWBRULECOU.

Former Member
0 Kudos

I think the Value is not getting updated when the Starting Condition is checked. It may be due to some timing issue. I think it is better you put some wait step.

Thanks

Arghadip

imthiaz_ahmed
Active Contributor
0 Kudos
Column C is active in Basic data.
Function module SWB_CHECK_FB_START_COND_EVAL is there in Check FM field in SWETYPV

When you maintain the start condition in SWB_COND, the why do you need additional stadard check FM in there. Try to analyse what this check FM performs. If it is doing something else other than what you are looking for, remove it and it should fix your problem.

Regards, IA

Former Member
0 Kudos

Hello - did you find a solution to this problem? I have the exact same issue with a Workflow being triggered for object BUS2012 which should only work against a specific purchasing group. I don't get the problem in DEV/QA only Prod. In Prod SWB_COND gives me the correct false result where anything but my desired Purchasing Group is used. SWBRULECOU holds my condition entries (against version 9999 is this correct?).

Running SWUE to (re)create the event in Prod against a previously incorrectly triggered WF returns the correct result of False?? So there appears to be differences between when the event is created manually and when it happened for real against the same PO number.

Hope you can help

Thanks

Jo.

former_member185167
Active Contributor
0 Kudos

Hello,

You should open a new thread and describe your problem, eg give the exact condition you're using and an example of when it goes wrong.

Also please say what version you're on.

regards

Rick Bakker

Hanabi Technology

Former Member
0 Kudos

i think you need to use check function module.