Fonction SAP BAPI_EXTPAYROLL_INSERT_LEGACY - Payroll Account Transfer

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
EMPLOYEENUMBER BAPI_BUS7023-PERNR N 8 Personnel Number

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Messages

Paramètre Reférence Long. Facultatif Description
PERIODS BAPI7023_PAYPERIODS 21 Period to be Transferred
WAGETYPES BAPI7023_WAGETYPES 33 Wage Type to be Transferred

Functionality
The function module is used to transfer payroll results from a third-party system.
The module fills out the interface tables for legacy date transfer ofpayroll results, for one personnel number. In this case, the databasetables T558B, T558D and T558E and possible more tables, depending onthe country.
Afterwards, it is possible to actually create payroll results with thedata transferred, for the relevant personnel numbers by starting thepayroll driver with a special schema (for example, XLK0).

Example

Notes
The module is not usually called directly. It is used for linking tothe data transfer workbench.
According to the country, for which you want to transfer data, thereare specific modules that allow the transfer of further data, forexample, tax and SI data.
INCLUDE BAPI_TABLE
The following return values are possible for the message classPYBAPI
:

Error Messages
E,,016,,Double key in PERIODS table
E,,019,,Double key in WAGETYPES table
E,,002,,Error when reading from infotype 0001
E,,003,,No authorization for reading from 0001
E,,004,,No infotype 0001 found
E,,009,,Personnel number does not exist
E,,001,,Payroll period table is empty
E,,005,,No entry in table T549Q
E,,008,,PERIODS-ENDDATE contradicts the value expected by the system
E,,007,,No entry in PERIODS table for the sequence number fromWAGETYPES table.

Message When Successfull
S,,010,,Puffer for database update was updated for personnel number
Personnel numbers, for which legacy data should betransferred.

Description
Fill out this table with the payroll periods, for which legacy datashould be transferred.

Structure

Required Input Field
COUNTRY_GROUPING Country grouping
SEQNR Sequential number for payroll period
Assign a sequential number, in ascending order, for each payrollperiod.
With the help of the sequence number, you can define in other tablessuch as the wage type table, in which payroll result a wage typeshould be included.
ENDDATE Legacy data transfer: Payroll period end date

Field in off-cycle payroll
PAYTY Payroll type
PAYID Payroll identifier
OCRSN Off-Cycle Payroll Reason
If no legacy data is transferred from off-cycle payroll, fill out thesefields with "Space".

Description
In this table, you specify the wage types that should be transferredfrom the legacy system. With the help of the sequential number, youassign the wage types to the payroll result, that they should betransferred to.

Structure
SEQNR Sequential number for payroll period
WAGETYPE Wage type
One of the following fields, usually the amount field, must be filled:

  • RATE Rate

  • NUMBER Number field

  • AMOUNT Amount