cancel
Showing results for 
Search instead for 
Did you mean: 

Start conditions in workflow

Former Member
0 Kudos

Dear All,

I need to maintian start conditions in custom workflow for shopping cart approval.

The condition is that the workflow should be trigerred only when the shopping cart value is greater than 1000 USD.

How to maitnain the same? I am already in GOTO --> BASIC SETTINGS --> START CONDITIONS

Advance Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member

Hi Samet,

Do u have any Business Object created for Shopping Cart Approval. if yes, den find 1 attribute in that BO which corresponds to the shopping Cart Value.

when u go to start event from basic data:- u can see A ...B...C...where a is for active binding linkage...B is for binding and C is for giving start condition...

click on C..to enter start condition..there u wll find an attribute for the value ...

BOAttribute for value > 1000 USD.....give your condition like this by selecting from that screen..

let me know if u r facing any problem

With Best Regards,

Kanika

Former Member
0 Kudos

Hi,

Thanks for the replies.

I have already maintained these simple start conditions and it works well.

But my requirement is to check some complex start conditions which can be done probably in a function module.

Do anyone know the use of receiver function module, check function module & receiver type function module? Can any one of these used to maintain complex conditions for start conditions of workflow. If so, any example code?

Thanks...

Former Member
0 Kudos

Hello,

One of the ways is

- create a business object with super object a standard (ZBUS2121 as a sub-object of BUS2121 in case of SC)

- create a new attribute in this ZBUS2121 and code all the logic you want

- use this attribute to in SWB_COND..

For ex: you can create this attribute as CHAR2 field and write your own logic and in SWB_COND you can set up conditions like these:

Attribute = 01 --> 1step

Attribute = 02 --> 2 step

.....

Rgds,

Prasanna

Former Member
0 Kudos

Thanks for the replies. The start conditions were quiet complex and so created a check function module for the same (the check function module for the workflow can be activated in SWETYPV transaction)

laurent_burtaire
Active Contributor
0 Kudos

Hello Sameet,

Depending on workflow you want to use for your SC approval, maintain your starting conditions for this workflow in transaction SWB_COND.

Regards.

Laurent.