SAP Reports / Programs | Payroll | Payroll: General Parts(PY-XX) SAP PY

MPE04SUB SAP ABAP INCLUDE - General Form Routines for Transaction PE04







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


Text pool values


Title: General Form Routines for Transaction PE04


INCLUDES used within this REPORT MPE04SUB

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:

TR_ORDER_CHOICE_CORRECTION call function 'TR_ORDER_CHOICE_CORRECTION' exporting iv_category = 'SYST' iv_cli_dep = ' ' importing ev_order = we_order ev_task = we_task exceptions invalid_category = 1 no_correction_selected = 2 others = 3.

ENQUEUE_EPT52A0 call function 'ENQUEUE_EPT52A0' exporting mode_t52a0 = 'E' procl = p_prog_class otype = p_object_type exceptions foreign_lock = 1 system_failure = 2 others = 3.

TR_OBJECT_CHECK call function 'TR_OBJECT_CHECK' exporting wi_ko200 = wi_ko200 tables wt_e071k = wt_e071k exceptions others = 1.

DEQUEUE_ALL call function 'DEQUEUE_ALL' exceptions others = 1.

TR_OBJECT_CHECK CALL FUNCTION 'TR_OBJECT_CHECK' EXPORTING wi_ko200 = wi_ko200 IMPORTING we_ko200 = wi_ko200 TABLES wt_e071k = wt_e071k EXCEPTIONS OTHERS = 1.

TR_OBJECT_INSERT call function 'TR_OBJECT_INSERT' exporting wi_ko200 = wi_ko200 wi_order = order importing es_tadir = l_tadir we_order = order we_task = task tables wt_e071k = wt_e071k exceptions others = 01.

HROBJECT_WRITE_SMODILOG call function 'HROBJECT_WRITE_SMODILOG' exporting object = wi_ko200-object obj_name = wi_ko200-obj_name orderno = order.

TR_DEVCLASS_GET call function 'TR_DEVCLASS_GET' exporting iv_devclass = l_tadir-devclass importing es_tdevc = l_tdevc exceptions others = 1.

TR_TADIR_INTERFACE call function 'TR_TADIR_INTERFACE' exporting wi_delete_tadir_entry = 'X' wi_test_modus = space wi_tadir_pgmid = l_tadir-pgmid wi_tadir_object = l_tadir-object wi_tadir_obj_name = l_tadir-obj_name exceptions others = 1.

GET_NEW_NUMBER_PE04 call function 'GET_NEW_NUMBER_PE04' exporting object_type = object_type program_class = program_class number_range = number_range country = country importing new_number = new_number number_subrc = number_subrc tables i52a0 = i52a0.

CHECK_NUMBER_CHANGED_PE04 call function 'CHECK_NUMBER_CHANGED_PE04' exporting object_type = object_type object_name = object_name importing number_changed = flag_number_changed fname_changed = flag_fname_changed tables molgas = active_molgas exceptions others = 1.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' exporting textline1 = text-020 textline2 = text-021 titel = text-022 importing answer = answer exceptions others = 1.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' exporting textline1 = text-020 textline2 = text-021 titel = text-022 importing answer = answer exceptions others = 1.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' exporting textline1 = text-020 textline2 = text-021 titel = text-022 importing answer = answer exceptions others = 1.

TR_WRITE_LOG call function 'TR_WRITE_LOG' exporting iv_log_type = 'MEMORY' iv_logname_memory = 'ACTIVATE_LOG' tables it_msgs = mess_tab exceptions others = 1.

TR_READ_AND_DISPLAY_LOG call function 'TR_READ_AND_DISPLAY_LOG' exporting iv_log_type = 'MEMORY' iv_logname_memory = 'ACTIVATE_LOG' exceptions others = 1.

HR_ADDON_DELTA_NEEDED call function 'HR_ADDON_DELTA_NEEDED' exporting i_fcode = fcode i_procl = prog_class i_otype = object_type i_oname = object_name i_numra = number_range i_fname_current = fname i_fname_before = fname_before i_model_current = model i_model_before = model_before importing proc_shadow = proc_shadow tables t_count_current = countries t_itype_current = infotypes_all t_param_current = parameter t_paval_current = param_values_all t_pacou_current = parcount_all t_oppar_current = opparameter t_oppac_current = opparcount t_grpre_current = grouping_reasons t_count_before = countries_before t_itype_before = infotypes_all_before t_param_before = parameter_before t_paval_before = param_values_all_before t_pacou_before = parcount_all_before t_oppar_before = opparameter_before t_oppac_before = opparcount_before t_grpre_before = grouping_reasons_before t_count_delta = molgas_d t_itype_delta = itypes_d t_param_delta = parame_d t_paval_delta = paramv_d t_pacou_delta = paramc_d t_oppar_delta = oppara_d t_oppac_delta = opparc_d t_grpre_delta = grp_re_d exceptions no_deletion = 1 others = 2.

