SAP HR_HR_READ_PYRES_INTERVAL Function Module for Read Last Payroll Result (IMPORT L)









HR_HR_READ_PYRES_INTERVAL is a standard hr hr read pyres interval 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 Last Payroll Result (IMPORT L) 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 hr read pyres interval FM, simply by entering the name HR_HR_READ_PYRES_INTERVAL into the relevant SAP transaction such as SE37 or SE38.

Function Group: 3HR1
Program Name: SAPL3HR1
Main Program: SAPL3HR1
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HR_HR_READ_PYRES_INTERVAL 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_HR_READ_PYRES_INTERVAL'"Read Last Payroll Result (IMPORT L)
EXPORTING
PERNR = "
* TPALL = "
MODE = "
BEGDA = "
ENDDA = "
* INPER = "In-period for payroll
* BONDT = "
* PAYTY = "
* PAYID = "
* TPRUN = "

TABLES
* RUNS = "
* MYRG = "
* RTDET = "Type for a table of payroll results
* RTRUN = "
* RTALL = "
.



IMPORTING Parameters details for HR_HR_READ_PYRES_INTERVAL

PERNR -

Data type: PERNR-PERNR
Optional: No
Call by Reference: Yes

TPALL -

Data type: CHAR1
Optional: Yes
Call by Reference: Yes

MODE -

Data type: CHAR1
Optional: No
Call by Reference: Yes

BEGDA -

Data type: BEGDA
Optional: No
Call by Reference: Yes

ENDDA -

Data type: ENDDA
Optional: No
Call by Reference: Yes

INPER - In-period for payroll

Data type: PC261-INPER
Optional: Yes
Call by Reference: Yes

BONDT -

Data type: PC261-BONDT
Optional: Yes
Call by Reference: Yes

PAYTY -

Data type: PC261-PAYTY
Optional: Yes
Call by Reference: Yes

PAYID -

Data type: PC261-PAYID
Optional: Yes
Call by Reference: Yes

TPRUN -

Data type: CHAR1
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for HR_HR_READ_PYRES_INTERVAL

RUNS -

Data type: PHRPY_RUNS_T
Optional: Yes
Call by Reference: Yes

MYRG -

Data type: PHRPY_MYRG_T
Optional: Yes
Call by Reference: Yes

RTDET - Type for a table of payroll results

Data type: HRPAYHR_TAB_OF_RESULTS
Optional: Yes
Call by Reference: Yes

RTRUN -

Data type: PHRPY_RTRUN_T
Optional: Yes
Call by Reference: Yes

RTALL -

Data type: PC207
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for HR_HR_READ_PYRES_INTERVAL 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 PHRPY_RUNS_T, "   
lv_pernr  TYPE PERNR-PERNR, "   
lv_tpall  TYPE CHAR1, "   
lv_mode  TYPE CHAR1, "   
lt_myrg  TYPE STANDARD TABLE OF PHRPY_MYRG_T, "   
lv_begda  TYPE BEGDA, "   
lt_rtdet  TYPE STANDARD TABLE OF HRPAYHR_TAB_OF_RESULTS, "   
lv_endda  TYPE ENDDA, "   
lt_rtrun  TYPE STANDARD TABLE OF PHRPY_RTRUN_T, "   
lv_inper  TYPE PC261-INPER, "   
lt_rtall  TYPE STANDARD TABLE OF PC207, "   
lv_bondt  TYPE PC261-BONDT, "   
lv_payty  TYPE PC261-PAYTY, "   
lv_payid  TYPE PC261-PAYID, "   
lv_tprun  TYPE CHAR1. "   

  CALL FUNCTION 'HR_HR_READ_PYRES_INTERVAL'  "Read Last Payroll Result (IMPORT L)
    EXPORTING
         PERNR = lv_pernr
         TPALL = lv_tpall
         MODE = lv_mode
         BEGDA = lv_begda
         ENDDA = lv_endda
         INPER = lv_inper
         BONDT = lv_bondt
         PAYTY = lv_payty
         PAYID = lv_payid
         TPRUN = lv_tprun
    TABLES
         RUNS = lt_runs
         MYRG = lt_myrg
         RTDET = lt_rtdet
         RTRUN = lt_rtrun
         RTALL = lt_rtall
. " HR_HR_READ_PYRES_INTERVAL




ABAP code using 7.40 inline data declarations to call FM HR_HR_READ_PYRES_INTERVAL

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 INPER FROM PC261 INTO @DATA(ld_inper).
 
 
"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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!