Difference between revisions of "SAP HCM PAYROLL"
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | ==Transacciones/Programas== | ||
+ | *Nuevo Reporte '''RPUCVRX : Payroll Results Dashboard trn. HR99S00_PY_DASHBOARD'''. Equivale a la trn. pc_payresult pero permite seleccionar varios empleados/períodos y se visualizan los resultados en una pantalla, very nice. | ||
*Borrar resultado actual de nómina: Trn. PU01 | *Borrar resultado actual de nómina: Trn. PU01 | ||
*Ver LOG: Trn. SLG1 objeto HRPU | *Ver LOG: Trn. SLG1 objeto HRPU | ||
− | *Borrar resultados cálculo nómina: Programa RPUDEL20, usar si Trn. PU01 da error | + | *Borrar resultados cálculo nómina: Programa RPUDEL20, usar si Trn. PU01 da error. Reporte RPUP2D00, ver nota 2233529 - PU01/RPUDIR00: Double for and in periods |
*Reporte RPCLSTCU: Visual.directorio resultados cálculo nómina (cluster CU), RGDIR | *Reporte RPCLSTCU: Visual.directorio resultados cálculo nómina (cluster CU), RGDIR | ||
+ | *Reportes RPCLSTyy : Display cluster for PCLx (yy = RELID) | ||
+ | *Reporte RPCLST_CALL : Visualización resultados nómina, equivale a la trn. PC_PAYRESULT | ||
+ | *HRPY_RGDIR : Tabla Directorio p.resultados cál.nómina | ||
*[[SAP_HCM_ABAP_CLUSTER|Rutinas en CLUSTER(Nómina)]] | *[[SAP_HCM_ABAP_CLUSTER|Rutinas en CLUSTER(Nómina)]] | ||
*[[SAP_HCM_TRN#Payroll|Transacciones en Payroll]] | *[[SAP_HCM_TRN#Payroll|Transacciones en Payroll]] | ||
+ | ===[https://help.sap.com/viewer/7adb1bdc7daf4f89ab93d2b61208a494/606_HRSP_75/en-US/fe4ddd538636424de10000000a174cb4.html Transacciones]=== | ||
+ | |||
+ | ==Tables PCL1, PCL2, PCL3 and PCL4== | ||
+ | |||
+ | Which information is stored in the files? | ||
+ | |||
+ | File PCL1 is the basis for the HR work area data. It contains information from the time data recording, for example, incentive wage time tickets or infotype supplement texts. | ||
+ | |||
+ | File PCL2 contains derived information, for example, payroll results. It also contains all generated payroll schemas. | ||
+ | |||
+ | File PCL3 contains applicant data. | ||
+ | |||
+ | File PCL4 contains the change documents for HR master data and recruitment. | ||
+ | |||
+ | The structure of PCLn files corresponds to that of the INDX file which you may be familiar with from other applications. The structure of all PCLn files (n = 1, 2, 3, and 4) is identical. | ||
+ | |||
+ | Structure of Files | ||
+ | |||
+ | Like in almost all SAP files, the key element with the highest priority is the client; data within a client is grouped according to basic relations (field PCLn-RELID). | ||
+ | |||
+ | The type of basic relation is known as a cluster and characterizes the stored data according to the type, for example, cluster RX contains the payroll result for country X (from table T500L) and cluster TE contains the trip costs data. | ||
+ | |||
+ | Depending on the cluster, the structure of PCLn-SRTFD is defined in a field string xx-KEY, which is defined in an include RPCnxxy0. | ||
+ | |||
+ | Naming conventions | ||
+ | *n = 1, 2, 3, or 4 (for PCL1, PCL2, PCL3, or PCL4) | ||
+ | *xx = for the cluster | ||
+ | *y = 0 for international clusters | ||
+ | *y = country grouping according to T500L for national clusters | ||
+ | |||
+ | The personnel number is usually the first component of xx-KEY. | ||
+ | |||
+ | ===FUNCTION MODULES=== | ||
+ | |||
+ | Read RGDIR table: PCL2 with relid = CU | ||
+ | <nowiki> | ||
+ | data: ltx_rgdir like pc261 occurs 0 with header line, | ||
+ | ltx_rgdir_o like pc261 occurs 0 with header line, | ||
+ | lsx_rgdir like ltx_rgdir, | ||
+ | lsx_result type pay99_result."for Chile, type PAYCL_RESULT | ||
+ | |||
+ | call function 'CU_READ_RGDIR_NEW' | ||
+ | exporting | ||
+ | persnr = pf_pernr | ||
+ | check_read_authority = space | ||
+ | importing | ||
+ | molga = lfx_molga | ||
+ | tables | ||
+ | in_rgdir = ltx_rgdir | ||
+ | exceptions | ||
+ | others = 1. | ||
+ | if sy-subrc <> 0. | ||
+ | move sy-subrc to pfx_subrc. | ||
+ | return. | ||
+ | endif.</nowiki> | ||
+ | |||
+ | Read Payroll Results | ||
+ | |||
+ | <nowiki>* get relid | ||
+ | select single * from t500l | ||
+ | into lsx_t500l | ||
+ | where molga = lfx_molga. | ||
+ | move lsx_t500l-relid to lfx_relid. | ||
+ | |||
+ | loop at ltx_rgdir into lsx_rgdir | ||
+ | where fpend >= p0045-begda. "for performance | ||
+ | |||
+ | if lflag_loan_exists = abap_true. | ||
+ | exit. "stop loop at rgdir, because period was found | ||
+ | endif. | ||
+ | |||
+ | call function 'PYXX_READ_PAYROLL_RESULT' | ||
+ | exporting | ||
+ | clusterid = lfx_relid | ||
+ | employeenumber = pf_pernr | ||
+ | sequencenumber = lsx_rgdir-seqnr | ||
+ | read_only_international = 'X' | ||
+ | check_read_authority = ' ' | ||
+ | changing | ||
+ | payroll_result = lsx_result | ||
+ | exceptions | ||
+ | others = 1. | ||
+ | endloop.</nowiki> | ||
+ | |||
+ | == [https://blogs.sap.com/2015/04/23/wage-type-creation-in-sap-hcm/ Wage Type Creation In SAP HCM] == | ||
+ | |||
+ | ==[https://help.sap.com/viewer/3ad21cfaac994d858885102b9b53ec16/617_HRSP_64/en-US/253ec2531bb9b44ce10000000a174cb4.html Internal Tables for Payroll]== | ||
+ | |||
+ | ==[[SAP_HCM_SCHEMA|Esquemas, reglas, funciones, etc.]]== |
Latest revision as of 22:01, 21 January 2022
Contents
Transacciones/Programas
- Nuevo Reporte RPUCVRX : Payroll Results Dashboard trn. HR99S00_PY_DASHBOARD. Equivale a la trn. pc_payresult pero permite seleccionar varios empleados/períodos y se visualizan los resultados en una pantalla, very nice.
- Borrar resultado actual de nómina: Trn. PU01
- Ver LOG: Trn. SLG1 objeto HRPU
- Borrar resultados cálculo nómina: Programa RPUDEL20, usar si Trn. PU01 da error. Reporte RPUP2D00, ver nota 2233529 - PU01/RPUDIR00: Double for and in periods
- Reporte RPCLSTCU: Visual.directorio resultados cálculo nómina (cluster CU), RGDIR
- Reportes RPCLSTyy : Display cluster for PCLx (yy = RELID)
- Reporte RPCLST_CALL : Visualización resultados nómina, equivale a la trn. PC_PAYRESULT
- HRPY_RGDIR : Tabla Directorio p.resultados cál.nómina
- Rutinas en CLUSTER(Nómina)
- Transacciones en Payroll
Transacciones
Tables PCL1, PCL2, PCL3 and PCL4
Which information is stored in the files?
File PCL1 is the basis for the HR work area data. It contains information from the time data recording, for example, incentive wage time tickets or infotype supplement texts.
File PCL2 contains derived information, for example, payroll results. It also contains all generated payroll schemas.
File PCL3 contains applicant data.
File PCL4 contains the change documents for HR master data and recruitment.
The structure of PCLn files corresponds to that of the INDX file which you may be familiar with from other applications. The structure of all PCLn files (n = 1, 2, 3, and 4) is identical.
Structure of Files
Like in almost all SAP files, the key element with the highest priority is the client; data within a client is grouped according to basic relations (field PCLn-RELID).
The type of basic relation is known as a cluster and characterizes the stored data according to the type, for example, cluster RX contains the payroll result for country X (from table T500L) and cluster TE contains the trip costs data.
Depending on the cluster, the structure of PCLn-SRTFD is defined in a field string xx-KEY, which is defined in an include RPCnxxy0.
Naming conventions
- n = 1, 2, 3, or 4 (for PCL1, PCL2, PCL3, or PCL4)
- xx = for the cluster
- y = 0 for international clusters
- y = country grouping according to T500L for national clusters
The personnel number is usually the first component of xx-KEY.
FUNCTION MODULES
Read RGDIR table: PCL2 with relid = CU
data: ltx_rgdir like pc261 occurs 0 with header line, ltx_rgdir_o like pc261 occurs 0 with header line, lsx_rgdir like ltx_rgdir, lsx_result type pay99_result."for Chile, type PAYCL_RESULT call function 'CU_READ_RGDIR_NEW' exporting persnr = pf_pernr check_read_authority = space importing molga = lfx_molga tables in_rgdir = ltx_rgdir exceptions others = 1. if sy-subrc <> 0. move sy-subrc to pfx_subrc. return. endif.
Read Payroll Results
* get relid select single * from t500l into lsx_t500l where molga = lfx_molga. move lsx_t500l-relid to lfx_relid. loop at ltx_rgdir into lsx_rgdir where fpend >= p0045-begda. "for performance if lflag_loan_exists = abap_true. exit. "stop loop at rgdir, because period was found endif. call function 'PYXX_READ_PAYROLL_RESULT' exporting clusterid = lfx_relid employeenumber = pf_pernr sequencenumber = lsx_rgdir-seqnr read_only_international = 'X' check_read_authority = ' ' changing payroll_result = lsx_result exceptions others = 1. endloop.