Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow - How to modify standard start condition

Former Member
0 Kudos
264

Hi Workflow gurus,

How to modify standard start condition for Workflow.

I need to modify start condition for <b>WS10000129</b> in EBP. This workflow is "One Step approval of shopping cart".

Help <u><b>urgently</b></u> required.

Thanks and Warm Regards.

Pras Durafe

1 ACCEPTED SOLUTION

ramki_maley
Active Contributor
0 Kudos
146

Pras,

I haven't had the opportunity to work in the EBP area yet. In standard R/3, transaction SWB_COND can be used to create a start condition for BO Event & Workflow combination. They can also be activated and deactivated. As you can guess, you can only use the attributes available for the BO. So you may have to extend the BO with the required attributes as needed.

Cheers,

Ramki Maley.

10 REPLIES 10

Vinod_Chandran
Active Contributor
0 Kudos
146

Hi,

You can try by changing triggering event of the workflow by going to PFTC transaction or add a new entry in the transaction SWETYPV for the business object shopping cart and event 'CREATED'.

Vinod

ramki_maley
Active Contributor
0 Kudos
147

Pras,

I haven't had the opportunity to work in the EBP area yet. In standard R/3, transaction SWB_COND can be used to create a start condition for BO Event & Workflow combination. They can also be activated and deactivated. As you can guess, you can only use the attributes available for the BO. So you may have to extend the BO with the required attributes as needed.

Cheers,

Ramki Maley.

0 Kudos
146

Hi Ramki,

Thanks for your tips.

In EBP, you can see start condition for Workflow using SWB_PROCUREMENT.

For Example : For Workflow WS10000129 start condition is defined as follows :

condition Workflow WS10000129 British Pound

( &_EVT_OBJECT.TOTALVALUE& < 100.000,00
and &_EVT_OBJECT.EXISTFOLLOWONRFQ& ¡Ù X
and &_EVT_OBJECT.TOTALVALUE& ¡Ý 1.000,00
and &_EVT_OBJECT.REQUISITIONERUSER.ACTIVITYGROUP& NE SAP_BBP_STAL_MANAGER
and &_EVT_OBJECT.NOLIMIT& ¡Ù X
and &_EVT_OBJECT.SPENDINGLIMITOFREQUESTER& NX
and &_EVT_OBJECT.USERBUDGETDEFINED& NX
and &_EVT_OBJECT.EXISTNOPRICELINEITEM& ¡Ù X )

Now back to my

original question

, I want to trigger this workflow only when Shopping cart value is > 200. Can I change standard SAP start condition ?

Any idea ?

Thanks and Warm Regards.

Pras Durafe

0 Kudos
146

Pras,

I am not sure if changing SAP standrad start conditions is considered a Mod but I would think all you have to do is deactivate the standard condition, create your own condition and activate it.

Cheers,

Ramki Maley.

0 Kudos
146

Hello Pras,

Ramki is right, you should deactivate the standard condition and create your own. But...

See note 304834 first (https://websmp204.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700010341482001).

It explains in detail how to create the condition. There is a trick for defining the shopping cart value and currency for a condition.

Regards,

Michal

0 Kudos
146

Thanks Michal / Ramki,

I am going to deactivate the standard condition and creating my own.

Michal, Note number 304834 is a big help.

Thanks and Warm Regards.

Pras

0 Kudos
146

Hi Michal,

I did following to create a new start condition.

1. Deactivated standard condition (WS10000029)

2. Copied standard Workflow WS10000029 to WS90000001.

3. Activated WS9000001.

4. Created an entry in event linkage as BUS2121/SAVED/WS9000001.

Now I want to play with WS9000001 but when I go to start conditions (SWB_PROCUREMENT), I can't find my new workflow WS9000001. Any idea ?

Another question is - <b>Oss Note: 304834</b> says I can't use RequirementRequest.TotalValue field instead I need to use RequirementRequest.MaterialGroup. Could you please advise me how to use MaterialGroup field because I am trying to create a start condition based on Total Value.

Thanks in advance for your great support and tips.

Warm Regards.

Pras

0 Kudos
146

Hi Michal / Workflow Gurus,

Another question.

I got two active start conditions for Shopping Cart.

First one is standard one is "Workflow Without Approval Shopping Cart" which is for any amount <=$1000.

Second one which is created by me is "One step approval" if amount > $1000.

When I create a shopping cart worth less than 1000,it works fine but if shopping cart value > 1000, system errors as "Workflow is ambiguous, contact workflow administrator".

If only second one active ( & value > 1000) then all possible agents are getting Work item for approval.

My question is can I keep both Start conditions active ?

How to resove above issues. Please help.

Thanks and Warm Regards.

Pras

0 Kudos
146

Hi Michal / Ramki,

Any suggestions on my above questions ?

Regards.

Pras

Former Member
0 Kudos
146

Hi All,

I activated two Start conditions using transaction SWB_PROCUREMENT.

1. Start Condition for workflow - 'Shopping Cart - Workflow without approval' is changed as.

ShoppingCart.TotalValue < 200.

2. Start Condition for Workflow - 'Shopping - One step Approval' is changed as -

ShoppingCart.TotalValue >= 200.

I would like to thank Ramki , Michal, Vinod C for your tips.

More questions to come

Warm Regards.

Pras Durafe.