SAP Reports / Programs | Payroll | China(PY-CN) SAP PY

PC2PHCN2 SAP ABAP INCLUDE - Include PC2SICN2







PC2PHCN2 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 PC2PHCN2 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 PC2PHCN2. "Basic submit
SUBMIT PC2PHCN2 AND RETURN. "Return to original report after report execution complete
SUBMIT PC2PHCN2 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 PC2SICN2


INCLUDES used within this REPORT PC2PHCN2

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:

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING TEXT = PROGRESS_TEXT.

HR_DISPLAY_BASIC_LIST CALL FUNCTION 'HR_DISPLAY_BASIC_LIST' EXPORTING * BASIC_LIST_TITLE = FILE_NAME = FILENAME HEAD_LINE1 = HEADLINE1 HEAD_LINE2 = HEADLINE2 HEAD_LINE3 = HEADLINE3 * lay_out = 1 CURRENT_REPORT = SY-REPID "Note 598390 IMPORTING RETURN_CODE = RETURN_CODE TABLES DATA_TAB = DISP_PHF SELECT_TAB = SELECT_TAB FIELDNAME_TAB = FIELDTAB EXCEPTIONS DOWNLOAD_PROBLEM = 1 NO_DATA_TAB_ENTRIES = 2 TABLE_MISMATCH = 3 PRINT_PROBLEMS = 4 OTHERS = 5.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING TEXT = PROGRESS_TEXT.

CU_READ_RGDIR CALL FUNCTION 'CU_READ_RGDIR' EXPORTING PERSNR = PERNR-PERNR IMPORTING MOLGA = CHECK_MOLGA TABLES IN_RGDIR = RGDIR EXCEPTIONS NO_RECORD_FOUND = 1 OTHERS = 2.

CD_EVALUATION_PERIODS CALL FUNCTION 'CD_EVALUATION_PERIODS' EXPORTING BONUS_DATE = BONDT INPER_MODIF = PN-PERMO INPER = HELP_PAPER PAY_TYPE = PAYTY PAY_IDENT = PAYID TABLES RGDIR = RGDIR EVPDIR = EVP IABKRS = PNPABKRS EXCEPTIONS NO_RECORD_FOUND = 1.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING PERNR = P_PERNR_PERNR ARBGB = $ARBGB MSGTY = $TYPE MSGNO = $MSGNO MSGV1 = $MSGV1 MSGV2 = $MSGV2 MSGV3 = $MSGV3 MSGV4 = $MSGV4 EXCEPTIONS OTHERS = 1.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING TEXT = PROGRESS_TEXT.

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' EXPORTING NO_POPUP = 'X' NO_PRINT = ' ' EXCEPTIONS INVALID_LINESIZE = 1 OTHERS = 2.

HR_CN_CHINESE_NAME CALL FUNCTION 'HR_CN_CHINESE_NAME' EXPORTING PP0002 = P0002 PP0182 = P0182 IMPORTING CNAME = CNAME RETCODE = RETCODE.

HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING FIELDNAME = 'CHRSN' TABNAME = 'T7CN1A' IMPORTING SELECT_VALUE = CONSTATU TABLES FIELDS = IHELP_VALUE VALUETAB = IHELPTAB.

HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING FIELDNAME = 'CONAR' TABNAME = 'T7CN2A' IMPORTING SELECT_VALUE = CON_AREA TABLES FIELDS = IHELP_VALUE VALUETAB = IHELPTAB.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = file_name filetype = 'ASC' WRITE_FIELD_SEPARATOR = 'X' TABLES data_tab = header_phf EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 OTHERS = 5.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = file_name filetype = 'ASC' append = 'X' WRITE_FIELD_SEPARATOR = 'X' TABLES data_tab = disp_phf EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 OTHERS = 5.



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