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

MP56TFST SAP ABAP INCLUDE - Form Routines for Trip Statistics







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


Text pool values


Title: Form Routines for Trip Statistics


INCLUDES used within this REPORT MP56TFST

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:

PTRV_GET_REIMBURSEMENT_AMOUNT CALL FUNCTION 'PTRV_GET_REIMBURSEMENT_AMOUNT' EXPORTING employeenumber = pernr tripnumber = reinr period = perio IMPORTING reimbursement_amount = reimbu currency = curr_out EXCEPTIONS no_entry_in_ptrv_shdr = 1 error_in_currency_conversion = 2 trip_prior_to_userprefs = 3 OTHERS = 4.

PTRV_TRAVEL_STATS_UPDATE_MODE CALL FUNCTION 'PTRV_TRAVEL_STATS_UPDATE_MODE' EXPORTING trip_provision_variant = morei IMPORTING update_mode = upd_mode.

PTRV_TRAVEL_STATS_UPD_PRESTEP CALL FUNCTION 'PTRV_TRAVEL_STATS_UPD_PRESTEP' EXPORTING personnel_number = pernr validity_date = datb1 trip_number = reinr trip_period = perio trip_schema = schem trip_provision_variant = morei update_type = update_type iv_update_ptrv_scom_data = pv_update_ptrv_scom_data "XMW_FEH_EES_EHP5e iv_settlemnt_status = wa_perio-abrec "MAW Save as draft IMPORTING update_mode = update_mode return = xreturn * XMW_FEH_EES_EHP5e begin ev_trip_total = pv_trip_total es_ret = ps_ret.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING * date = t_head-datv1 "YEKPH9K008401 date = trip_start "YEKPH9K008401 foreign_amount = itab-sum_reimbu foreign_currency = itab-currency * local_currency = t_perio-waers "YEKPH9K008401 local_currency = curr_in "YEKPH9K008401 IMPORTING local_amount = reimbu_tmp EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

HRCA_GET_TRIP_PAYMENT_HISTORY CALL FUNCTION 'HRCA_GET_TRIP_PAYMENT_HISTORY' EXPORTING im_personnel_number = im_pernr im_trip_number_tab = lt_reinr im_current_trip_version_only = space. "............YEKP1HK000143

HRCA_GET_TRIP_PAYMENT_HISTORY CALL FUNCTION 'HRCA_GET_TRIP_PAYMENT_HISTORY' EXPORTING im_personnel_number = im_pernr im_trip_number_tab = lt_reinr im_current_trip_version_only = space.

PTRV_GET_TRIP_PAYMENT_DATE CALL FUNCTION 'PTRV_GET_TRIP_PAYMENT_DATE' EXPORTING im_personnel_number = im_pernr im_trip_number = im_reinr im_trip_period = im_perio IMPORTING ex_payment_date = ex_augdt ex_partial_payment = ex_partial ex_transfered_no_payment = ex_xfernopay EXCEPTIONS failed = 1 OTHERS = 2.

PTRV_GET_USERPREFS CALL FUNCTION 'PTRV_GET_USERPREFS' IMPORTING various_fields = ls_upref.

DATE_CHECK_PLAUSIBILITY CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY' EXPORTING date = ex_date_out EXCEPTIONS plausibility_check_failed = 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 MP56TFST or its description.