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

MP56TFKK SAP ABAP INCLUDE - Form Routines Miles/Kms Accumulation







MP56TFKK 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 MP56TFKK 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 MP56TFKK. "Basic submit
SUBMIT MP56TFKK AND RETURN. "Return to original report after report execution complete
SUBMIT MP56TFKK 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 Miles/Kms Accumulation


INCLUDES used within this REPORT MP56TFKK

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:

TRIP_CHECK_CURRENT_INTERVAL CALL FUNCTION 'TRIP_CHECK_CURRENT_INTERVAL' EXPORTING employeenumber = p_perio-pernr tripnumber = p_perio-reinr perionumber = p_perio-perio versionnumber = p_perio-pdvrs IMPORTING return = p_return current_interval = curr_int.

PA_TRV_POPUP_Y_N_CANC_INFO CALL FUNCTION 'PA_TRV_POPUP_Y_N_CANC_INFO' EXPORTING head_line1 = text-km1 head_line2 = text-km2 head_line3 = text-km3 popuptitel = text-km4 info_text = 'PTRV_KM_RECALCULATION' IMPORTING return_code = answer.

BAPI_TRIP_CHANGE_STATUS CALL FUNCTION 'BAPI_TRIP_CHANGE_STATUS' "XFUK001931 EXPORTING "XFUK001931 employeenumber = help_perio-pernr "XFUK001931 tripnumber = help_perio-reinr "XFUK001931 periodnumber = help_perio-perio "XFUK001931 approved_new = help_perio-antrg "XFUK001931 account_new = help_perio-abrec "XFUK001931 IMPORTING "XFUK001931 return = p_return. "XFUK001931

BAPI_TRIP_CHANGE_STATUS CALL FUNCTION 'BAPI_TRIP_CHANGE_STATUS' EXPORTING employeenumber = help_perio-pernr tripnumber = help_perio-reinr periodnumber = help_perio-perio approved_new = '4' account_new = '1' IMPORTING return = p_return.

HRCA_COMPANYCODE_GETDETAIL CALL FUNCTION 'HRCA_COMPANYCODE_GETDETAIL' EXPORTING companycode = p0001-bukrs language = sy-langu IMPORTING country = t001_land1 EXCEPTIONS not_found = 1 OTHERS = 2.

HRCA_COMPANYCODE_GETDETAIL CALL FUNCTION 'HRCA_COMPANYCODE_GETDETAIL' "XFUK001931 EXPORTING "XFUK001931 companycode = p0001-bukrs "XFUK001931 language = sy-langu "XFUK001931 IMPORTING "XFUK001931 country = t001_land1 "XFUK001931 EXCEPTIONS "XFUK001931 not_found = 1 "XFUK001931 OTHERS = 2. "XFUK001931

TRIP_CHECK_CURRENT_INTERVAL CALL FUNCTION 'TRIP_CHECK_CURRENT_INTERVAL' EXPORTING employeenumber = p_ptp00_pernr tripnumber = p_ptp00_reinr perionumber = p_ptp00_perio versionnumber = p_ptp00_pdvrs IMPORTING return = p_return current_interval = curr_int.

PA_TRV_POPUP_Y_N_CANC_INFO CALL FUNCTION 'PA_TRV_POPUP_Y_N_CANC_INFO' EXPORTING head_line1 = popup_text1 head_line2 = text-km6 head_line3 = text-km7 popuptitel = text-km4 info_text = 'PTRV_KM_RECALCULATION' IMPORTING return_code = answer.

PA_TRV_POPUP_Y_N_CANC_INFO CALL FUNCTION 'PA_TRV_POPUP_Y_N_CANC_INFO' EXPORTING head_line1 = popup_text1 head_line2 = text-km2 head_line3 = text-km3 popuptitel = text-km4 info_text = 'PTRV_KM_RECALCULATION' IMPORTING return_code = answer.

TRIP_CHECK_CURRENT_INTERVAL CALL FUNCTION 'TRIP_CHECK_CURRENT_INTERVAL' EXPORTING employeenumber = p_accdt-pernr tripnumber = p_accdt-reinr perionumber = p_accdt-perio versionnumber = p_accdt-pdvrs IMPORTING return = p_return current_interval = curr_int.

