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
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.
Title: Include PC2SICN2
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.