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

MP56TF50 SAP ABAP INCLUDE - Selektionen der logischen Datenbank PTRVP







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

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:

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING * date = ptp02-datv1 "QKZK022501 date = h1_datum "QKZK022501 foreign_amount = dummy_famount foreign_currency = ptk08-waers * local_currency = ptp42-waers "YKYK000648 local_currency = ptk08-paycurr "YKYK000648 rate = 0 type_of_rate = t706d-kurst IMPORTING exchange_rate = ptk08-kursv foreign_factor = ptk08-ffact local_amount = dummy_tamount local_factor = ptk08-tfact EXCEPTIONS no_rate_found = 04 overflow = 08.

DYNP_GET_STEPL CALL FUNCTION 'DYNP_GET_STEPL' IMPORTING povstepl = cursor_line_h EXCEPTIONS stepl_not_found = 1 OTHERS = 2.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = program dynumb = number translate_to_upper = 'X' TABLES dynpfields = dynpfields EXCEPTIONS error_message = 1.

CONVERT_DATE_TO_INTERNAL CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL' EXPORTING date_external = dynpfields-fieldvalue IMPORTING date_internal = ptk08-datvs EXCEPTIONS error_message = 1.

F4_EXCHANGE_RATE CALL FUNCTION 'F4_EXCHANGE_RATE' EXPORTING type_of_rate = t706d-kurst date = ptk08-datvs foreign_currency = ptk08-waers local_currency = ptk08-paycurr fieldname = 'PTK08-KURSV' dyname = program dynumb = number display_only = show.

CONVERT_TO_FOREIGN_CURRENCY call function 'CONVERT_TO_FOREIGN_CURRENCY' exporting * date = ptp02-datv1 "WBGK054727 date = convert_date "WBGK054727 foreign_currency = vsch-waers local_amount = vsch-vorhw * local_currency = ptp42-waers "YKYK000648 local_currency = vsch-paycurr "YKYK000648 rate = vsch-kursv type_of_rate = t706d-kurst importing exchange_rate = vsch-kursv foreign_amount = vsch-vorsc exceptions
no_rate_found = 04 overflow = 08.

CONVERT_TO_LOCAL_CURRENCY call function 'CONVERT_TO_LOCAL_CURRENCY' exporting * date = ptp02-datv1 "WBGK054727 date = convert_date "WBGK054727 foreign_amount = vsch-vorsc foreign_currency = vsch-waers * local_currency = ptp42-waers "YKYK000648 local_currency = vsch-paycurr "YKYK000648 rate = vsch-kursv type_of_rate = t706d-kurst importing exchange_rate = vsch-kursv foreign_factor = vsch-ffact local_amount = vsch-vorhw local_factor = vsch-tfact
exceptions no_rate_found = 04 overflow = 08.

CONVERT_TO_FOREIGN_CURRENCY call function 'CONVERT_TO_FOREIGN_CURRENCY' exporting * date = ptp02-datv1 "WBGK054727 date = convert_date "WBGK054727 foreign_currency = vsch-waers local_amount = vsch-vorhw * local_currency = ptp42-waers "YKYK000648 local_currency = vsch-paycurr "YKYK000648 rate = vsch-kursv type_of_rate = t706d-kurst importing
exchange_rate = vsch-kursv foreign_amount = vsch-vorsc exceptions no_rate_found = 04 overflow = 08.

CONVERT_TO_LOCAL_CURRENCY call function 'CONVERT_TO_LOCAL_CURRENCY' exporting * date = ptp02-datv1 "WBGK054727 date = convert_date "WBGK054727 foreign_amount = vsch-vorsc foreign_currency = vsch-waers * local_currency = ptp42-waers "YKYK000648 local_currency = vsch-paycurr "YKYK000648 rate = vsch-kursv type_of_rate = t706d-kurst importing
exchange_rate = vsch-kursv foreign_factor = vsch-ffact local_amount = vsch-vorhw local_factor = vsch-tfact exceptions no_rate_found = 04 overflow = 08.

HRCA_ROUND_AMOUNT call function 'HRCA_ROUND_AMOUNT' exporting amount_in = amount_in company = t001_bukrs * currency = ptp42-waers "YKYK000648 currency = vsch-paycurr "YKYK000648 importing amount_out = amount_out
difference = difference exceptions others = 0.

ROUND_AMOUNT * CALL FUNCTION 'ROUND_AMOUNT' * EXPORTING AMOUNT_IN = AMOUNT_IN * COMPANY = T001_BUKRS * CURRENCY = ptp42-WAERS * IMPORTING AMOUNT_OUT = AMOUNT_OUT * DIFFERENCE = DIFFERENCE * NO_ROUNDING = NO_ROUNDING.



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