SAP Reports / Programs | Personnel Management | Personnel Administration(PA-PA) SAP PA

PSGUSPL8 SAP ABAP INCLUDE - documentation and ABAP source code







PSGUSPL8 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter PSGUSPL8 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT PSGUSPL8. "Basic submit
SUBMIT PSGUSPL8 AND RETURN. "Return to original report after report execution complete
SUBMIT PSGUSPL8 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT PSGUSPL8

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

HR_PL_PY_CLASS_INIT CALL FUNCTION 'HR_PL_PY_CLASS_INIT' EXPORTING lgart_class = '74' processing_class = 'X'.

CU_READ_RGDIR CALL FUNCTION 'CU_READ_RGDIR' EXPORTING persnr = person-pernr IMPORTING molga = molga TABLES in_rgdir = rgdir EXCEPTIONS no_record_found = 1 OTHERS = 2.

HR_PL_PY_EVP CALL FUNCTION 'HR_PL_PY_EVP' EXPORTING per_beg = beg_pay_period per_end = end_pay_period "current report date * mode = 1 "by in pay date * view = 1 "in periods mode = pmode "OT56739077 view = pview "OT56739077 * payt_ = l_reg * payt_a = l_spec * payt_b = l_kor prepare_grossdown = 'X' TABLES in_rgdir = rgdir out_evp = evp out_evpx = evpx.

HR_PL_PY_GROSSDOWN_INIT CALL FUNCTION 'HR_PL_PY_GROSSDOWN_INIT' EXPORTING gro_pernr = person-pernr gro_cluster_id = import_relid EXCEPTIONS no_results = 1 evp_not_perpared = 2 OTHERS = 3.

PYXX_READ_PAYROLL_RESULT CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT' EXPORTING clusterid = import_relid employeenumber = person-pernr sequencenumber = evpx-seqnr * READ_ONLY_BUFFER = ' ' * READ_ONLY_INTERNATIONAL = ' ' * CHECK_READ_AUTHORITY = 'X' * IMPORTING * VERSION_NUMBER_PAYVN = * VERSION_NUMBER_PCL2 = CHANGING payroll_result = 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 OTHERS = 8 .

HR_PL_PY_GET_RESULTS CALL FUNCTION 'HR_PL_PY_GET_RESULTS' EXPORTING seqnr = evpx-seqnr CHANGING payroll_results = result EXCEPTIONS read_problem = 1 OTHERS = 2.

HR_PL_PY_CLASS_VALUE * CALL FUNCTION 'HR_PL_PY_CLASS_VALUE' * EXPORTING * LGART = RT-LGART * LGART_CLASS = '74' ** PROCESSING_CLASS = 'X' * LDATE = EVPX-FPEND * IMPORTING * VALUE = LCLASS * .

HR_PL_PY_CLASS_INIT CALL FUNCTION 'HR_PL_PY_CLASS_INIT' EXPORTING lgart_class = '74' processing_class = 'X'. "OT68897737

HR_PL_PY_GROSSDOWN_CALC CALL FUNCTION 'HR_PL_PY_GROSSDOWN_CALC' EXPORTING con_inseq = evpx-inseq con_betrg = betrg con_cntr1 = rt-cntr1 con_cntr2 = rt-cntr2 IMPORTING con_netto = netto TABLES con_sv = result-nat-sv con_st = result-nat-st.

HR_PERSONAL_WORK_SCHEDULE CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE' EXPORTING pernr = pernr-pernr begda = wa_hire-begda endda = wa_hire-endda working_hours = 'X' TABLES i0000 = p0000 i0001 = p0001 i0002 = p0002 i0007 = p0007 i2003 = p2003 perws = workschedule EXCEPTIONS error_occured = 1 abort_occured = 2 OTHERS = 3.

HR_PL_PY_CLASS_VALUE CALL FUNCTION 'HR_PL_PY_CLASS_VALUE' EXPORTING lgart = rt-lgart lgart_class = '74' * PROCESSING_CLASS = 'X' ldate = evpx-fpend IMPORTING value = lclass .

HR_PL_CREATE_DYNAMIC_TABLE * CALL FUNCTION 'HR_PL_CREATE_DYNAMIC_TABLE' * EXPORTING * I_STRUCT_NAME = ls_t7pl05-struc * CHANGING * DYN_WA = lref_line * DYN_TABLE = lref_table.

HR_READ_INFOTYPE * CALL FUNCTION 'HR_READ_INFOTYPE' * EXPORTING * PERNR = pernr-pernr * INFTY = lv_inftyp * BEGDA = '18000101' * ENDDA = '99991231' * TABLES * INFTY_TAB = * EXCEPTIONS * INFTY_NOT_FOUND = 1 * OTHERS = 2 .



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name PSGUSPL8 or its description.