cancel
Showing results for 
Search instead for 
Did you mean: 

Shopping cart workflow problem

Former Member
0 Kudos

Hi,

I am having a requirement wherein my SCs below 50 $ should not go for approval and those above 50$ shold go for one step approval . I have activate workflows WS10000060 and WS10000129 for this with following conditions

WS10000060

&EC Requirement Coverage Request.RFQ Follow-On Doc.& < X

or ( " Einkaufen von Employee

&EC Requirement Coverage Request.TotalValue& < 50,00

and &EC Requirement Coverage Request.Unlimited& &#8800; 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& &#8800; 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& < 500.000,00

and &EC Requirement Coverage Request.Unlimited& &#8800; X

and &EC Requirement Coverage Request.UserBudgetDefined& NX

and &EC Requirement Coverage Request.Exists w.out Price& &#8800; X

) " Einkaufen von Manager

or ( " Einkaufsbudget Scenario

&EC Requirement Coverage Request.UserBudgetDefined& EX

and &EC Requirement Coverage Request.UserBudgetSpent& &#8804; &EC Requirement Coverage Request. UserBudgetDefined&

and &EC Requirement Coverage Request.Unlimited& &#8800; X

and &EC Requirement Coverage Request.Exists w.out Price& &#8800; X

) " Einkaufsbudget Scenario

or ( " Ausgabelimit Scenario

&EC Requirement Coverage Request.Spending Limit& EX

and &EC Requirement Coverage Request.TotalValue& &#8804; &EC Requirement Coverage Request.Spending Limit&

and &EC Requirement Coverage Request.Unlimited& &#8800; 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& &#8800; X

) " Ausgabelimit Scenario

Start condition Workflow WS10000129

Canadian Dollar

Event SAVED

&EC Requirement Coverage Request.RFQ Follow-On Doc.& &#8800; X

and &EC Requirement Coverage Request.TotalValue& &#8805; 50,00

and &EC Requirement Coverage Request.Requester User.Activity Group& NE SAP_BBP_STAL_MANAGER

and &EC Requirement Coverage Request.Unlimited& &#8800; 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& &#8800; X

or ( " Einkaufen von Manager

&EC Requirement Coverage Request.Requester User.Activity Group& CE SAP_BBP_STAL_MANAGER

and &EC Requirement Coverage Request.RFQ Follow-On Doc.& &#8800; X

and &EC Requirement Coverage Request.TotalValue& &#8805; 500.000,00

and &EC Requirement Coverage Request.Unlimited& &#8800; 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& &#8800; X

) " Einkaufen von Manager

or &EC Requirement Coverage Request.RFQ Follow-On Doc.& &#8800; X

and &EC Requirement Coverage Request.Unlimited& = X

or ( " Einkaufsbudget Scenario

&EC Requirement Coverage Request.UserBudgetDefined& EX

and &EC Requirement Coverage Request.RFQ Follow-On Doc.& &#8800; X

and &EC Requirement Coverage Request.UserBudgetSpent& > &EC Requirement Coverage Request. UserBudgetDefined&

and &EC Requirement Coverage Request.Unlimited& &#8800; X

and &EC Requirement Coverage Request.Exists w.out Price& &#8800; X

) " Einkaufsbudget Scenario

When i create shopping cart less tha 50$ it works finr but when i try to create a shopping cart above 50 $ system gives error " Approval workflow is ambiguous" .I am not able to comprehend the ambiguous condition.Can anyone help me out with ths.

Regards,

Pawan.

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member1229370
Participant
0 Kudos

Hi Pawan,

Check event linkage for business object BUS2121. There must be more than one workflow are active.

Transaction SWETYPV.

You will see list of all the workflows / business objects.

Check BUS2121 and double click on a workflow line which you don't want.

Switch off (i.e. space) Event linkage Checkbox.

Also check Start condition as suggested by Disha and Atul.

It should work.

Please reward points if this answer is helpful.

Kind Regads

Pras

Former Member
0 Kudos

Hi Pawan,

'support team' is right. Your conditions seem to be satifying more than one workflow.

Will

Former Member
0 Kudos

Hi

<b>Please go through the following points mentioned below -></b>

1) The workflow without approval is defined in your start condition, so you should have the comment "start depends on a function module" or something like that. (I don't have any system now to check the message).

The one with red dots: you shouldn't worry about this, probably message is activation link not active.

The two other one (one and 2 steps), not sure if your error stands there, but to be sure check that activation link is not active (you can do this through customizing or with transaction pftc_chg).

2) Check the conditions defined in that activated workflow (Txn: SWB_PROCUREMENT). Looks like the conditions defined here do not match with shopping cart data and hence SC could not find a workflow to be triggered.

Suggest you to just give a condition like (&TotalValue& >=0) which covers all shopping carts. Then refresh buffer with swu_obuf (not sure it is mandatory but safe).

3) Check if all subworkflows are activated

4) You may have only one start condition defined, but there is maybe an active workflow for the SC without start condition. Use transaction SWU0 to simulate the event "created" of object bus2121 and check there is only one workflow started.

5) Also check the event linkages in txn SWE2 and SWETYPV

6) If Your WF has been activated, go to the transaction SW01 and transaction SWB_COND

Create a SC but don't order it. Click 'Hold'. In SW01 select Object BUS2121 (for shopping cart) and click test. Click Instance button and fill field with SC number.

You create a test object for this SC. In other window go to the transaction SWB_COND and search any workflow for Object BUS2121. Look at contition and compare it. Add all nesessary data for Your start contition.

7) When you maintain start conditions, misunderstandings can occur - if you want to use a currency amount as a workflow start criterion, for example. (See OSS Note - 304834)

<u>Related links -></u>

/message/3108859#3108859 [original link is broken]

Which SRM version are you using ? Do let me know.

Regards

- Atul

Former Member
0 Kudos

Hi,

Pls check the lines:

<b>WS10000060</b>

or ( " Einkaufen von Manager

&EC Requirement Coverage Request.Requester User.Activity Group& CE SAP_BBP_STAL_MANAGER

and <b>&EC Requirement Coverage Request.TotalValue& < 500.000,00</b> I guess it should be "EC Requirement Coverage Request.TotalValue& < 50,00 "

<b>WS10000129</b>

or ( " Einkaufen von Manager

&EC Requirement Coverage Request.Requester User.Activity Group& CE SAP_BBP_STAL_MANAGER

and &EC Requirement Coverage Request.RFQ Follow-On Doc.& &#8800; X

and <b>&EC Requirement Coverage Request.TotalValue& &#8805; 500.000,00</b>

It should be "&EC Requirement Coverage Request.TotalValue& &#8805; 50,00 ".

BR,

Disha.

Pls reward points for useful answers.

Former Member
0 Kudos

Thanks Disha,

I changes it but its stil not working.Actually that limit was for Manager but i am creating SC from Employee's ID.But if after changing its giving the same error.Anywhere else i need to luk.

Thanks and regards,

PAwan

former_member84399
Participant
0 Kudos

Hello

This message usually means that there is more than workflow that can be triggered when you order over 50. Please check your event linkage and ensure that only one workflow is active for the scenario