Programme SAP RPCAFIE1 - RED system affiliation message

Description
Program RPCAFIE1 creates a file for sending information to the socialinsurance administration in order to maintain employee details in theaffiliation data file. You can use this program to report employee entryand leaving dates and changes in employee data. The program supportsdata change notifications that include all employee-level actions:change of contribution group, change of contract and change of IAIDepigraph. It also allows you to change or delete earlier transactions.
The file is created in accordance with the specifications published bythe Social Insurance Administration in relation to the exchange ofdocuments through the RED (Remisión Electrónica de Documentos) system,and is based on EDI (Electronic Data Interchange) technology.
The data can be displayed and stored on a data medium using programRPUTMSE0. You have the option to display individualISM records, and you can also choose to display them using MS-Word orMS-Excel.
The structure of the affiliation message allows you to include thefollowing in a single EDI exchange:
Employee grouping by company and action.
Documentation of the successive employee entry and leaving data andchanges in different employee details.
Multi-category, multi-company, multi-Contribution Account Code (CAC).
The AFI message is formed by the following segments:
EMP: Company ID
RZS: Registered company or trade name
EXC: Business and code (1)
TRA: Employee
AYN: Last names and first name
DOM: Address (1)
LDD: Decoded Address Town (1)
FAB: Entry and leaving date
Note: (1) Not created by the program, because it is optional for theSocial Insurance Administration.

Functionality
The program creates the affiliation message using system measures atemployee level. It generally includes those actions and reasons whereone or more actions are associated to the corresponding reasons in theRED system through the 'Adjust measures and reasons for SocialInsurance' table (T5E30). You must therefore set the corresponding basicdata through the IMG activity Determine measures forthe RED system before you can successfully run the program.
Exceptions to this are the change of epigraph (MT), change of contractcategory (MC) and change of contribution group (MG) measures, which arereported automatically. You do not need to assign these in table T5E30.
To report these changes at employee level, for example, the programconsults the 'Personnel actions' infotype (0000). For each segment inthis infotype, it looks in the 'Social Insurance' infotype (0061) to seeif there are any changes (in title, contract category or contributiongroup). Any changes are automatically reported in the FAB segment.Furthermore, for each segment of infotype 0000, the program also looksin infotype 0061 for any changes to the contribution account code. If ithas changed, the program reports it by generating to EMP segments with aleaving action in the previous CAC and an etry action in the new CAC.
The data exchange file generated in the user's SAP server logondirectory will be named:

  • MMM.RRRRRRRR.V01

  • where:
    • MMM - is the logon client and

    • RRRRRRRR - is the name of the report being run
    • Parameter

      • Action and situation: codes that tell the system the employee-level
      • transaction and reason that are to be performed. If you do not specifythe action or reason, the system will select all actions and reasonstaht have taken place in the period, for the selected persons. Theprogram provides the following options:
        Action,,Reason,,Comments
        MA,,01,,Entry
        MB,,51,,Voluntary leaving, direct employment employee (*)
        MB,,54,,Non-voluntary leaving (*)
        MB,,56,,Leaving due to death (*)
        MB,,58,,Leaving due to change to pensioner status (*)
        MB,,61,,Leaving due to military service
        MB,,63,,Voluntary leave of absence (*)
        MB,,64,,Leave of absence due to legal strike or lockout (*)
        MG,,,,Change of contribution group (**)
        MC,,,,Change of contract (**)
        MT,,,,Change of IA and ID epigraph (**)
        ME,,,,Deletion of previous transaction
        MD,,,,Deletion of consolidated entry records
        Note:
        For leaving actions (*), you should take the following into account:
        The leaving date for Social Insurance is the day prior to that on whichthe leaving measure starts in infotype 00.
        Therefore, if you want to report a leaving action, the evaluation timeinterval entered when you run the program should include the start dateof the leaving measure.
        Actions marked with (**) are reported automatically. It is neithernecessary not advisable to assign them a measure in table T5E30. Infact, while the system still accepts the assignation, information errorsmay occur.
        Example:
        If you assign any change measure at all to an MC action, and there hasnot actually been any contract change at all in infotype 0061, acontract change may be reported in error.
        • Message syntax ID: Identifies the type of message that follows.

        • Message syntax version: Version of the previous message.

        • Process syntax ID: Identifies the version of the validation, printing
        • and processing program the sender has used prior to the exchange.
          • Process syntax version: Version of the previous validation module.

          • Authorization key: Key provided by the Social Insurance Administration
          • with the administrtive authorisation to submit employee payrolllistings. One key is granted per company, group of companies orauthorised professional association.
            • SILCON key. SILNET network: A key provided by the Social Insurance
            • Administration. It identifies each natural person that interacts withthe system.
              • New Silcon key: Due to the limited duration of the SILCON key, a new
              • password is requested. It will be entered as a new password when theexisting one has expired, or if you want to change it. (Future use).
                • Submission date: Year, month and day that the transfer was prepared.

                • Submission time: In hours and minutes.

                • External AFI file name: Specifies the name of the flat MS-DOS file with
                • AFI suffix that has been prepared for the exchange.
                  • Test indicator: Specifies the type of transfer:

                  • Blank: Normal
                    S: Replaces
                    P: Tests
                    • CENDAR reference: Social Insurance Administration reference for internal
                    • use.
                      • Personal key: The operator's personal key.

                      • Print indicator: Specifies whether the user requires a printed reply to
                      • the request made-

                        Tables to be taken into account for correctly generating an affiliationmessage

                        • T5E30: Adapting measures and reasons for Social Insurance

                        • T5E31: Actions and situations for affiliation messages
                        • A special case: Changing a prior transatcion
                          If you want to notify a change in a previous transaction, you have toassociate two actions to a measure and reason, according to the REDsystem. The first action would be to delete the transaction to bechanged (ME), and the second to notify the entry, leaving or change inthe employee data.

859384HR SP ES26: Cambio 04
1278154ES28.11: Affiliation Message (AFI) - Changes in RPCAFIE0
1021657CONSULT.: HRMS España - Nota de Notas
1130601ES27.6: RPCAFIE1 error in case of absence without end date
182921CONSULT.: Afiliación
576082HR SP ES23: Cambio 12
524124CONSULT: Contratos de relevo.
507604HR SP ES22 - Contenido - Content Description