Application Development and Automation 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: 
Read only

Workflow starting condition

Former Member
0 Likes
383

Hi All,

I want to give starting condition as PRODUCT_TYPE = '02'.

but i am not able to find out that field in container. So how can i include this field in my start condition.

Your suggestions will be awarded.

Regards,

Azad.

2 REPLIES 2
Read only

Former Member
0 Likes
362

Hi,

you want to trigger the workflow when PRODUCT_TYPE = '02'.

Workflow can be trigerred by events. So using the event you can trigger the workflow and after this you can check the condition for PRODUCT_TYPE = '02'.

if tru continue the WK else terminate the WF.

regards,

mahantesh

Read only

b_deterd2
Active Contributor
0 Likes
362

Hi,

If your workflow is raised by an event you can place a check function module to check if your workflow should be raised. In the check fm you can set a condition : product_type = 02, else raise condition_false.

in tcode SWETYPV you can set the check fm. The check fm should be created in SE37 with the following interface:


*"----------------------------------------------------------------------
*"*"Lokale interface:
*"  IMPORTING
*"     VALUE(OBJTYPE) LIKE  SWETYPECOU-OBJTYPE
*"     VALUE(OBJKEY) LIKE  SWEINSTCOU-OBJKEY
*"     VALUE(EVENT) LIKE  SWETYPECOU-EVENT
*"     VALUE(RECTYPE) LIKE  SWETYPECOU-RECTYPE
*"  TABLES
*"      EVENT_CONTAINER STRUCTURE  SWCONT
*"  EXCEPTIONS
*"      CONDITION_FALSE
*"----------------------------------------------------------------------

Should work just fine.

Regards,

Bert