SAP PYXX_READ_PAYROLL_RESULT Function Module for Generic Import of Payroll Results









PYXX_READ_PAYROLL_RESULT is a standard pyxx read payroll result SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generic Import of 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 pyxx read payroll result FM, simply by entering the name PYXX_READ_PAYROLL_RESULT into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRPAY99_IMPEXP
Program Name: SAPLHRPAY99_IMPEXP
Main Program:
Appliation area: P
Release date: 01-Oct-1998
Mode(Normal, Remote etc): Normal Function Module
Update:



Function PYXX_READ_PAYROLL_RESULT 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_PAYROLL_RESULT'"Generic Import of Payroll Results
EXPORTING
* CLUSTERID = "Payroll Cluster
EMPLOYEENUMBER = "Personnel Number
SEQUENCENUMBER = "Sequence Number
* READ_ONLY_BUFFER = ' ' "'X': Read From The Puffer Only
* READ_ONLY_INTERNATIONAL = ' ' "'X': International Part Only (PAY99_RESULT)
* ARC_GROUP = ' ' "Archiving Group
* CHECK_READ_AUTHORITY = 'X' "
* FILTER_CUMULATIONS = 'X' "Filter Cumulation Tables
* CLIENT = "Client

IMPORTING
VERSION_NUMBER_PAYVN = "Version Number in the Type Group PAYUN
VERSION_NUMBER_PCL2 = "Version Number on the PCL2 File

CHANGING
PAYROLL_RESULT = "Complex Structure For Payroll Result

EXCEPTIONS
ILLEGAL_ISOCODE_OR_CLUSTERID = 1 ERROR_GENERATING_IMPORT = 2 IMPORT_MISMATCH_ERROR = 3 SUBPOOL_DIR_FULL = 4 NO_READ_AUTHORITY = 5 NO_RECORD_FOUND = 6 VERSIONS_DO_NOT_MATCH = 7 ERROR_READING_ARCHIVE = 8 ERROR_READING_RELID = 9
.



IMPORTING Parameters details for PYXX_READ_PAYROLL_RESULT

CLUSTERID - Payroll Cluster

Data type: PCL2-RELID
Optional: Yes
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)

SEQUENCENUMBER - Sequence Number

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

READ_ONLY_BUFFER - 'X': Read From The Puffer Only

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

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

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

ARC_GROUP - Archiving Group

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

CHECK_READ_AUTHORITY -

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

FILTER_CUMULATIONS - Filter Cumulation Tables

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

CLIENT - Client

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

EXPORTING Parameters details for PYXX_READ_PAYROLL_RESULT

VERSION_NUMBER_PAYVN - Version Number in the Type Group PAYUN

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

VERSION_NUMBER_PCL2 - Version Number on the PCL2 File

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

CHANGING Parameters details for PYXX_READ_PAYROLL_RESULT

PAYROLL_RESULT - Complex Structure For Payroll Result

Data type:
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ILLEGAL_ISOCODE_OR_CLUSTERID - Cluster ID Or ISO Code Not in Table T500L

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

ERROR_GENERATING_IMPORT - Error When Generating the Import Routine

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

IMPORT_MISMATCH_ERROR - Error On Importing : Different Structures

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

SUBPOOL_DIR_FULL - More Than 36 Temp. Routines Were Generated

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

NO_READ_AUTHORITY - No Reading Authorization for Cluster

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

NO_RECORD_FOUND - No Payroll Result Found

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

VERSIONS_DO_NOT_MATCH - Version Indicators Do Not Correspond

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

ERROR_READING_ARCHIVE - Error When Reading Archives

Data type:
Optional: No
Call by Reference: Yes

ERROR_READING_RELID - Error When Reading Cluster ID

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for PYXX_READ_PAYROLL_RESULT 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:
lv_clusterid  TYPE PCL2-RELID, "   
lv_payroll_result  TYPE PCL2, "   
lv_version_number_payvn  TYPE PCL2, "   
lv_illegal_isocode_or_clusterid  TYPE PCL2, "   
lv_employeenumber  TYPE PC200-PERNR, "   
lv_version_number_pcl2  TYPE PC200, "   
lv_error_generating_import  TYPE PC200, "   
lv_sequencenumber  TYPE PC261-SEQNR, "   
lv_import_mismatch_error  TYPE PC261, "   
lv_read_only_buffer  TYPE PC261, "   SPACE
lv_subpool_dir_full  TYPE PC261, "   
lv_no_read_authority  TYPE PC261, "   
lv_read_only_international  TYPE PC261, "   SPACE
lv_arc_group  TYPE ARC_GROUP, "   SPACE
lv_no_record_found  TYPE ARC_GROUP, "   
lv_check_read_authority  TYPE ARC_GROUP, "   'X'
lv_versions_do_not_match  TYPE ARC_GROUP, "   
lv_filter_cumulations  TYPE ARC_GROUP, "   'X'
lv_error_reading_archive  TYPE ARC_GROUP, "   
lv_client  TYPE PCL2-CLIENT, "   
lv_error_reading_relid  TYPE PCL2. "   

  CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'  "Generic Import of Payroll Results
    EXPORTING
         CLUSTERID = lv_clusterid
         EMPLOYEENUMBER = lv_employeenumber
         SEQUENCENUMBER = lv_sequencenumber
         READ_ONLY_BUFFER = lv_read_only_buffer
         READ_ONLY_INTERNATIONAL = lv_read_only_international
         ARC_GROUP = lv_arc_group
         CHECK_READ_AUTHORITY = lv_check_read_authority
         FILTER_CUMULATIONS = lv_filter_cumulations
         CLIENT = lv_client
    IMPORTING
         VERSION_NUMBER_PAYVN = lv_version_number_payvn
         VERSION_NUMBER_PCL2 = lv_version_number_pcl2
    CHANGING
         PAYROLL_RESULT = lv_payroll_result
    EXCEPTIONS
        ILLEGAL_ISOCODE_OR_CLUSTERID = 1
        ERROR_GENERATING_IMPORT = 2
        IMPORT_MISMATCH_ERROR = 3
        SUBPOOL_DIR_FULL = 4
        NO_READ_AUTHORITY = 5
        NO_RECORD_FOUND = 6
        VERSIONS_DO_NOT_MATCH = 7
        ERROR_READING_ARCHIVE = 8
        ERROR_READING_RELID = 9
. " PYXX_READ_PAYROLL_RESULT




ABAP code using 7.40 inline data declarations to call FM PYXX_READ_PAYROLL_RESULT

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).
 
 
 
"SELECT single SEQNR FROM PC261 INTO @DATA(ld_sequencenumber).
 
 
DATA(ld_read_only_buffer) = ' '.
 
 
 
DATA(ld_read_only_international) = ' '.
 
DATA(ld_arc_group) = ' '.
 
 
DATA(ld_check_read_authority) = 'X'.
 
 
DATA(ld_filter_cumulations) = 'X'.
 
 
"SELECT single CLIENT FROM PCL2 INTO @DATA(ld_client).
 
 


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!