Ansicht
Dokumentation
PAY_BR_EFD35 - Create validation rules for events
ROGBILLS - Synchronize billing plans ABAP Short ReferenceThis documentation is copyright by SAP AG.
In this customizing activity, you create the validation rules for the events using the customizable validation rules for the eSocial - CEVR. Thus, you can change the view cluster Validation rule of events (VC_T7BREFD_RULE). The cluster is composed by three views that you change as follow:
- In the first view, you define which validation rules you want to create.
- In the second view, you specify which are the conditions of each rule.
- In the third view, you insert the parameters for each condition of a rule.
The video CEVR: Customizable validation rules for eSocial, in the SAP Brazil chanal on the YouTube, shows the information of this customizing activity.
The eSocial solution in SAP ERP HCM follows the validation rules established by the responsible entities. However, you can insert your own entries in the system, following the established rules ou adapting the established rules to your company needs.
- Choose the event type for which you want to create a rule.
View Rules for events (V_T7BREFD_RULE)
- Specify a number and a name to identify the rule.
- Fill in the rule validity.
- Specify in which process step the rule will be applied:
- In the event generation
- In sending the event to the Government data bank
- Fill in which action will be executed by the rule:
- Post an error message, but even so generate the event
- Post a warning message, but even so generate the event
- Cancel the event generation or sending and post an error message.
- Save your entries.
- Select an entry for which you want to create the conditions.
View Rule conditions for events (V_T7BREFD_RULED)
- Specify a number and a name to identify the rule condition.
- Fill in the condition validity.
- Fill in the class that performs the condition processing, that is, the class that specifies the existence of an event. There are classes delivered in the standard system, and you can also create your own classes. The classes must use the interface IF_HRPAYBR_EFDF_VALID_RULE.
- Specify the condition priority. The priority specifies in which sequence the system will read the conditions. The conditions are mutually exclusive, that is, the system will read the conditions as soon as it finds a condition that applies.
- Save your entries.
- Select an entry for which you want to create the parameters.
View Rule conditions parameters for events (V_T7BREFD_RULEP)
- Select the parameter name. The entries of this field are prescheduled in the class that you assigned in the condition, in the previous view.
- Select the parameter value.
- The parameter value can be a value of the event that is being processed. In this case, see the input help (press F4).
- The parameter can have a fixed value, as the event type or the event status. In this case, fill in the parameter value manually and select the Fixed value field.
- Save your entries.
You need to create a rule that validates the following case: in order to generate the branches/construction sites table event , the employer information event must exist and it must be valid in the event date. Thus, you fill in the following data in this customizing activity:
Event type for which you want to create a rule: 0002 Branches/construction sites table
View Rules for events (V_T7BREFD_RULE)
Id.... | Rule name for event | Valid from | Valid to | Proc step | Error: Action |
---|---|---|---|---|---|
1 | REGRA_EXISTE_INFO_EMPREGADOR | 01.01.1800 | 31.12.9999 | Generation | Post error messages |
View Rule conditions for events (V_T7BREFD_RULED)
Id.... | Condition name | Valid from | Valid to | Class name | Priority |
---|---|---|---|---|---|
1 | REGRA_EXISTE_INFO_EMPREGADOR - ACCEPTED | 01.01.1800 | 31.12.9999 | CL_HRPAYBR_EFDR_EVENT_EXISTS | 0 |
2 | REGRA_EXISTE_INFO_EMPREGADOR - READY TO SEND | 01.01.1800 | 31.12.9999 | CL_HRPAYBR_EFDR_EVENT_EXISTS | 1 |
View Rule conditions parameters for events (V_T7BREFD_RULEP)
Condition REGRA_EXISTE_INFO_EMPREGADOR - ACCEPTED
Parameter name | Parameter value | Fixed value |
---|---|---|
BEGDA | EVENT.BEGDA | |
ENDDA | EVENT.ENDDA | |
EVENT TYPE | 0001 | X |
INF VALUE | EVENT.BUKRS | |
STATUS | 3 | X |
Condition REGRA_EXISTE_INFO_EMPREGADOR - READY TO SEND
Parameter name | Parameter value | Fixed value |
---|---|---|
BEGDA | EVENT.BEGDA | |
ENDDA | EVENT.ENDDA | |
EVENT TYPE | 0001 | X |
INF VALUE | EVENT.BUKRS | |
STATUS | 1 | X |