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

PC2SICN2 SAP ABAP INCLUDE - Subroutines







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


Text pool values


Title: Subroutines


INCLUDES used within this REPORT PC2SICN2

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_PAL_PERNR_MSG_ADD CALL FUNCTION 'HR_PAL_PERNR_MSG_ADD' EXPORTING i_pernr = l_pernr i_msgid = l_arbgb i_msgty = l_msgty i_msgno = l_msgno i_msgv1 = l_msgv1 i_msgv2 = l_msgv2 i_msgv3 = l_msgv3 i_msgv4 = l_msgv4 EXCEPTIONS program_error = 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 = 'CONAR' tabname = 'T7CN2A' IMPORTING select_value = con_area-low TABLES fields = ihelp_value valuetab = ihelptab.

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 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_GENRL_MSG_ADD CALL FUNCTION 'HR_PAL_GENRL_MSG_ADD' EXPORTING i_msgid = lc_msgid i_msgno = lc_msgno i_msgty = iv_msgty i_msgv1 = iv_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.

PA03_PERIODDATES_GET CALL FUNCTION 'PA03_PERIODDATES_GET' EXPORTING f_abkrs = lv_pnpxabkr IMPORTING f_permo = p_permo_cal f_current_begda = p_begda f_current_endda = p_endda CHANGING f_current_period = p_abrp_cal f_current_year = p_abrj_cal EXCEPTIONS pcr_does_not_exist = 1 abkrs_does_not_exist = 2 period_does_not_exist = 3 OTHERS = 4.

RP_GET_CURRENCY CALL FUNCTION 'RP_GET_CURRENCY' EXPORTING molga = calcmolga IMPORTING waers = calc_currency EXCEPTIONS OTHERS.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_pf_status_set = 'ALV_STATUS_SET' i_callback_user_command = 'ALV_EVENT_USER_COMMAND' i_callback_program = sy-repid it_fieldcat = lt_fieldcat i_default = 'X' i_save = 'A' is_layout = lv_is_layout it_events = l_event_tab TABLES t_outtab = gt_output_data EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = sy-repid i_structure_name = 'HCNCSI00_ALV1' CHANGING ct_fieldcat = p_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = p_event_tab.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING * i_logo = 'ENJOYSAP_LOGO' it_list_commentary = l_comment_tab.

HR_PAL_LOG_DISPLAY CALL FUNCTION 'HR_PAL_LOG_DISPLAY' EXPORTING i_s_display_profile = l_display_profile EXCEPTIONS program_error = 1 no_logs = 2 OTHERS = 3.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = p_file_name filetype = 'ASC' write_field_separator = 'X' codepage = '8400' confirm_overwrite = 'X' TABLES data_tab = gt_header_tab 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 = p_file_name filetype = 'ASC' write_field_separator = 'X' codepage = '8400' append = 'X' TABLES data_tab = p_down_data EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 OTHERS = 5.

REUSE_ALV_GRID_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_GET' IMPORTING es_layout = ls_new_layout "dynamic layout et_fieldcat = lt_new_fieldcat "dynamic field catalog et_sort = lt_new_sort es_variant = ls_variant EXCEPTIONS no_infos = 1 program_error = 2 OTHERS = 3.

DYNP_VALUES_UPDATE 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.'(z19)

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_DISPLAY_MORE' text = 'Split Criteria for Same Format'(z16) info = 'Split Criteria for Same Format'(z16) 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 Criteria for Same Format'(z16) info = 'Split Criteria for Same Format'(z16) IMPORTING RESULT = spt_but EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

HR_PAL_LOG_DISPLAY CALL FUNCTION 'HR_PAL_LOG_DISPLAY' EXPORTING i_s_display_profile = ls_display_profile EXCEPTIONS program_error = 1 no_logs = 2 OTHERS = 3.

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_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 = gv_total_node i_node_txt = lv_path i_categ_id = space i_icon = icon_protocol EXCEPTIONS program_error = 1 OTHERS = 2.

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 = 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_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.

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.



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