HR_ADDON_TRANSPORT_FILL call function 'HR_ADDON_TRANSPORT_FILL' " exporting i_oclas = object_class " i_procl = prog_class " i_otype = object_type " i_oname = object_name " i_order = order " importing e_order = order " tables t_e071k = wt_e071k " t_e071 = wt_e071 " t_count_delta = molgas_d " t_itype_delta = itypes_d " t_param_delta = parame_d " t_parav_delta = paramv_d " t_parac_delta = paramc_d " t_oppar_delta = oppara_d " t_oppac_delta = opparc_d " t_grpre_delta = grp_re_d. "

HR_ADDON_TABLES_DELETE





call function 'HR_ADDON_TABLES_DELETE' " exporting i_oclas = object_class " i_procl = prog_class " i_otype = object_type " i_oname = object_name. "

HR_ADDON_TABLES_CREATE call function 'HR_ADDON_TABLES_CREATE' " exporting i_oclas = object_class i_procl = prog_class i_otype = object_type i_oname = object_name tables t_count_delta = molgas_d t_itype_delta = itypes_d t_param_delta = parame_d t_parav_delta = paramv_d t_parac_delta = paramc_d t_oppar_delta = oppara_d t_oppac_delta = opparc_d t_grpre_delta = grp_re_d. "

POPUP_TO_CONFIRM_WITH_VALUE call function 'POPUP_TO_CONFIRM_WITH_VALUE' exporting defaultoption = 'J' objectvalue = object_name text_after = text_after text_before = text_before titel = title importing answer = answer.

POPUP_TO_CONFIRM_LOSS_OF_DATA call function 'POPUP_TO_CONFIRM_LOSS_OF_DATA' exporting textline1 = text-027 textline2 = text-028 titel = text-026 * START_COLUMN = 25 * START_ROW = 6 importing answer = answer exceptions others = 1.

WHERE_USED_LIST_PE04_FUNC call function 'WHERE_USED_LIST_PE04_FUNC' exporting function = object_name prog_class = prog_class tables result_sap = result_sap result_cust = result_cust exceptions others = 1.

PRINT_WHERE_USED_PE04_FUNC call function 'PRINT_WHERE_USED_PE04_FUNC' tables result_sap = result_sap result_customer = result_cust exceptions others = 1.

WHERE_USED_LIST_PE04_OPERA call function 'WHERE_USED_LIST_PE04_OPERA' exporting operation = object_name prog_class = prog_class tables result = result exceptions others = 1.

PRINT_WHERE_USED_PE04_OPERA call function 'PRINT_WHERE_USED_PE04_OPERA' exporting operation = object_name tables result = result exceptions others = 1.

JOB_OPEN * CALL FUNCTION 'JOB_OPEN' * EXPORTING * DELANFREP = ' ' * JOBGROUP = ' ' * JOBNAME = JOBNAME * SDLSTRTDT = NO_DATE * SDLSTRTTM = NO_TIME * IMPORTING * JOBCOUNT = JOBCOUNT * EXCEPTIONS * CANT_CREATE_JOB = 1 * INVALID_JOB_DATA = 2 * JOBNAME_MISSING = 3 * OTHERS = 4.

JOB_CLOSE * CALL FUNCTION 'JOB_CLOSE' * EXPORTING * JOBCOUNT = JOBCOUNT * JOBNAME = JOBNAME * STRTIMMED = 'X' * IMPORTING * JOB_WAS_RELEASED = RELEASED * EXCEPTIONS * CANT_START_IMMEDIATE = 1 * INVALID_STARTDATE = 2 * JOBNAME_MISSING = 3 * JOB_CLOSE_FAILED = 4 * JOB_NOSTEPS = 5 * JOB_NOTEX = 6 * LOCK_FAILED = 7 * OTHERS = 8.