BAPI_TRIP_CHANGE_STATUS CALL FUNCTION 'BAPI_TRIP_CHANGE_STATUS' EXPORTING employeenumber = help_perio-pernr tripnumber = help_perio-reinr periodnumber = help_perio-perio approved_new = '4' account_new = '1' IMPORTING return = p_return.

TRIP_CHECK_CURRENT_INTERVAL CALL FUNCTION 'TRIP_CHECK_CURRENT_INTERVAL' EXPORTING employeenumber = p_perio-pernr tripnumber = p_perio-reinr perionumber = p_perio-perio versionnumber = p_perio-pdvrs IMPORTING return = p_return current_interval = curr_int.

PA_TRV_POPUP_Y_N_CANC_INFO CALL FUNCTION 'PA_TRV_POPUP_Y_N_CANC_INFO' EXPORTING head_line1 = text-km1 head_line2 = text-km2 head_line3 = text-km3 popuptitel = text-km4 info_text = 'PTRV_KM_RECALCULATION' IMPORTING return_code = answer.

TRIP_CHECK_CURRENT_INTERVAL CALL FUNCTION 'TRIP_CHECK_CURRENT_INTERVAL' EXPORTING employeenumber = p_reised-pernr tripnumber = p_reised-reinr perionumber = p_reised-perio versionnumber = p_reised-pdvrs IMPORTING return = p_return current_interval = curr_int.

BAPI_TRIP_CHANGE_STATUS CALL FUNCTION 'BAPI_TRIP_CHANGE_STATUS' EXPORTING employeenumber = help_perio-pernr tripnumber = help_perio-reinr periodnumber = help_perio-perio approved_new = '4' account_new = '1' IMPORTING return = p_return.

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = text-k01 txt1 = text-k02 txt2 = text-k03 txt3 = text-k04 * TXT4 = ' ' EXCEPTIONS OTHERS = 1.

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = text-k01 txt1 = text-k02 txt2 = text-k03 txt3 = text-k04 * TXT4 = ' ' EXCEPTIONS OTHERS = 1.

HR_READ_INFOTYPE_AUTHC_DISABLE CALL FUNCTION 'HR_READ_INFOTYPE_AUTHC_DISABLE'.

HR_READ_INFOTYPE





CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = persid infty = '0017' begda = begda endda = endda IMPORTING subrc = subrc TABLES infty_tab = p0017 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

BALW_BAPIRETURN_GET

BALW_BAPIRETURN_GET2 * CALL FUNCTION 'BALW_BAPIRETURN_GET' "WKUK128045 CALL FUNCTION 'BALW_BAPIRETURN_GET2' "WKUK128045 EXPORTING type = mtype cl = msgid number = msgno par1 = msgv1 par2 = msgv2 par3 = msgv3 par4 = msgv4 * log_no = ' ' * log_msg_no = ' ' IMPORTING * bapireturn = p_return "WKUK128045 return = p_ret2 "WKUK128045 EXCEPTIONS OTHERS = 1.

HR_GET_ERROR_LIST CALL FUNCTION 'HR_GET_ERROR_LIST' * EXPORTING * USE_ABAP_MEMORY = ' ' TABLES error = error errortexts = errortexts EXCEPTIONS no_errors = 1 OTHERS = 2.

BALW_BAPIRETURN_GET2 CALL FUNCTION 'BALW_BAPIRETURN_GET2' EXPORTING type = mtype cl = '56' number = '016' par1 = msgv1 par2 = msgv2 par3 = msgv3 * par4 = msgv4 * log_no = ' ' * log_msg_no = ' ' IMPORTING return = p_ret2 EXCEPTIONS OTHERS = 1.

HR_EVAL_STATUS_GET CALL FUNCTION 'HR_EVAL_STATUS_GET' EXPORTING type = 'TR' runid = p_wa_perio-runid IMPORTING status = actual_status EXCEPTIONS run_not_found = 1 run_locked = 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 MP56TFKK or its description.