SAP HR_RO_READ_PYRES_DEPTH Function Module for Read and process payroll results
HR_RO_READ_PYRES_DEPTH is a standard hr ro read pyres depth SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read and process payroll results processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for hr ro read pyres depth FM, simply by entering the name HR_RO_READ_PYRES_DEPTH into the relevant SAP transaction such as SE37 or SE38.
Function Group: 3RO1
Program Name: SAPL3RO1
Main Program: SAPL3RO1
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_RO_READ_PYRES_DEPTH pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'HR_RO_READ_PYRES_DEPTH'"Read and process payroll results.
EXPORTING
PERNR = "Personnel number
PERMO = "Period parameters
PAPER = "For-period for payroll
BONDT = "Off-cycle payroll payment date
PAYTY = "Payroll type
PAYID = "Payroll identifier
DEPTH = "Depth to which results should be read
TABLES
* RUNS = "
* RTDET = "Type for a table of payroll results
* MYRG = "RGDIR transformed
* RTRUN = "Summary per run
IMPORTING Parameters details for HR_RO_READ_PYRES_DEPTH
PERNR - Personnel number
Data type: PERNR-PERNROptional: No
Call by Reference: Yes
PERMO - Period parameters
Data type: PC261-PERMOOptional: No
Call by Reference: Yes
PAPER - For-period for payroll
Data type: PC261-INPEROptional: No
Call by Reference: Yes
BONDT - Off-cycle payroll payment date
Data type: PC261-BONDTOptional: No
Call by Reference: Yes
PAYTY - Payroll type
Data type: PC261-PAYTYOptional: No
Call by Reference: Yes
PAYID - Payroll identifier
Data type: PC261-PAYIDOptional: No
Call by Reference: Yes
DEPTH - Depth to which results should be read
Data type: DOptional: No
Call by Reference: Yes
TABLES Parameters details for HR_RO_READ_PYRES_DEPTH
RUNS -
Data type: PROPY_RUNS_TOptional: Yes
Call by Reference: Yes
RTDET - Type for a table of payroll results
Data type: HRPAYRO_TAB_OF_RESULTSOptional: Yes
Call by Reference: No ( called with pass by value option)
MYRG - RGDIR transformed
Data type: PROPY_MYRG_TOptional: Yes
Call by Reference: Yes
RTRUN - Summary per run
Data type: PROPY_RTRUN_TOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for HR_RO_READ_PYRES_DEPTH Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_runs | TYPE STANDARD TABLE OF PROPY_RUNS_T, " | |||
| lv_pernr | TYPE PERNR-PERNR, " | |||
| lv_permo | TYPE PC261-PERMO, " | |||
| lt_rtdet | TYPE STANDARD TABLE OF HRPAYRO_TAB_OF_RESULTS, " | |||
| lt_myrg | TYPE STANDARD TABLE OF PROPY_MYRG_T, " | |||
| lv_paper | TYPE PC261-INPER, " | |||
| lv_bondt | TYPE PC261-BONDT, " | |||
| lt_rtrun | TYPE STANDARD TABLE OF PROPY_RTRUN_T, " | |||
| lv_payty | TYPE PC261-PAYTY, " | |||
| lv_payid | TYPE PC261-PAYID, " | |||
| lv_depth | TYPE D. " |
|   CALL FUNCTION 'HR_RO_READ_PYRES_DEPTH' "Read and process payroll results |
| EXPORTING | ||
| PERNR | = lv_pernr | |
| PERMO | = lv_permo | |
| PAPER | = lv_paper | |
| BONDT | = lv_bondt | |
| PAYTY | = lv_payty | |
| PAYID | = lv_payid | |
| DEPTH | = lv_depth | |
| TABLES | ||
| RUNS | = lt_runs | |
| RTDET | = lt_rtdet | |
| MYRG | = lt_myrg | |
| RTRUN | = lt_rtrun | |
| . " HR_RO_READ_PYRES_DEPTH | ||
ABAP code using 7.40 inline data declarations to call FM HR_RO_READ_PYRES_DEPTH
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single PERNR FROM PERNR INTO @DATA(ld_pernr). | ||||
| "SELECT single PERMO FROM PC261 INTO @DATA(ld_permo). | ||||
| "SELECT single INPER FROM PC261 INTO @DATA(ld_paper). | ||||
| "SELECT single BONDT FROM PC261 INTO @DATA(ld_bondt). | ||||
| "SELECT single PAYTY FROM PC261 INTO @DATA(ld_payty). | ||||
| "SELECT single PAYID FROM PC261 INTO @DATA(ld_payid). | ||||
Search for further information about these or an SAP related objects