Skip to Content

HOW TO IMPLEMENT CUSTOM USER DEFINED FUNCTIONS IN FORMULA EDITOR FOR DECISION STEP OF THE PROCESS CHAIN

This document will explain you on how to use the custom user defined functions in the decision step of the process chain.

IMPLEMENTATION OF BADI “RSAR_CONNECTOR”

Display the BADI “RSAR_CONNECTOR” in SE18

/wp-content/uploads/2014/07/01_490807.jpg

Create an implementation as explained below.

/wp-content/uploads/2014/07/01_490807.jpg

/wp-content/uploads/2014/07/02_490839.jpg

Save and activate the implementation, then the implementation will change to Active.

/wp-content/uploads/2014/07/03_490840.jpg

Go to the “Name of implementing class” and do the custom coding inside the method

“IF_EX_RSAR_CONNECTOR~GET”

/wp-content/uploads/2014/07/04_490841.jpg

Make sure that the new custom function should start with “C_”.

/wp-content/uploads/2014/07/05_490842.jpg

Create a class ZTEST_CL_DATE and method CHECK_DATE.

/wp-content/uploads/2014/07/06_490843.jpg

/wp-content/uploads/2014/07/07_490844.jpg

CREATION OF PROCESS CHAIN AND USE OF THE CUSTOM DEFINED FUNCTION

Now go to RSPC transaction and create a process chain as below, where we will use the custom defined function created in the decision step.

In the below chain we will create Start step –>  Decision step –> Program step

/wp-content/uploads/2014/07/01_490807.jpg

Decision step with condition on ‘Friday’

/wp-content/uploads/2014/07/02_490839.jpg

Now from the drop-down list select CUSTOM User defined functions and then add the custom and save the step.

/wp-content/uploads/2014/07/03_490840.jpg

Now do the check and activate the chain, then execute the chain.

/wp-content/uploads/2014/07/04_490841.jpg

After executing monitor it in ST13 and the result should be decision 1 should be executed and it ran as expected.

/wp-content/uploads/2014/07/05_490842.jpg

Kindly provide your feedback or any further points to be included.

12 Comments
You must be Logged on to comment or reply to a post.