SAP Reports / Programs | Payroll | Mexico | Public Sector(PY-MX-PS) SAP PY

PCSARMX2 SAP ABAP INCLUDE - documentation and ABAP source code







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


INCLUDES used within this REPORT PCSARMX2

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:

CD_READ_PREVIOUS CALL FUNCTION 'CD_READ_PREVIOUS' EXPORTING in_record = my_rgdir TABLES rgdir = my_rgdir out_rgdir = p_rgdir EXCEPTIONS no_record_found = 1 OTHERS = 2.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature = action_feature struc_content = p0000 IMPORTING back = feature_value EXCEPTIONS "#EC * dummy = 1 error_operation = 2 no_backvalue = 3 feature_not_generated = 4 invalid_sign_in_funid = 5 field_in_report_tab_in_pe03 = 6 OTHERS = 7.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature ='MXTRM' struc_content = wa_mxtrm IMPORTING back = back_value EXCEPTIONS "#EC * dummy = 1 error_operation = 2 no_backvalue = 3 feature_not_generated = 4 invalid_sign_in_funid = 5 field_in_report_tab_in_pe03 = 6 OTHERS = 7.

HR_GET_BUSINESS_ADD_IN * CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' * EXPORTING * exit_name = exit_name3 * IMPORTING * is_implemented = is_implemented * CHANGING * instance = instance3.

HR_GET_BUSINESS_ADD_IN * CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' * EXPORTING * exit_name = exit_name3 * IMPORTING * is_implemented = is_implemented * CHANGING * instance = instance3.

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' EXPORTING exit_name = exit_name1 IMPORTING is_implemented = is_implemented CHANGING instance = instance1.

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' EXPORTING exit_name = exit_name2 IMPORTING is_implemented = is_implemented CHANGING instance = instance2.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature ='MXFMS' struc_content = wa_mxfms IMPORTING back = back_value EXCEPTIONS "#EC * dummy = 1 error_operation = 2 no_backvalue = 3 feature_not_generated = 4 invalid_sign_in_funid = 5 field_in_report_tab_in_pe03 = 6 OTHERS = 7.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature ='MXAPP' struc_content = wa_pmxp1 IMPORTING back = back_value EXCEPTIONS "#EC * dummy = 1 error_operation = 2 no_backvalue = 3 feature_not_generated = 4 invalid_sign_in_funid = 5 field_in_report_tab_in_pe03 = 6 OTHERS = 7.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING PERNR = pernr-pernr INFTY = '2001' TABLES INFTY_TAB = lt_p2001 EXCEPTIONS INFTY_NOT_FOUND = 1 OTHERS = 2.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_red_light info = text-i01 IMPORTING RESULT = stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_yellow_light info = text-i02 IMPORTING RESULT = stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_green_light info = text-i03 IMPORTING RESULT = stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING TITEL = SPACE TXT1 = lv_line1 TXT2 = lv_line2.

SSF_FUNCTION_MODULE_NAME CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' EXPORTING formname = general_data-sf_name IMPORTING fm_name = fm_name EXCEPTIONS no_form = 1 no_function_module = 2 OTHERS = 3.

SO_SPLIT_FILE_AND_PATH CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH' EXPORTING full_name = filepath IMPORTING file_path = file_path_text EXCEPTIONS x_error = 1 others = 2 .

SO_SPLIT_FILE_AND_PATH CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH' EXPORTING full_name = filepath IMPORTING file_path = file_path_text EXCEPTIONS x_error = 1 others = 2 .

REUSE_ALV_GRID_DISPLAY_LVC CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC' EXPORTING i_interface_check = false i_buffer_active = false "OSS Note 339258 i_bypassing_buffer = true "OSS Note 339258 i_callback_program = g_program i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND' i_callback_top_of_page = space it_fieldcat_lvc = gt_fieldcat[] it_sort_lvc = gt_alv_sort i_default = true it_events = gt_events[] i_screen_start_column = 0 i_screen_start_line = 0 i_screen_end_column = 0 i_screen_end_line = 0 TABLES t_outtab = pt_data EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_COMMENTARY_WRITE





CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_top_of_page.

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

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' TABLES error = error_log EXCEPTIONS invalid_linesize = 1 OTHERS = 2.

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' TABLES error = pererror EXCEPTIONS invalid_linesize = 1 OTHERS = 2.

CD_SELECT_PAYTY_RANGE CALL FUNCTION 'CD_SELECT_PAYTY_RANGE' TABLES in_rgdir = h02_rgdir out_rgdir = h01_rgdir payty_tab = payty_range.

CD_SELECT_PAYID_RANGE CALL FUNCTION 'CD_SELECT_PAYID_RANGE' TABLES in_rgdir = h01_rgdir out_rgdir = h02_rgdir payid_tab = payid_range.

CD_SELECT_FPPER CALL FUNCTION 'CD_SELECT_FPPER' EXPORTING fpper_low = in_record-fpper fpper_high = in_record-fpper TABLES in_rgdir = h02_rgdir out_rgdir = h01_rgdir EXCEPTIONS "#EC * OTHERS = 1.

CD_SELECT_ABKRS CALL FUNCTION 'CD_SELECT_ABKRS' EXPORTING abkrs_low = in_record-abkrs abkrs_high = in_record-abkrs TABLES in_rgdir = h01_rgdir out_rgdir = h02_rgdir EXCEPTIONS "#EC * OTHERS = 1.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = p_structure_name CHANGING ct_fieldcat = pt_fieldcat[].

PYXX_SPECIFY_OBJECTS CALL FUNCTION 'PYXX_SPECIFY_OBJECTS' TABLES specified_objects = lt_specified_objects.

HR_PCLX_INIT_BUFFER CALL FUNCTION 'HR_PCLX_INIT_BUFFER'.

HR_IMPORT_RGDIR_FROM_PCLX CALL FUNCTION 'HR_IMPORT_RGDIR_FROM_PCLX' "#EC * EXPORTING cluster_id = c_clusterid employee_number = p_ee_record_line-p_pernr TABLES import_rgdir = lt_rgdir EXCEPTIONS no_results = 1 no_read_authority = 2 OTHERS = 3.

PYXX_READ_RGDIR_PAYRESULTS CALL FUNCTION 'PYXX_READ_RGDIR_PAYRESULTS' "#EC * EXPORTING clusterid = c_clusterid employeenumber = p_ee_record_line-p_pernr TABLES rgdir = lt_rgdir imported_periods = lt_payresult EXCEPTIONS import_error = 1 OTHERS = 2.

CD_EVALUATION_PERIODS CALL FUNCTION 'CD_EVALUATION_PERIODS' EXPORTING bonus_date = wa_inper_directory-ipend inper_modif = wa_inper_directory-iperm inper = wa_inper_directory-inper pay_type = wa_inper_directory-inpty pay_ident = wa_inper_directory-inpid all_results_of_run = false TABLES rgdir = lt_rgdir evpdir = lt_eval EXCEPTIONS OTHERS = 0.

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' EXPORTING exit_name = exit_name1 IMPORTING is_implemented = is_implemented CHANGING instance = instance1.

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' EXPORTING exit_name = exit_name1 IMPORTING is_implemented = is_implemented CHANGING instance = instance1.

PYXX_SPECIFY_OBJECTS CALL FUNCTION 'PYXX_SPECIFY_OBJECTS' TABLES specified_objects = lt_specified_objects.

HR_PCLX_INIT_BUFFER CALL FUNCTION 'HR_PCLX_INIT_BUFFER'.

HR_IMPORT_RGDIR_FROM_PCLX CALL FUNCTION 'HR_IMPORT_RGDIR_FROM_PCLX' "#EC * EXPORTING cluster_id = c_clusterid employee_number = p_ee_record_pernr TABLES import_rgdir = lt_rgdir EXCEPTIONS no_results = 1 no_read_authority = 2 OTHERS = 3.

