on 06-30-2006 2:02 PM
I am using workflow WS10000060 (Workflow Without Approval Shopping Cart) when creating shopping carts. I have defined my starting condition as below and believe that this should give me the message No Approval Required for shopping carts with amount less than 500 USD (created by a user with the role employee) alternative 1 000 USD (created by a user with the role manager).
So far everything is ok but when I increase the amount of the shopping cart over the limitations I guess I should get the error message No workflow found. Inform system administrator or something similar. This is where the system fails. The error message is not given instead the shopping cart is approved automatically as if the start conditions for WS10000060 is not taken into account at all. In other words it seems like it doesnt matter what amount my shopping cart has because it is always approved automatically.
The thing is that I want workflow WS10000129 to be activated when the amount is exceeded in workflow WS10000060 but because the start conditions are not taken into account in workflow WS10000060 I get the error message Approval workflow ambiguous. Inform system administrator.
As part of my troubleshooting I have also done some testing with workflow WS100000129 and WS100000031 and these two workflows are acting as expected.
Start condition Workflow WS10000060 American Dollar
&EC Requirement Coverage Request& = &EC Requirement Coverage Request&
or ( " Einkaufen von Employee
&EC Requirement Coverage Request.TotalValue& < 500,00
and &EC Requirement Coverage Request.Unlimited& ≠ X
and &EC Requirement Coverage Request.Spending Limit& NX
and &EC Requirement Coverage Request.UserBudgetDefined& NX
and &EC Requirement Coverage Request.Exists w.out Price& ≠ X
) " Einkaufen von Employee
or ( " Einkaufen von Manager
&EC Requirement Coverage Request.Requester User.Activity Group& CE SAP_BBP_STAL_MANAGER
and &EC Requirement Coverage Request.TotalValue& < 1.000,00
and &EC Requirement Coverage Request.Unlimited& ≠ X
and &EC Requirement Coverage Request.UserBudgetDefined& NX
and &EC Requirement Coverage Request.Exists w.out Price& ≠ X
) " Einkaufen von Manager
or ( " Einkaufsbudget Scenario
&EC Requirement Coverage Request.UserBudgetDefined& EX
and &EC Requirement Coverage Request.UserBudgetSpent& ≤ &EC Requirement Coverage Request. UserBudgetDefined&
and &EC Requirement Coverage Request.Unlimited& ≠ X
and &EC Requirement Coverage Request.Exists w.out Price& ≠ X
) " Einkaufsbudget Scenario
or ( " Ausgabelimit Scenario
&EC Requirement Coverage Request.Spending Limit& EX
and &EC Requirement Coverage Request.TotalValue& ≤ &EC Requirement Coverage Request.Spending Limit&
and &EC Requirement Coverage Request.Unlimited& ≠ X
and &EC Requirement Coverage Request.UserBudgetDefined& NX
and &EC Requirement Coverage Request.User SL Approval& EX
and &EC Requirement Coverage Request.Exists w.out Price& ≠ X
) " Ausgabelimit Scenario
Best Regards
Johanna
Hello Johanna,
Please check the followings,
1. Check the Start conditions of WS10000060, WS10000129 and WS100000031 and delete the unnecessary conditions.
I recommend you to define the TotalValue condition only.
2. Check the those WF event is activated. Green mark in start conditions.
3. Simulate event in SWU0 transaction. BUS2121.SAVED.
Check those WF are successfully started.
4. Switch on the event trace in SWELS transaction
5. Create event in SWUE transaction.
6. Check the event trace in SWEL transaction
If this does not help you can debug the SWB_CHECK_FB_START_COND_EVAL function module.
Regards,
Masa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the help. Still have some problems though. Want to change the start condition but I don't know how to chnge the lines. Don't have any problems to change the operator, Express 2 and the And/Or-indicator but there isn't any way to chnage the Express 1 part. Do you have any suggestions how I can do that?
Johanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.