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

HMXCDIE2 SAP ABAP INCLUDE - documentation and ABAP source code







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

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_99S_COPY_TABLE1_TABLE2 * CALL FUNCTION 'HR_99S_COPY_TABLE1_TABLE2' * EXPORTING * table1 = lt_fcat[] * TABLES * table2 = pt_fcat[].

HR_99S_DISPLAY_ERRORS CALL FUNCTION 'HR_99S_DISPLAY_ERRORS' TABLES p_tab_error = pt_error.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_comment.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_comment.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_comment.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_comment.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_comment.

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

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = reple infty = '0002' begda = pwa_occu-ocbeg endda = pwa_occu-ocend TABLES infty_tab = lt_p0002 EXCEPTIONS OTHERS = 0.

HR_99S_APPEND_ERROR_LIST CALL FUNCTION 'HR_99S_APPEND_ERROR_LIST' EXPORTING pernr = p_pernr arbgb = '3L' msgty = 'W' msgno = '204' msgv1 = reple msgv2 = pwa_occu-ocbeg msgv3 = pwa_occu-ocend CHANGING ch_tab_error = gt_error.

HR_MX_FORMAT_NAME CALL FUNCTION 'HR_MX_FORMAT_NAME' EXPORTING vorna = wa_p0002-vorna nachn = wa_p0002-nachn nach2 = wa_p0002-nach2 IMPORTING newvorna = wa_p0002-vorna newnachn = wa_p0002-nachn newnach2 = wa_p0002-nach2 EXCEPTIONS OTHERS = 0.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = reple infty = '0185' begda = pwa_occu-ocbeg endda = pwa_occu-ocend TABLES infty_tab = lt_p0185 EXCEPTIONS OTHERS = 0.

HR_99S_APPEND_ERROR_LIST CALL FUNCTION 'HR_99S_APPEND_ERROR_LIST' EXPORTING pernr = p_pernr arbgb = '3L' msgty = 'W' msgno = '371' msgv1 = reple msgv2 = pwa_occu-ocbeg msgv3 = pwa_occu-ocend CHANGING ch_tab_error = gt_error.

HR_99S_OPEN_LFORM_JOB * CALL FUNCTION 'HR_99S_OPEN_LFORM_JOB' * EXPORTING * i_fogroup = c_stax_group * archive_index = dummy_arindex * archive_params = dummy_arparam * device = 'PRINTER' * dialog = gc_false * options = itcpo * EXCEPTIONS * error = 1 * OTHERS = 2.

HR_99S_OUTPUT_LFORM * CALL FUNCTION 'HR_99S_OUTPUT_LFORM' * EXPORTING * i_folname = p_formname * i_date = sy-datum ** i_data_struc = dge_wa * EXCEPTIONS * error = 1 * OTHERS = 2.

HR_99S_CLOSE_LFORM_JOB * CALL FUNCTION 'HR_99S_CLOSE_LFORM_JOB' * EXCEPTIONS * error = 1 * OTHERS = 2.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING archive_info = 'DIE' archive_mode = p_armod archive_text = 'MX' ar_object = c_arobject destination = pdest in_parameters = wa_print_parameters mode = 'CURRENT' no_dialog = gc_true sap_object = c_object_prel IMPORTING out_archive_parameters = pwa_archive_parameters out_parameters = wa_print_parameters EXCEPTIONS archive_info_not_found = 1 invalid_print_params = 2 invalid_archive_params = 3 OTHERS = 4.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING immediately = gc_false layout = 'X_65_132' mode = 'CURRENT' new_list_id = gc_true no_dialog = gc_true IMPORTING out_archive_parameters = pwa_archive_parameters out_parameters = wa_print_parameters EXCEPTIONS archive_info_not_found = 1 invalid_print_params = 2 invalid_archive_params = 3 OTHERS = 4.

SET_PRINT_PARAMETERS





CALL FUNCTION 'SET_PRINT_PARAMETERS' EXPORTING in_parameters = wa_print_parameters.

HR_99S_CONV_PRIPARMS_TO_ITCPO CALL FUNCTION 'HR_99S_CONV_PRIPARMS_TO_ITCPO' EXPORTING p_params = wa_print_parameters IMPORTING p_itcpo = p_itcpo EXCEPTIONS error = 1 OTHERS = 2.

HR_99S_CONV_PRIPARMS_TO_SSFCOM CALL FUNCTION 'HR_99S_CONV_PRIPARMS_TO_SSFCOM' EXPORTING p_params = wa_print_parameters IMPORTING p_sfparams = pwa_output_options.

SSF_FUNCTION_MODULE_NAME CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' EXPORTING formname = p_formname variant = ' ' direct_call = ' ' IMPORTING fm_name = fm_name EXCEPTIONS no_form = 1 no_function_module = 2 OTHERS = 3.

SSF_OPEN CALL FUNCTION 'SSF_OPEN' EXPORTING archive_parameters = p_archive_parameters user_settings = gc_true output_options = p_output_options control_parameters = p_control_parameters EXCEPTIONS formatting_error = 1 internal_error = 2 send_error = 3 user_canceled = 4 OTHERS = 5.

SSF_CLOSE CALL FUNCTION 'SSF_CLOSE' EXCEPTIONS formatting_error = 1 internal_error = 2 send_error = 3 OTHERS = 4.

HR_99S_CONV_SFERROR_TO_HRERROR CALL FUNCTION 'HR_99S_CONV_SFERROR_TO_HRERROR' EXPORTING im_fname = p_formname CHANGING ch_tab_error = pt_error.

HR_99S_COPY_TABLE1_TABLE2 CALL FUNCTION 'HR_99S_COPY_TABLE1_TABLE2' EXPORTING table1 = lt_fcat[] TABLES table2 = pt_fcat[].



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