SAP PYXX_READ_RGDIR_PAYRESULTS Function Module for Imports the Results in RGDIR









PYXX_READ_RGDIR_PAYRESULTS is a standard pyxx read rgdir payresults SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Imports the Results in RGDIR 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 pyxx read rgdir payresults FM, simply by entering the name PYXX_READ_RGDIR_PAYRESULTS into the relevant SAP transaction such as SE37 or SE38.

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



Function PYXX_READ_RGDIR_PAYRESULTS 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 'PYXX_READ_RGDIR_PAYRESULTS'"Imports the Results in RGDIR
EXPORTING
CLUSTERID = "Payroll Cluster
EMPLOYEENUMBER = "Personnel Number
* READ_ONLY_BUFFER = "'X': Read From The Puffer Only
* READ_ONLY_INTERNATIONAL = "'X': Only international Part (PAY99_RESULT)

TABLES
RGDIR = "Section of RGDIR
IMPORTED_PERIODS = "Table of Imported Results

EXCEPTIONS
IMPORT_ERROR = 1
.



IMPORTING Parameters details for PYXX_READ_RGDIR_PAYRESULTS

CLUSTERID - Payroll Cluster

Data type: PCL2-RELID
Optional: No
Call by Reference: No ( called with pass by value option)

EMPLOYEENUMBER - Personnel Number

Data type: PC200-PERNR
Optional: No
Call by Reference: No ( called with pass by value option)

READ_ONLY_BUFFER - 'X': Read From The Puffer Only

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

READ_ONLY_INTERNATIONAL - 'X': Only international Part (PAY99_RESULT)

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

TABLES Parameters details for PYXX_READ_RGDIR_PAYRESULTS

RGDIR - Section of RGDIR

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

IMPORTED_PERIODS - Table of Imported Results

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

EXCEPTIONS details

IMPORT_ERROR - Error during import

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

Copy and paste ABAP code example for PYXX_READ_RGDIR_PAYRESULTS 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_rgdir  TYPE STANDARD TABLE OF PC261, "   
lv_clusterid  TYPE PCL2-RELID, "   
lv_import_error  TYPE PCL2, "   
lv_employeenumber  TYPE PC200-PERNR, "   
lt_imported_periods  TYPE STANDARD TABLE OF PC200, "   
lv_read_only_buffer  TYPE PC200, "   
lv_read_only_international  TYPE PC200. "   

  CALL FUNCTION 'PYXX_READ_RGDIR_PAYRESULTS'  "Imports the Results in RGDIR
    EXPORTING
         CLUSTERID = lv_clusterid
         EMPLOYEENUMBER = lv_employeenumber
         READ_ONLY_BUFFER = lv_read_only_buffer
         READ_ONLY_INTERNATIONAL = lv_read_only_international
    TABLES
         RGDIR = lt_rgdir
         IMPORTED_PERIODS = lt_imported_periods
    EXCEPTIONS
        IMPORT_ERROR = 1
. " PYXX_READ_RGDIR_PAYRESULTS




ABAP code using 7.40 inline data declarations to call FM PYXX_READ_RGDIR_PAYRESULTS

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 RELID FROM PCL2 INTO @DATA(ld_clusterid).
 
 
"SELECT single PERNR FROM PC200 INTO @DATA(ld_employeenumber).
 
 
 
 


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!