PYXX_READ_RGDIR_PAYRESULTS CALL FUNCTION 'PYXX_READ_RGDIR_PAYRESULTS' "#EC * EXPORTING clusterid = c_clusterid employeenumber = ee_record_line-pernr TABLES rgdir = lt_rgdir imported_periods = lt_payresult EXCEPTIONS import_error = 1 OTHERS = 2.




SO_SPLIT_FILE_AND_PATH CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH' EXPORTING full_name = lv_filepath IMPORTING file_path = file_path_text EXCEPTIONS x_error = 1 others = 2 .

FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' EXPORTING client = sy-mandt logical_filename = p_log_filename operating_system = sy-opsys parameter_1 = p_parameter_1 parameter_2 = p_parameter_2 parameter_3 = p_parameter_3 use_presentation_server = 'X' IMPORTING file_name = p_filepath EXCEPTIONS file_not_found = 1 OTHERS = 2.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * bin_filesize = p_filelength filename = p_filepath * filetype = 'BIN' * APPEND = ' ' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' WRITE_LF = ' ' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * DAT_MODE = ' ' * CONFIRM_OVERWRITE = ' ' * NO_AUTH_CHECK = ' ' * CODEPAGE = ' ' * IGNORE_CERR = ABAP_TRUE * REPLACEMENT = '#' * WRITE_BOM = ' ' * TRUNC_TRAILING_BLANKS_EOL = 'X' * IMPORTING * FILELENGTH = TABLES data_tab = p_data_tab 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.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_red_light info = text-i01 IMPORTING RESULT = ls_stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_yellow_light info = text-i02 IMPORTING RESULT = ls_stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_green_light info = text-i03 IMPORTING RESULT = ls_stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_red_light info = text-i01 IMPORTING RESULT = ls_stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_yellow_light info = text-i02 IMPORTING RESULT = ls_stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_green_light info = text-i03 IMPORTING RESULT = ls_stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_red_light info = text-i01 IMPORTING RESULT = ls_stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_yellow_light info = text-i02 IMPORTING RESULT = ls_stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_green_light info = text-i03 IMPORTING RESULT = ls_stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

RP_GET_CURRENCY CALL FUNCTION 'RP_GET_CURRENCY' EXPORTING molga = molga * TRFAR = * TRFGB = * TRFKZ = begda = pn-begda * ENDDA = IMPORTING waers = p_currency * VALID_BEGDA = * VALID_ENDDA = * RETURN = * CURRENCY_SOURCE = EXCEPTIONS molga_not_in_t001p = 1 no_entry_found_in_table_t001 = 2 no_entry_found_in_table_t500p = 3 no_entry_found_in_table_t500c = 4 OTHERS = 5.

PYXX_SPECIFY_OBJECTS CALL FUNCTION 'PYXX_SPECIFY_OBJECTS' TABLES specified_objects = lt_specified_objects.

HR_PCLX_INIT_BUFFER CALL FUNCTION 'HR_PCLX_INIT_BUFFER'.

HR_IMPORT_RGDIR_FROM_PCLX CALL FUNCTION 'HR_IMPORT_RGDIR_FROM_PCLX' "#EC * EXPORTING cluster_id = c_clusterid employee_number = p_pernr TABLES import_rgdir = lt_rgdir_oc EXCEPTIONS no_results = 1 no_read_authority = 2 OTHERS = 3.

PYXX_READ_RGDIR_PAYRESULTS CALL FUNCTION 'PYXX_READ_RGDIR_PAYRESULTS' "#EC * EXPORTING clusterid = c_clusterid employeenumber = p_pernr TABLES rgdir = lt_rgdir_oc imported_periods = lt_payresult EXCEPTIONS import_error = 1 OTHERS = 2.

PYXX_SPECIFY_OBJECTS * CALL FUNCTION 'PYXX_SPECIFY_OBJECTS' * TABLES * specified_objects = lt_specified_objects.

