PC2PHCN2_ALV 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_ALV 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 ****End of Commenting**** * BASIC_LIST_TITLE = ****Start of Commenting**** * FILE_NAME = FILENAME * HEAD_LINE1 = HEADLINE1 * HEAD_LINE2 = HEADLINE2 * HEAD_LINE3 = HEADLINE3 ****End of Commenting**** * lay_out = 1 ****Start of Commenting****
* DYN_PUSHBUTTON_TEXT1 = 'APPL' * 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.
HR_PAL_LOG_AND_ALV_DISPLAY CALL FUNCTION 'HR_PAL_LOG_AND_ALV_DISPLAY' EXPORTING i_s_display_profile = ls_display_profile i_callback_program = filename is_layout = is_layout "Note 1727499 it_fieldcat = lt_fieldcat it_events = lt_events TABLES t_outtab = lt_disp_phf EXCEPTIONS program_error = 1 OTHERS = 2.
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.
HR_PAL_PERNR_MSG_ADD CALL FUNCTION 'HR_PAL_PERNR_MSG_ADD' EXPORTING i_pernr = p_pernr_pernr i_msgid = $arbgb i_msgty = $type i_msgno = $msgno i_msgv1 = $msgv1 i_msgv2 = $msgv2 i_msgv3 = $msgv3 i_msgv4 = $msgv4.
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.
HR_PAL_GENRL_MSG_ADD CALL FUNCTION 'HR_PAL_GENRL_MSG_ADD' EXPORTING i_msgid = lc_msgid i_msgno = lc_msgno i_msgty = lc_msgty i_msgv1 = ls_msg_txt-msgv1 i_msgv2 = ls_msg_txt-msgv2 i_msgv3 = ls_msg_txt-msgv3 i_msgv4 = ls_msg_txt-msgv4 EXCEPTIONS program_error = 1 OTHERS = 2.
HR_PAL_STATS_MSG_ADD CALL FUNCTION 'HR_PAL_STATS_MSG_ADD' EXPORTING i_stcnt = iv_stcnt i_nodid = iv_nodid i_nodpa = iv_nodpa i_msgid = is_msg-msgid i_msgty = is_msg-msgty i_msgno = is_msg-msgno i_msgv1 = is_msg-msgv1 i_msgv2 = is_msg-msgv2 i_msgv3 = is_msg-msgv3 i_msgv4 = is_msg-msgv4 EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = filename i_structure_name = ic_structure_name CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = lc_dyname dynumb = lc_dynumb TABLES dynpfields = ltab_fields EXCEPTIONS OTHERS = 8.
RP_OPTIONS_INTO_STRING CALL FUNCTION 'RP_OPTIONS_INTO_STRING' EXPORTING max_chosen_number = 8 delimiter_sign = '/' text_title = 'Determine Split Seq.'(z11)
ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_DISPLAY_MORE' text = 'Split Same Format'(z08) info = 'Split Same Format'(z08) IMPORTING RESULT = spt_but EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.
ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_ENTER_MORE' text = 'Split Same Format'(z08) info = 'Split Same Format'(z08) IMPORTING RESULT = spt_but EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.
RFC_PING CALL FUNCTION 'RFC_PING' DESTINATION 'SAPGUI' EXCEPTIONS: communication_failure = 1 system_failure = 2.
HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = 'ROOT' i_node_txt = lv_node_text i_categ_id = space i_icon = icon_closed_folder IMPORTING e_node_key = gv_total_node EXCEPTIONS program_error = 1 OTHERS = 2.
HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = gv_total_node i_node_txt = lv_path i_categ_id = space i_icon = icon_protocol EXCEPTIONS program_error = 1 OTHERS = 2.
HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = gv_total_node i_node_txt = ls_format_data-format_id i_categ_id = space i_icon = icon_closed_folder IMPORTING e_node_key = lv_sub_node EXCEPTIONS program_error = 1 OTHERS = 2.
HR_PAL_CREATE_NODE_CATEG CALL FUNCTION 'HR_PAL_CREATE_NODE_CATEG' EXPORTING i_categ_id = 'PERNR' i_structure_name = 'BAL_HR_EXT' i_with_msg_fields = 'X' i_msg_text_pos = 3 i_icon_ltext_pos = 4 i_save = 'A' "1649031 EXCEPTIONS program_error = 1 OTHERS = 2.
HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = gv_total_node i_node_txt = lv_node_text i_categ_id = 'PERNR' IMPORTING e_node_key = lv_pernr_node_key EXCEPTIONS program_error = 1 OTHERS = 2.
HR_PAL_NODE_MSG_ADD CALL FUNCTION 'HR_PAL_NODE_MSG_ADD' EXPORTING i_node_key = lv_pernr_node_key i_msgid = 'HRPAYCN' i_msgty = 'E' i_msgno = '095' i_msgv1 = lv_msgv1 i_msgv2 = lv_msgv2 i_msgv3 = '' i_msgv4 = '' i_context = ls_error_data-pernr EXCEPTIONS program_error = 1 OTHERS = 2.
HR_PAL_CREATE_NODE_CATEG CALL FUNCTION 'HR_PAL_CREATE_NODE_CATEG' EXPORTING i_categ_id = pv_format_id it_fieldcat = lt_fieldcat i_save = 'A' i_rttc = 'X' EXCEPTIONS program_error = 1 OTHERS = 2.
HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = iv_parent_node i_node_txt = iv_node_text i_categ_id = iv_format_id i_icon = icon_list " global from
IMPORTING e_node_key = lv_total_node EXCEPTIONS program_error = 1 OTHERS = 2.
HR_PAL_NODE_ADD_ROW CALL FUNCTION 'HR_PAL_NODE_ADD_ROW' EXPORTING i_node_key = lv_node i_row_data = is_record_data EXCEPTIONS program_error = 1 OTHERS = 2.
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_ALV or its description.