cancel
Showing results for 
Search instead for 
Did you mean: 

How to control triggering custom workflow on change of Purchase contract(ME33K) based on fields

former_member427675
Participant
0 Kudos

Hello All ,

My requirement is to trigger custom workflow on change of purchase contract (ME33K) but it should trigger only for release indicator should be A and for specific agrement type.

BO - BUS2014 Event - Change.

To control through field I am using SWEC and mentioning my two filed but I am not sure how to further assign or configure in workflow ,not know further steps.

Please guide me on same.

Accepted Solutions (0)

Answers (1)

Answers (1)

keohanster
Active Contributor
0 Kudos

You can write a Check Function Module and add it to the Event Linkage (tx SWETYPV). Check Function Modules must have the same interface as SWE_TEMPLATE_CHECK_FB. In your Check Function Module, you can read data from your contract and determine if the release indicator is 'A'. If so, then just continue, but if not raise the exception NO_WORKFLOW.

This will ensure that your workflow only starts with the Indicator 'A'.

Please see SAP Help for further info:

https://help.sap.com/saphelp_nw70/helpdata/en/c5/e4af8b453d11d189430000e829fbbd/content.htm?no_cache...