{"audience":"Payroll specialists, payroll managers and internal control teams.","authorization_objects":[{"note":"Authorization to read personnel data by organizational assignment","object":"P_ORGIN"},{"note":"Read authorization for the payroll results cluster (PCL2)","object":"P_PCLX"},{"note":"Simplified authorization check for the report (optional)","object":"P_ABAP"}],"components":[],"countries":[],"effort_days_max":7,"effort_days_min":4,"effort_size":"M","faq":[{"a":"Simulation results are not saved in the cluster. The comparison is therefore done after the payroll run and before exit, which still leaves time to check before the payment file.","q":"Can simulation results be compared?"},{"a":"The latest valid result of each period is compared. If the current period includes a retroactive recalculation, the line shows the Retro flag; part of the difference may belong to an earlier period.","q":"How are retroactive calculations handled?"},{"a":"Total gross, net pay, statutory deductions and additional payment wage types are usually enough. The wage type list is stored in a selection variant and agreed with the payroll team during installation.","q":"Which wage types should be compared?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"layout","label":"User-specific layout variants","note":""},{"code":"drilldown","label":"Double-click drill-down to the document","note":"Double-clicking a line opens the payroll result in PC_PAYRESULT."},{"code":"excel","label":"Export to Excel","note":""},{"code":"background","label":"Runs as a background job","note":""},{"code":"email","label":"Send the result by email","note":"Can be sent to the payroll manager before payroll is exited."}],"functions":[{"name":"PYXX_READ_PAYROLL_RESULT","role":"Reads the payroll result for each period from the cluster"}],"gap":"PC00_M99_CWTR lists wage type amounts period by period, but it does not put two periods side by side, calculate the difference and percentage, or isolate variances above a threshold. Teams match the output of two periods in Excel; retroactive calculations make that matching even harder.","id":"hcm-payroll-wage-type-period-variance","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-17","logic":"1. For the selected payroll area and employee selection, the valid results of the two periods to compare are found in HRPY_RGDIR (the latest result for each period, SRTZA = 'A').\n2. Each result is read with PYXX_READ_PAYROLL_RESULT; the cluster ID of the country comes from T500L. Amounts of the selected wage types are summed from the RT table per employee and wage type.\n3. Difference = current period amount − previous period amount; percentage = difference ÷ |previous period amount| × 100. A wage type missing in the previous period is flagged 'new', one missing in the current period 'dropped'.\n4. Lines whose absolute difference is below the amount threshold and whose percentage is below the percentage threshold are removed. If the current period contains a retroactive run (INPER ≠ FPPER), the line gets a note.\n5. Org unit, cost center and name come from PA0001, the wage type text from T512T; the result is shown with subtotals per employee.","module":"HCM","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"Pers. no.","source_field":"PERNR","source_table":"HRPY_RGDIR"},{"calculated":false,"formula":"","label":"Name","source_field":"ENAME","source_table":"PA0001"},{"calculated":false,"formula":"","label":"Org unit","source_field":"ORGEH","source_table":"PA0001"},{"calculated":false,"formula":"","label":"Cost center","source_field":"KOSTL","source_table":"PA0001"},{"calculated":false,"formula":"","label":"Wage type","source_field":"LGART","source_table":"T512T"},{"calculated":false,"formula":"","label":"Wage type text","source_field":"LGTXT","source_table":"T512T"},{"calculated":true,"formula":"Sum of RT-BETRG in the comparison period","label":"Previous period","source_field":null,"source_table":null},{"calculated":true,"formula":"Sum of RT-BETRG in the current period","label":"Current period","source_field":null,"source_table":null},{"calculated":true,"formula":"Current period − previous period","label":"Difference","source_field":null,"source_table":null},{"calculated":true,"formula":"Difference ÷ |previous period| × 100","label":"Difference (%)","source_field":null,"source_table":null},{"calculated":true,"formula":"New, dropped or above threshold","label":"Flag","source_field":null,"source_table":null},{"calculated":true,"formula":"X when the current period has a result with HRPY_RGDIR-INPER ≠ FPPER","label":"Retro","source_field":null,"source_table":null}],"parameters":[{"example":"TM","kind":"select_option","label":"Payroll area","name":"S_ABKRS","ref_field":"PA0001-ABKRS","required":true},{"example":"202611","kind":"parameter","label":"Current period (YYYYPP)","name":"P_CURPER","ref_field":"HRPY_RGDIR-FPPER","required":true},{"example":"202610","kind":"parameter","label":"Comparison period (blank = previous period)","name":"P_PRVPER","ref_field":"HRPY_RGDIR-FPPER","required":false},{"example":"00001024","kind":"select_option","label":"Personnel number","name":"S_PERNR","ref_field":"PA0001-PERNR","required":false},{"example":"50000120","kind":"select_option","label":"Org unit","name":"S_ORGEH","ref_field":"PA0001-ORGEH","required":false},{"example":"/101","kind":"select_option","label":"Wage type","name":"S_LGART","ref_field":"T512T-LGART","required":false},{"example":"15","kind":"parameter","label":"Variance threshold (%)","name":"P_PCT","ref_field":"","required":false},{"example":"2500","kind":"parameter","label":"Variance threshold (amount)","name":"P_AMT","ref_field":"","required":false}],"part_of":["hcm-salary-review-pay-equity-pack"],"performance":"Because the cluster is read per employee, run the report in the background for large payroll areas and limit the wage type selection to the ones on the control list (gross, net, statutory deductions, additional payments).","quote_url":"https://nekuhub.com/en/request-a-quote/?report=hcm-payroll-wage-type-period-variance","related":["hcm-additional-payment-upload","hcm-bank-details-changed-control","hcm-master-data-consistency-before-payroll"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Lists wage type amounts; does not compare two periods or calculate variances.","tcode":"PC00_M99_CWTR"},{"note":"Runs or simulates payroll; produces no variance list between periods.","tcode":"PC00_M99_CALC"}],"summary":"A custom ALV report that compares the payroll results of one period with the previous period per employee and wage type, and lists variances above a percentage or amount threshold as well as wage types that appear or disappear. The payroll owner checks unusual changes in one list before the payment file and the posting to accounting.","tables":[{"access":"read","join_on":"","role":"Payroll results directory: period, sequence number, current result and retro information (driving table)","table":"HRPY_RGDIR","variant":"both"},{"access":"read","join_on":"PCL2-RELID = T500L-RELID AND PCL2-SRTFD = HRPY_RGDIR-PERNR + HRPY_RGDIR-SEQNR","role":"Payroll results cluster (RT wage type table), read through the read function","table":"PCL2","variant":"both"},{"access":"read","join_on":"T500L-MOLGA = T001P-MOLGA","role":"Cluster ID per country grouping","table":"T500L","variant":"both"},{"access":"read","join_on":"PA0001-PERNR = HRPY_RGDIR-PERNR","role":"Name, org unit, cost center and payroll area","table":"PA0001","variant":"both"},{"access":"read","join_on":"T512T-SPRSL = SY-LANGU AND T512T-MOLGA = T500L-MOLGA","role":"Wage type text","table":"T512T","variant":"both"}],"title":"Payroll Wage Type Period Comparison and Variance Report","url":"https://nekuhub.com/en/reports/payroll-wage-type-period-comparison-variance-report/","vendor_id":"nekudos"}