Ansicht
Dokumentation

PAY_ES_SS_AFI - BAdI: Affiliation message (AFI)

PAY_ES_SS_AFI - BAdI: Affiliation message (AFI)

RFUMSV00 - Advance Return for Tax on Sales/Purchases   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

This business add-in is used in component Cálculo Payroll: Spain (PY-ES). With this business add-in, you can process report Affiliation Message (RPCAFIE0) as follows:

  • Control the data that must be updated by the report in infotype .AFI Message Data (0799) when said report is launched with option Use automation selected. The BAdI lets you implement your own logic to complete the infotype fields. The report calls this BAdI, which provides the data that will be recorded in the infotype records.
  • Modify the data of several segments.
  • Fill in the data of segment DBA
  • Have specific segments generated.

The BADI_HRPAYES_AFIE0 interface is made up of the following methods:

  • Change automatism data for recording in infotype (UPD_AUTOMATISM_DATA): the report calls this method when you select the operations that you wish to update and press Create records. The report also calls this method through the automatism option.
  • Update automatism data before displaying ALV (ACT_AUTOMATISM_DATA): the report calls this method through the automatism option.
  • Generate automation data by employee(GEN_AUTOMATISM_DATA): the report calls this method through the automatism option. According to the entries in infotypes Actions(0000) and Social Insurance(0061), the method allows you to generate your own rules of automatisms to create entries in infotype 0799.
  • Change data of segment DAM for report RPCAFIE0 (UPD_DAM_DATA): the report calls this method during the .AFI message generation process.
  • Change data of segment TRA for report RPCAFIE0 (UPD_TRA_DATA): the report calls this method during the .AFI message generation process.
  • Change data of segment FAB for report RPCAFIE0 (UPD_FAB_DATA): the report calls this method during the .AFI message generation process.
  • Change data of segment AYN for report RPCAFIE0 (UPD_AYN_DATA): the report calls this method during the .AFI message generation process.
  • Change data of segment FCT for report RPCAFIE0 (UPD_FCT_DATA): the report calls this method during the .AFI message generation process.
  • Change data of segment OTD for report RPCAFIE0 (UPD_OTD_DATA): the report calls this method during the .AFI message generation process.
  • Change data of segment DBA for report RPCAFIE0 (UPD_DBA_DATA): the report calls this method during the .AFI message generation process.
  • Generate segment DAM(GENERATE_DAM): This method allows you to decide if the report shall or shall not generate a DAM segment. To generate a DAM segment, the method reads the validity start date information from report RPCAFIE0, the record of infotype 0799 and the movement that is used where generating the .AFI message.
  • Generate segments in the file (GENERATE_SEGMENTS):this method allows you to generate any other segment of the .AFI segment. Therefore, the method reads the record of infotype 0799 and the .AFI message created so far. Based on the file created so far, you can create or modify content lines.






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 4156 Date: 20240523 Time: 184613     sap01-206 ( 72 ms )