Ansicht
Dokumentation

PAY_BR_EFD35 - Create validation rules for events

PAY_BR_EFD35 - Create validation rules for events

ROGBILLS - Synchronize billing plans   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

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.

  1. Choose the event type for which you want to create a rule.

View Rules for events (V_T7BREFD_RULE)

  1. Specify a number and a name to identify the rule.
  2. Fill in the rule validity.
  3. Specify in which process step the rule will be applied:
  • In the event generation

  • In sending the event to the Government data bank

  1. 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.

  1. Save your entries.
  2. Select an entry for which you want to create the conditions.

View Rule conditions for events (V_T7BREFD_RULED)

  1. Specify a number and a name to identify the rule condition.
  2. Fill in the condition validity.
  3. 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.
  4. 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.
  5. Save your entries.
  6. Select an entry for which you want to create the parameters.

View Rule conditions parameters for events (V_T7BREFD_RULEP)

  1. Select the parameter name. The entries of this field are prescheduled in the class that you assigned in the condition, in the previous view.
  2. 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.
  1. 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






ABAP Short Reference   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 7773 Date: 20240523 Time: 211148     sap01-206 ( 69 ms )
Parameter name Parameter value Fixed value
BEGDA EVENT.BEGDA
ENDDA EVENT.ENDDA
EVENT TYPE 0001 X
INF VALUE EVENT.BUKRS
STATUS 1 X