Programme SAP RPU46AF2 - Conversion of payroll results for version 4.6A

Description
The program proceeds with the conversion of the payroll results stored ntable RF of file PCL2.
A conversion only becomes necessary when modifications have been made inthe saving of payroll results.
It is the structure modification of the fields in table SV that entailssuch modifications.
The fields concerned are the following (structure PC223):

  • REGNO Contributions model (from NUM3 to CHAR4)

  • ORGA1 AS contribution fund (from NUM3 to CHAR4)

  • COTIS Social charges and tax expenses (from CHAR2 to CHAR4)

  • Each modification in the saving of payroll results automatically entailsa modification of the version number stocked in each record. The payrollcalculation as well as the evaluation report can only work with therecords containing the current number of the version. But as previousdata is often appealed to, it is necessary to adapt these ancientrecords to the format of the current version.
    This is the objective of this program.
    The program is used when the previous data is modified after a 'put'.
    Initiation is automatic because the program is situated on the commandfile that initiates the 'put' (this file is known as an XPRA: EXECUTEPROGRAM AFTER).
    Note:
    We recommend that you make a safety copy of the PCL2 file before theconversion. The program possesses a "Test" parameter (must be activatedin the code). When it is marked, no modification of the data base iseffected.

    Precondition
    The execution of the program implies that the calculation data havealready been converted into 4.0 format or, in other words, that XPRARPU40ACL has already been executed.
    This program contains only the general execution command for theconversion for France. The system appeals to a subroutine pool(RPU46AF1) for the conversion.
    This subroutine pool has been generated beforehand using the RPUGEN00program (for which you can consult the documentationfor further information).

    Output
    This program performs the conversion of data in all the clusters andclients.
    The program supplies statistics relating to the conversion, which are tobe interpreted as follows:
    A personnel number may contain several payroll results (logicalrecords). Each payroll result may use several physical records forsaving.
    Several scenarios exist for each logical record:
    The record was already converted.
    The record has a version number that is not maintained.
    An error has occurred during the conversion. The erroneous record on thedata base may be the cause.
    The record has been correctly converted.
    The cumulation of centers 1-4 gives the number of logical records.
    The data relating to the conversion are indicated per client and percluster in the statistics.
    In addition, all the results for the clients and the clusters are issuedin cumulated form.
    The statistics are either issued on the monitor, or, when the program isactivated as XPRA, through the log interface: it is thus possible toverify the result of the conversion in the transport log.

    Example

    • Conversion of the HRMS payroll results

    • Overview

    • Total number of personnel number..................."1000"

    • Total number of physical records..............."21300"

    • Total number of logical records................"20100"

    • Total number of records already converted.........."5"

    • Total number of erroneous version records.........."2"

    • Total number of erroneous records.................."1"

    • Total number of converted records.............."20092"

    • Conversion for client: "003": Country group "01" (cluster "RD")

    • Number of personnel numbers........................"1000"

    • Number of physical records....................."21300"

    • Number of logical records......................"20100"

    • Number of records already converted................"5"

    • Number of erroneous version records................"2"

    • Number of erroneous records........................"1"

    • Number of converted records...................."20092"
    • Activities
      Check the messages displayed by the system during the execution of theprogram. In the event of errors, correct them before restarting theprogram.