POPUP_TO_DECIDE_WITH_MESSAGE * CALL FUNCTION 'POPUP_TO_DECIDE_WITH_MESSAGE' * EXPORTING * DEFAULTOPTION = '1' * DIAGNOSETEXT1 = TEXT-031 * DIAGNOSETEXT2 = TEXT-032 * DIAGNOSETEXT3 = TEXT-033 * TEXTLINE1 = TEXT-034 * TEXTLINE2 = TEXT-035 * TEXTLINE3 = TEXT-036 * TEXT_OPTION1 = TEXT-037 * TEXT_OPTION2 = TEXT-038 * TITEL = TEXT-039 * START_COLUMN = 25 * START_ROW = 6 * IMPORTING * ANSWER = ANSWER * EXCEPTIONS * OTHERS = 1.

CHECK_CUSTOMER_OBJECT_PE04 call function 'CHECK_CUSTOMER_OBJECT_PE04' exporting * MOLGA = otype = object_class oname = object_name importing flag_customer_object = customer_object system_sap = system_sap exceptions others = 0.

SHOW_SOURCE_PE04 call function 'SHOW_SOURCE_PE04' exporting form_name = fname object_type = p_object_type procl = p_prog_class tables molgas = molgas changing mainprogram = mainprogram exceptions could_not_find_form = 1 could_not_read_include = 2 user_cancelled = 3 others = 4.

SHOW_SOURCE_PE04 call function 'SHOW_SOURCE_PE04' exporting form_name = fname object_type = p_object_type procl = p_prog_class tables molgas = molgas changing mainprogram = mainprogram exceptions could_not_find_form = 1 could_not_read_include = 2 user_cancelled = 3 others = 4.

TR_TADIR_POPUP_ENTRY_E071 call function 'TR_TADIR_POPUP_ENTRY_E071' exporting * WI_MESSAGE_ENTER_DEVCLASS = ' ' wi_read_only = read_only * WI_TADIR_DEVCLASS = ' ' * WI_TADIR_GENFLAG = ' ' wi_e071_object = wt_e071-object wi_e071_obj_name = wt_e071-obj_name wi_e071_pgmid = wt_e071-pgmid exceptions exit = 1 others = 2.

DYNP_VALUES_READ call function 'DYNP_VALUES_READ' exporting dyname = sy-cprog dynumb = sy-dynnr tables dynpfields = dynpfields exceptions others = 0.

F4IF_INT_TABLE_VALUE_REQUEST call function 'F4IF_INT_TABLE_VALUE_REQUEST' exporting retfield = 'ONAME' value_org = 'S' window_title = window_title tables value_tab = value_tab return_tab = return_tab exceptions parameter_error = 1 no_values_found = 2 others = 3.

HRDSYS_EDIT_DOCU call function 'HRDSYS_EDIT_DOCU' exporting oname = $object_name otype = $object_class first_changemode = first_change_mode transportflag = 'X' wi_trkorr = $korr_number flag_cust_object = cust_object importing we_trkorr = $korr_number exceptions internal_error = 1 others = 0.

HRDSYS_LOIO_CREATE call function 'HRDSYS_LOIO_CREATE' exporting oname = object_name otype = object_class transportflag = 'X' wi_trkorr = order flag_cust_object = cust_object importing we_trkorr = order exceptions internal_error = 1 others = 0.

HRDSYS_TRANSPORT_DOCU_ALWAYS call function 'HRDSYS_TRANSPORT_DOCU_ALWAYS' exporting oname = object_name otype = object_class flag_cust_object = cust_object wi_trtask = p_task importing we_trtask = p_task exceptions temporary_object = 0 others = 1.




TR_TADIR_INTERFACE call function 'TR_TADIR_INTERFACE' exporting wi_tadir_pgmid = wt_e071-pgmid wi_tadir_object = wt_e071-object wi_tadir_obj_name = obj_name wi_read_only = 'X' importing * new_gtadir_entry = new_tadir_entry = tadir_entry exceptions others = 0.

POPUP_TO_CONFIRM_WITH_VALUE call function 'POPUP_TO_CONFIRM_WITH_VALUE' exporting defaultoption = 'Y' objectvalue = object_name text_after = text_after text_before = text_before titel = title importing answer = answer.

HRDSYS_DELETE_DOCU_OF_OBJECT call function 'HRDSYS_DELETE_DOCU_OF_OBJECT' exporting oname = object_name otype = object_class transportflag = 'X' wi_trkorr = order flag_cust_object = cust_object importing we_trkorr = order exceptions wrong_otype = 1 not_found = 2 internal_error = 3 hrdsys_error = 4 others = 5.

POPUP_TO_CONFIRM_WITH_VALUE call function 'POPUP_TO_CONFIRM_WITH_VALUE' exporting defaultoption = 'J' objectvalue = object_name text_after = text_after text_before = text_before titel = title importing answer = answer.



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