SAP Reports / Programs | Payroll | Hong Kong(PY-HK) SAP PY

PCPFCHKS SAP ABAP INCLUDE - Include PCPFCHKS







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


Text pool values


Title: Include PCPFCHKS


INCLUDES used within this REPORT PCPFCHKS

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_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING PERNR = PERNR-PERNR ARBGB = '3Q' "message-id class MSGTY = 'E' "error message MSGNO = P_ERROR_NO "number of message-id error MSGV1 = P_MSGV1 MSGV2 = P_MSGV2 MSGV3 = P_MSGV3 MSGV4 = P_MSGV4 EXCEPTIONS OTHERS = 1.

CD_READ_DATE_RANGE CALL FUNCTION 'CD_READ_DATE_RANGE' EXPORTING BEGDA = G_PAYROLL_BEGDA ENDDA = G_PAYROLL_ENDDA * SEL_VOID = TABLES RGDIR = RGDIR OUT_RGDIR = TAB_RGDIR.

CD_READ_DATE_RANGE_ACTUAL_NV CALL FUNCTION 'CD_READ_DATE_RANGE_ACTUAL_NV' EXPORTING begda = G_PAYROLL_BEGDA endda = G_PAYROLL_ENDDA TABLES rgdir_in = RGDIR rgdir_out = TAB_RGDIR.

CD_READ_DATE_RANGE CALL FUNCTION 'CD_READ_DATE_RANGE' EXPORTING BEGDA = G_PAYROLL_BEGDA ENDDA = G_PAYROLL_ENDDA * SEL_VOID = TABLES RGDIR = RGDIR OUT_RGDIR = TAB_RGDIR.

CD_READ_DATE_RANGE_ACTUAL_NV CALL FUNCTION 'CD_READ_DATE_RANGE_ACTUAL_NV' EXPORTING begda = G_PAYROLL_BEGDA endda = G_PAYROLL_ENDDA TABLES rgdir_in = RGDIR rgdir_out = TAB_RGDIR.

CD_READ_DATE_RANGE CALL FUNCTION 'CD_READ_DATE_RANGE' EXPORTING BEGDA = G_PAYROLL_BEGDA ENDDA = G_PAYROLL_ENDDA * SEL_VOID = TABLES RGDIR = RGDIR OUT_RGDIR = TAB_RGDIR.

CD_READ_DATE_RANGE_ACTUAL_NV CALL FUNCTION 'CD_READ_DATE_RANGE_ACTUAL_NV' EXPORTING begda = G_PAYROLL_BEGDA endda = G_PAYROLL_ENDDA TABLES rgdir_in = RGDIR rgdir_out = TAB_RGDIR.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = filename = l_filename filetype = 'ASC' append = ' ' TABLES data_tab = file_header EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 OTHERS = 22 . "UNICODE end

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = filename = $filename filetype = 'ASC' append = 'A' TABLES data_tab = header_rec EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 OTHERS = 22 . "UNICODE end

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = filename = $filename filetype = 'ASC' append = 'A' TABLES data_tab = dn_exist EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 OTHERS = 22 . "UNICODE end

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = filename = $filename filetype = 'ASC' append = 'A' TABLES data_tab = dn_new EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 OTHERS = 22 . "UNICODE end

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = filename = $filename filetype = 'ASC' append = 'A' TABLES data_tab = dn_term EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 OTHERS = 22 . "UNICODE end

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = filename = $filename filetype = 'ASC' append = 'A' TABLES data_tab = dn_backpay EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 OTHERS = 22 . "UNICODE end

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = filename = $filename filetype = 'ASC' append = 'A' TABLES data_tab = control_rec EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 OTHERS = 22 . "UNICODE end

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' EXPORTING NO_POPUP = 'X' NO_PRINT = SPACE * no_img = space * linesize = sy-linsz * tables * error = EXCEPTIONS INVALID_LINESIZE = 1 OTHERS = 2.

HR_REFRESH_ERROR_LIST CALL FUNCTION 'HR_REFRESH_ERROR_LIST' EXCEPTIONS OTHERS = 1.

COMPUTE_YEARS_BETWEEN_DATES CALL FUNCTION 'COMPUTE_YEARS_BETWEEN_DATES' EXPORTING FIRST_DATE = P0002-GBDAT * MODIFY_INTERVAL = ' ' SECOND_DATE = $ENDDA IMPORTING YEARS_BETWEEN_DATES = L_EMPLOYEE_AGE EXCEPTIONS SEQUENCE_OF_DATES_NOT_VALID = 1 OTHERS = 2.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING FILENAME = PATH QUERY = 'DE' IMPORTING RETURN = RETURN EXCEPTIONS INV_QUERY = 1 NO_BATCH = 2 FRONTEND_ERROR = 3 OTHERS = 4.

HR_READ_INFOTYPE





CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = pernr-pernr infty = '0000' begda = '18000101' endda = '99991231' * importing * subrc = TABLES infty_tab = pp0000 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = pernr-pernr infty = '0001' begda = '18000101' endda = '99991231' * importing * subrc = TABLES infty_tab = pp0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = pernr-pernr infty = '0008' begda = '18000101' endda = '99991231' * importing * subrc = TABLES infty_tab = pp0008 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = pernr-pernr infty = '0002' begda = '18000101' endda = '99991231' * importing * subrc = TABLES infty_tab = pp0002 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = pernr-pernr infty = '0041' begda = '18000101' endda = '99991231' * importing * subrc = TABLES infty_tab = pp0041 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' EXPORTING exit_name = 'PC270012' IMPORTING is_implemented = is_implemented CHANGING instance = sap_exit. "method name

CD_READ_DATE_RANGE CALL FUNCTION 'CD_READ_DATE_RANGE' EXPORTING BEGDA = L_PERIOD-BEGDA ENDDA = L_PERIOD-ENDDA * SEL_VOID = TABLES RGDIR = RGDIR OUT_RGDIR = L_TAB_RGDIR .



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 PCPFCHKS or its description.