HCM Function module Used the same way in S/4HANA

CU_READ_RGDIR Read Payroll Directory (Cluster CU)

Reads the payroll directory (RGDIR) of a personnel number from cluster CU and returns the country grouping. Each line describes one payroll run with period, payment date and sequence number. Filter the lines you need (for example the current results) and pass their sequence numbers to PYXX_READ_PAYROLL_RESULT.

Function group
RPRU
Remote-enabled (RFC)
No
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
PERSNRP0000-PERNRPersonnel numberYes
BUFFERHRPAY_BUFFERPayroll buffer—
NO_AUTHORITY_CHECKXFELDSkip the authorization check—

Exporting parameters

ParameterTypeDescription
MOLGAT500L-MOLGACountry grouping

Tables parameters

ParameterTypeDescriptionRequired
IN_RGDIRPC261Payroll directory (RGDIR)Yes

Exceptions

  • NO_RECORD_FOUND — No payroll result found

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'CU_READ_RGDIR'
  EXPORTING
    persnr = lv_persnr
  IMPORTING
    molga = lv_molga
  TABLES
    in_rgdir = lt_in_rgdir
  EXCEPTIONS
    no_record_found = 1
    OTHERS = 2.

Related tables

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report