cancel
Showing results for 
Search instead for 
Did you mean: 

Restart Workflow: PR

Former Member
0 Kudos

Hi Team,

We have a requirement in which the PR workflow should be triggered or not triggered for the below conditions:

1) If any new line is added in Purchase Requisition then workflow should be started again.

2) In case of deletion of line item workflow should not be started.


Can we do this from SWEC?


How to go about for this requirement?



Regards,

Ashish

Accepted Solutions (0)

Answers (2)

Answers (2)

anjan_paul
Active Contributor
0 Kudos

Hi,

   In SWEC linkage there is a place FUNCTION Module . There you can write your code to check addition of line or   deletion of line in PR.

Otherwise you can also check in Check FM in swe2 to check new line or delete line and restrict the event for workflow .

SandySingh
Active Contributor
0 Kudos

Hello

You can implement a check function module in SWE2 against the BOR object and event and control the trigger of the workflow . Refer to links below for reference.

Use a custom FM by copying  FM SWE_CD_TEMPLATE_CHECK_FB :

Check Function Module - Roles in Workflow - SAP Library

Regards

Sandy