SAP Reports / Programs | Financial Accounting | Travel Management | Travel Expenses(FI-TV-COS) SAP FI

MP56T_GEN_ROUTINES SAP ABAP INCLUDE - MP56TGENROUTINES







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

INCLUDE MP56TDAT_SIM_KI4.


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:

RP_GET_CURRENCY CALL FUNCTION 'RP_GET_CURRENCY' EXPORTING molga = p_t500p-molga begda = sy-datum IMPORTING waers = p_ptp42-waers 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.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = p_datum foreign_amount = p_betragi foreign_currency = p_waersf local_currency = p_waersl rate = 0 type_of_rate = p_kurs_type IMPORTING exchange_rate = p_kursb foreign_factor = p_ffact local_amount = p_betrago local_factor = p_tfact EXCEPTIONS no_rate_found = 04 overflow = 08.

NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING nr_range_nr = num_kri object = num_obj quantity = dummy_quantity subobject = num_subobj toyear = dummy_toyear IMPORTING returncode = num_rt_code quantity = dummy_quantity number = get_reinr EXCEPTIONS interval_not_found = 04 number_range_not_intern = 14 object_not_found = 12 quantity_is_0 = 16.

NUMBER_CHECK CALL FUNCTION 'NUMBER_CHECK' EXPORTING nr_range_nr = num_kre number = test_reinr object = num_obj subobject = test_werk IMPORTING returncode = num_rt_code EXCEPTIONS interval_not_found = 04 number_range_not_extern = 08 object_not_found = 12.

MENU_BUILD_TREE_READ_TEXT CALL FUNCTION 'MENU_BUILD_TREE_READ_TEXT' "QIZK044326 EXPORTING "QIZK044326 program_name = repid "QIZK044326 textelement_number = text_no "QIZK044326 language = sy-langu "QIZK044326 IMPORTING "QIZK044326 text = verpa_text. "QIZK044326

PTRA_UTIL_MEM_GLOBALS_GET CALL FUNCTION 'PTRA_UTIL_MEM_GLOBALS_GET' EXPORTING i_employeenumber = wa_head-pernr i_date = lwa_date IMPORTING e_trvpa = lwa_trvpa EXCEPTIONS error_occurred = 1 OTHERS = 2.

TG_PERIOD_CHANGE_STATUS CALL FUNCTION 'TG_PERIOD_CHANGE_STATUS' EXPORTING employeenumber = t_perio-pernr tripnumber = t_perio-reinr periodnumber = t_perio-perio new_headerversion = wa_head-hdvrs printed_new = '1' approved_new = new_app account_new = new_acc IMPORTING return = h_return current_period_version = h_pdvrs.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'Y' textline1 = text-085 textline2 = text-086 titel = text-087 start_column = 25 start_row = 6 cancel_display = 'X' IMPORTING answer = answer EXCEPTIONS OTHERS = 0 ##fm_olded.

HR_EVAL_STATUS_GET CALL FUNCTION 'HR_EVAL_STATUS_GET' EXPORTING type = 'TR' runid = h_perio-runid IMPORTING status = actual_status EXCEPTIONS run_not_found = 1 run_locked = 2.

PTRV_TRIP_CHAIN_UPDATE CALL FUNCTION 'PTRV_TRIP_CHAIN_UPDATE' EXPORTING wa_head = wa_head wa_perio = wa_perio IMPORTING wa_head_changed = wa_head trip_not_compl_transf = trip_not_compl_transf changed_act_trip = changed_act_trip changed_diff_trips = changed_diff_trips TABLES ziel = ziel dest_nr_pd_nr_ov = lt_dest_nr_pd_nr_ov.

TRIP_BAUE_ZIELE CALL FUNCTION 'TRIP_BAUE_ZIELE' EXPORTING t001_land1 = t001_land1 wa_head = wa_head wa_perio = wa_perio TABLES p_ziel = ziel p_ziele = h_ziele.

TG_GET_PARALLEL_TRIPKEYS CALL FUNCTION 'TG_GET_PARALLEL_TRIPKEYS' EXPORTING employeenumber = wa_head-pernr periode_dat_begin = datvon periode_uhr_begin = uhrvon periode_dat_end = datbis periode_uhr_end = uhrbis nogen = 'X' TABLES t_perio_key = h_perio_key EXCEPTIONS OTHERS = 1. "GLW note 1760272

TRIPS_LIST_PERIO_HEAD CALL FUNCTION 'TRIPS_LIST_PERIO_HEAD' EXPORTING employeenumber = wa_head-pernr old_versions = space TABLES perio = loc_perio head = loc_head EXCEPTIONS table_perio_read_error = 1 table_head_read_error = 2 tables_inconsistent = 3 OTHERS = 4.

TG_GET_PARALLEL_PERIOKEYS CALL FUNCTION 'TG_GET_PARALLEL_PERIOKEYS' EXPORTING employeenumber = wa_head-pernr trip_dat_begin = datvon trip_uhr_begin = uhrvon trip_dat_end = datbis trip_uhr_end = uhrbis nogen = 'X' TABLES t_perio_key = h_perio_key EXCEPTIONS "GLWE34K023597 no_parallel_periods = 1 table_perio_read_error = 2 OTHERS = 3.

TG_GET_TGKENNZEICHEN CALL FUNCTION 'TG_GET_TGKENNZEICHEN' EXPORTING morei = h_head-morei kzrea = h_head-kzrea IMPORTING trg_tr = h_trg_tr.

TG_GET_PERIO_ZIEL CALL FUNCTION 'TG_GET_PERIO_ZIEL' EXPORTING te_key = h_te_key IMPORTING subrc = h_subrc TABLES tg_perio_ziel = h_tg_perio_ziel.



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