0% found this document useful (0 votes)
2K views4 pages

Using Check Function Module in SAP Workflow

This document discusses using a check function module in SAP Workflow to conditionally trigger a workflow. It provides an example of a custom function module that checks the sales organization on a sales order object and raises an exception to not trigger the workflow if the sales organization is 3000. The function module name is then provided in the Check Function Module field when configuring the workflow step to only trigger the workflow if the condition is not met.

Uploaded by

Seppl Guszl
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views4 pages

Using Check Function Module in SAP Workflow

This document discusses using a check function module in SAP Workflow to conditionally trigger a workflow. It provides an example of a custom function module that checks the sales organization on a sales order object and raises an exception to not trigger the workflow if the sales organization is 3000. The function module name is then provided in the Check Function Module field when configuring the workflow step to only trigger the workflow if the condition is not met.

Uploaded by

Seppl Guszl
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Using Check Function Module in SAP Workflow

By Geethanjali K, Kaavian Systems

Following is a custom function module created for our demo purpose, which will check the conditio the workflow. FUNCTION ZGEE_SALES_ORG. *"---------------------------------------------------------------*"*"Local Interface: *" IMPORTING *" VALUE(OBJTYPE) TYPE SWETYPECOU-OBJTYPE *" VALUE(OBJKEY) TYPE SWEINSTCOU-OBJKEY *" VALUE(EVENT) TYPE SWETYPECOU-EVENT *" VALUE(RECTYPE) TYPE SWETYPECOU-RECTYPE *" EXPORTING *" REFERENCE(RESULT) TYPE C *" TABLES *" EVENT_CONTAINER STRUCTURE SWCONT *" EXCEPTIONS *" NOT_TRIGGERED *"---------------------------------------------------------------TABLES: VBAK. DATA VKORG LIKE VBAK-VKORG. SELECT SINGLE VKORG INTO VKORG FROM VBAK WHERE VBELN = OBJKEY. IF VKORG = '3000'. RAISE NOT_TRIGGERED. ENDIF. ENDFUNCTION. Now go to transaction SWE2 and insert your object type, event, and the receiver type.

Double click on your entry, following screen appears:

Provide the name of the customized function module name created earlier in the check function mo

Now workflow is triggered only when the sales order is created with the sales organization 3000.

You might also like