HR_PCLX_INIT_BUFFER * CALL FUNCTION 'HR_PCLX_INIT_BUFFER'.

HR_IMPORT_RGDIR_FROM_PCLX * CALL FUNCTION 'HR_IMPORT_RGDIR_FROM_PCLX' "#EC * * EXPORTING * cluster_id = c_clusterid * employee_number = p_ee_record_line-p_pernr * TABLES * import_rgdir = lt_rgdir_void * EXCEPTIONS * no_results = 1 * no_read_authority = 2 * OTHERS = 3.

PYXX_READ_RGDIR_PAYRESULTS * CALL FUNCTION 'PYXX_READ_RGDIR_PAYRESULTS' "#EC * * EXPORTING * clusterid = c_clusterid * employeenumber = p_ee_record_line-p_pernr * TABLES * rgdir = lt_rgdir_void * imported_periods = lt_payresult * EXCEPTIONS * import_error = 1 * OTHERS = 2.

HR_PCLX_INIT_BUFFER CALL FUNCTION 'HR_PCLX_INIT_BUFFER'.

HR_IMPORT_RGDIR_FROM_PCLX CALL FUNCTION 'HR_IMPORT_RGDIR_FROM_PCLX' "#EC * EXPORTING cluster_id = c_clusterid employee_number = p_ee_record_line-p_pernr TABLES import_rgdir = lt_rgdir EXCEPTIONS no_results = 1 no_read_authority = 2 OTHERS = 3.

PYXX_READ_RGDIR_PAYRESULTS CALL FUNCTION 'PYXX_READ_RGDIR_PAYRESULTS' "#EC * EXPORTING clusterid = c_clusterid employeenumber = p_ee_record_line-p_pernr TABLES rgdir = lt_rgdir imported_periods = lt_payresult EXCEPTIONS import_error = 1 OTHERS = 2.

SO_SPLIT_FILE_AND_PATH CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH' EXPORTING full_name = lv_filepath IMPORTING file_path = file_path_text EXCEPTIONS x_error = 1 others = 2 .

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_red_light info = text-i01 IMPORTING RESULT = ls_stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_yellow_light info = text-i02 IMPORTING RESULT = ls_stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_green_light info = text-i03 IMPORTING RESULT = ls_stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = p_pernr infty = '0267' begda = ls_payresult-evp-fpbeg endda = ls_payresult-evp-fpend IMPORTING subrc = lv_subrc TABLES infty_tab = lt_0267.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = ls_record_line-pernr infty = '0001' IMPORTING subrc = lv_subrc TABLES infty_tab = lt_0001.

PYXX_SPECIFY_OBJECTS CALL FUNCTION 'PYXX_SPECIFY_OBJECTS' TABLES specified_objects = lt_specified_objects.

HR_PCLX_INIT_BUFFER CALL FUNCTION 'HR_PCLX_INIT_BUFFER'.

HR_IMPORT_RGDIR_FROM_PCLX CALL FUNCTION 'HR_IMPORT_RGDIR_FROM_PCLX' "#EC * EXPORTING cluster_id = c_clusterid employee_number = p_pernr TABLES import_rgdir = pt_rgdir EXCEPTIONS no_results = 1 no_read_authority = 2 OTHERS = 3.

PYXX_READ_RGDIR_PAYRESULTS CALL FUNCTION 'PYXX_READ_RGDIR_PAYRESULTS' "#EC * EXPORTING clusterid = c_clusterid employeenumber = p_pernr TABLES rgdir = pt_rgdir imported_periods = pt_payresult EXCEPTIONS import_error = 1 OTHERS = 2.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_red_light info = text-i01 IMPORTING RESULT = ls_stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_yellow_light info = text-i02 IMPORTING RESULT = ls_stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_green_light info = text-i03 IMPORTING RESULT = ls_stat_line-icon EXCEPTIONS "#EC * icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' EXPORTING exit_name = exit_name1 IMPORTING is_implemented = is_implemented CHANGING instance = instance1.



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