Additional Blogs by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 

Below are the steps to create the first HR Triggers BRF+ Rule, the simplest and basic way to create it.


Creating the objects

  The order in which you create the objects may vary according to your preference.


1- Data object of type Table, called HR_TRIGGER_TABLE, with binding to GRAC_T_HR_TRIGGER_BRFP

2- Data object of type Table, called ACTION_ID, with binding to GRAC_T_HR_ACTION_ID_BRFP

3- Function, assigning the context in Signature

4- Decision Table

5- Rule2

6- Loop

7- Rule1

8- Ruleset

9- Assign the Ruleset to the Function

  My suggestion is to create the objects in the above order, but only ACTIVATE them at the end, once all objects are created.

  This way you avoid activation errors.


Function

Assign the context in the function signature, as follows:


Data Objects

1- Data object of type Table, called HR_TRIGGER_TABLE, with binding to GRAC_T_HR_TRIGGER_BRFP

2- Data object of type Table, called ACTION_ID, with binding to GRAC_T_HR_ACTION_ID_BRFP

Once you create them, automatically the correspondent Structure and Elements will appear.


Decision Table


Rule_2 object

To add operartion (1): in Edit mode, go to Add->Process Expression->Decision Table and select the decision table object.

To add operartion (2): in Edit mode, go to Add->Assign Value to Context->Table type for Action ID.

Click on Change, and select "Select Context Parameter", choose "Action ID" (text type).

In addition, click on Change, and set it to "Insert", once you complete, it should look like below:

Save.


LOOP object

In Edit mode, go to Options>Add Rule->Select an Existing Rule.

And select Rule_2 object.

Save.


Rule_1 object

In Edit mode, go to Add->Process Expression->and select LOOP_1 object.

Save.


Ruleset_1 object

In Edit mode, go to Options>Add Rule->Select an Existing Rule.

And select Rule_1 object.

Save it.

Assign the ruleset in the function:

6 Comments