Fonction SAP BAPI_EXTPAYROLL_INSERT_OUT - Payroll Result Update by a Third-Party Payroll Run

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
ARREARS BAPI7023_ARREARS 20 X Arrears to be Transferred
PERIODS BAPI7023_PAYPERIODS_OUT 20 Period to be Transferred
WAGETYPES BAPI7023_WAGETYPES_OUT 58 Wage Type to be Transferred

Functionality
This method is used to import payroll results from a third-party systemto the SAP HR system.
The module fills out the interface tables T558B, T558D, T558E and othertables, depending on the country, using the input data in thethird-party system. Afterwards, the payroll run must be started with aspecial import schema in order to import the data to the Rx payrollresults in cluster PCL2. For this purpose, SAP provides the XINFschema as an example.
The PERIODS, WAGETYPES and ARREARS tables are linked using theSEQUENCENUMBER field. This field is used to assign the wage to apayroll period in WAGETYPES, that links to an entry in the PERIODStable. The sequential number can either be deduced from the ExportIDocs or exported using PU12 (&VAR-SEQNR).

Further information
Distribution (ALE) IMG
The following return values can occur for the PYBAPI messageclass:

Error Messages
E,,016,,Entries with the same key exist in the PERIODS table
E,,017,,Entries with the same key exist in the WAGETYPES table
E,,018,,Entries with the same key exist in the ARREARS table
E,,007,,No entry in PERIODS table for sequence number from WAGETYPES
table
E,,011,,No entry in RGDIR for Personnel number, Sequence number
E,,013,,Period end date does not correspond with the date from RGDIR
E,,014,,Payroll type does not correspond with the value from RGDIR
E,,015,,Payroll-ID does not correspond with the value from RGDIR

Success Message
S,,011,,Buffer for data base update was updated for personnel number

Description
In the EMPLOYEENUMBER parameter, you should transfer the personnelnumber for which the wage types should be imported.

Description
The data copied in the ARREARS table is stored in table T558E. Fromhere, the data can be copied to the ARRRS table in the payroll results.

Description
The PERIODS table must contain the periods that should be imported.
As well as the payroll type, payroll Id and period date, you must alsospecify the sequential number of the payroll result (Feld SEQNR_CD)which should be imported to. The sequential number can either begathered from the Export IDocs or exported using PU12 (
Var-seqnr). the periods table entries are written in table t558b.

Description
The WAGETYPES table must contain the wage types that should betransferred to the RT results table of the payroll results. They aretemporarily stored in table T558D.
The fields in the WAGETYPES table correspond to those in the RT.

309381PU12: Cleanup