cancel
Showing results for 
Search instead for 
Did you mean: 

Start workflow only after specifc transaction

former_member196064
Active Participant
0 Kudos
132

Greetings,

I've got a workflow that updates the minimum target quantity for an article.

I want to restrict this workflow to execute only on a specific transaction.

Please advise how to bind/pass SY-TCODE into a workflow

Thanks,

Doug -

Accepted Solutions (1)

Accepted Solutions (1)

vijy_mukunthan
Active Contributor
0 Kudos

Hi

Put a start condition to the workflow. Create a attribute in ur BOR and get the t-code in the attribute and pass this attribute in the workflow event at the starting conditon.

Regards

vijay

Answers (3)

Answers (3)

former_member186746
Active Contributor
0 Kudos

What is the functional requirement?

If you don't want users to execute different transaction which causes the same events from happening you can also use authorizations.

Kind regards, Rob Dielemans

Former Member
0 Kudos

You can use Check function module also which you have to mention in SWE2 transaction code for your Workflow entry.

Another thing which is important that your Workflow should be event driven other wise you can use FM SAP_WAPI_START_WORKFLOW to trigger wflow and put the check before this FM execution.

Thanks

Arghadip

surjith_kumar
Active Contributor
0 Kudos

Hi,

You have to Restrict Via Start Condition

You have to create a attribute, in the attribute you have to write a code, for that t.code Set the flag 'X' else null.

To Give the start Condition See the step 3.2 in this [link|https://wiki.sdn.sap.com/wiki/x/aYDUAw ] .

Regards,

Surjith