SAP Reports / Programs

HPLCP040 SAP ABAP Report - Tax accounting form PIT-4







HPLCP040 is a standard Executable ABAP Report 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 HPLCP040 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

PC00_M46_PIT4 - Tax accounting form PIT-4


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 HPLCP040. "Basic submit
SUBMIT HPLCP040 AND RETURN. "Return to original report after report execution complete
SUBMIT HPLCP040 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: DIAL = Print preview
Selection Text: DIMMED = Print immediately
Selection Text: FNAME = First name
Selection Text: FOR1 = Form name
Selection Text: LNAME = Last name
Selection Text: PRINTER = Output device
Selection Text: PROW = Commission
Selection Text: TDARMOD = Archiving mode
Selection Text: TDDELE = Delete after print
Selection Text: TDLIFE = Spool retention period (days)
Selection Text: TDNEWID = New spool request
Selection Text: ZAOKR = Rounding
Title: Tax accounting form PIT-4
Text Symbol: FR1 = Print parameters
Text Symbol: FR2 = Parameters
Text Symbol: FRX = Responsible person


INCLUDES used within this REPORT HPLCP040

INCLUDE PCZDFPL0.
INCLUDE PCINTPL0.


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 = '12' PROCESSING_CLASS = ' '.

OPEN_FORM CALL FUNCTION 'OPEN_FORM' EXPORTING DIALOG = DIAL FORM = FORM_NAME LANGUAGE = 'L' OPTIONS = ITCPO EXCEPTIONS OTHERS = 1.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING WINDOW = 'MAIN' EXCEPTIONS OTHERS = 1.

CLOSE_FORM CALL FUNCTION 'CLOSE_FORM'.

CU_READ_RGDIR CALL FUNCTION 'CU_READ_RGDIR' EXPORTING PERSNR = PERNR-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 = PN-BEGDA PER_END = PN-ENDDA MODE = 1 "by in pay date VIEW = 1 "in periods * payt_ = l_reg * payt_a = l_spec * payt_b = l_kor TABLES IN_RGDIR = RGDIR OUT_EVP = EVP2 OUT_EVPX = EVPX EXCEPTIONS OTHERS = 1 .

HR_PCLX_INIT_BUFFER CALL FUNCTION 'HR_PCLX_INIT_BUFFER'.

HR_IMPORT_RGDIR_FROM_PCLX CALL FUNCTION 'HR_IMPORT_RGDIR_FROM_PCLX' EXPORTING EMPLOYEE_NUMBER = PERNR-PERNR CLUSTER_ID = IMPORT_RELID TABLES IMPORT_RGDIR = EVP2 EXCEPTIONS NO_READ_AUTHORITY = 2 OTHERS = 3.

PYXX_READ_PAYROLL_RESULT CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT' EXPORTING CLUSTERID = IMPORT_RELID EMPLOYEENUMBER = PERNR-PERNR SEQUENCENUMBER = EVPX-SEQNR * READ_ONLY_BUFFER = ' ' 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_CLASS_VALUE CALL FUNCTION 'HR_PL_PY_CLASS_VALUE' EXPORTING LGART = RT-LGART LGART_CLASS = '12' PROCESSING_CLASS = ' ' LDATE = EVPX-FPEND IMPORTING VALUE = LCLASS.

HR_PL_COMPANY_GET_ID CALL FUNCTION 'HR_PL_COMPANY_GET_ID' EXPORTING COMPANY_KEY = CKEY IMPORTING PAYER_ID = MY_PAYER_ID EXCEPTIONS COMPANY_NOT_FOUND = 1 OTHERS = 2.

HR_PL_COMPANY_GET_ID CALL FUNCTION 'HR_PL_COMPANY_GET_ID' EXPORTING COMPANY_KEY = CKEY IMPORTING PAYER_ID = PAYER_ID EXCEPTIONS COMPANY_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 HPLCP040 or its description.