SAP EXIT_SAPMP56T_003 Function Module for User exit: Save trip (PR01, PR04, PR05)









EXIT_SAPMP56T_003 is a standard exit sapmp56t 003 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for User exit: Save trip (PR01, PR04, PR05) processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for exit sapmp56t 003 FM, simply by entering the name EXIT_SAPMP56T_003 into the relevant SAP transaction such as SE37 or SE38.

Function Group: XTRV
Program Name: SAPLXTRV
Main Program: SAPLXTRV
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EXIT_SAPMP56T_003 pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'EXIT_SAPMP56T_003'"User exit: Save trip (PR01, PR04, PR05)
EXPORTING
KMSUM = "Miles/Km Cumulation
KMVER = "Leg of Trip
PAUFA = "Trip Reimbursement Amounts for Travel Costs
UEBPA = "Trip Reimbursement Amounts for Per Diem Accommodations
BELER = "Trip Reimbursement Amounts for Individual Receipts
VPFPS = "Trip Reimbursement Amounts for Meals
VPFPA = "Travel Expense Deduction Amounts for Meals
ROT = "Travel Expense Results for HR Payroll
RUW = "Travel Expense Transfer
AEND = "Status/Changed By
KOSTR = "Travel Expense Assignment Specification for Entire Trip
BELEG = "Travel Expense Specifications According to Individual Receipt
KOSTZ = "Trip Costs Assignment Specification for Trip Destination
KOSTB = "Trip Costs Assignment Specification for Indiv. Receipt
KOSTK = "Cost Distribution for Mileage Distribution
V0SPLIT = "Structure of ITAB V0SPLIT
EDITOR = "Travel Management General Purpose Text Editor
USER = "Field String/Table for USER Screen
* T_GUEST_OLD = "Participant(s) in Entertainment Receipts
TRIP_HEADER = "General Trip Data
TRIP_PERIOD = "Period Data of a Trip
TRIP_STATUS = "Trip Status
EXBEL = "Supplemented Individual Receipt
ABZUG = "Deductions Due to Gratuitous Entertainment
TRANSPORT = "
ZIEL = "Stopover
ZWECK = "Additional Trip Information
KONTI = "Travel Expenses Assignment Specification
VSCH = "Trip Advance
.



IMPORTING Parameters details for EXIT_SAPMP56T_003

KMSUM - Miles/Km Cumulation

Data type: TABLE
Optional: No
Call by Reference: Yes

KMVER - Leg of Trip

Data type: TABLE
Optional: No
Call by Reference: Yes

PAUFA - Trip Reimbursement Amounts for Travel Costs

Data type: TABLE
Optional: No
Call by Reference: Yes

UEBPA - Trip Reimbursement Amounts for Per Diem Accommodations

Data type: TABLE
Optional: No
Call by Reference: Yes

BELER - Trip Reimbursement Amounts for Individual Receipts

Data type: TABLE
Optional: No
Call by Reference: Yes

VPFPS - Trip Reimbursement Amounts for Meals

Data type: TABLE
Optional: No
Call by Reference: Yes

VPFPA - Travel Expense Deduction Amounts for Meals

Data type: TABLE
Optional: No
Call by Reference: Yes

ROT - Travel Expense Results for HR Payroll

Data type: TABLE
Optional: No
Call by Reference: Yes

RUW - Travel Expense Transfer

Data type: TABLE
Optional: No
Call by Reference: Yes

AEND - Status/Changed By

Data type: TABLE
Optional: No
Call by Reference: Yes

KOSTR - Travel Expense Assignment Specification for Entire Trip

Data type: TABLE
Optional: No
Call by Reference: Yes

BELEG - Travel Expense Specifications According to Individual Receipt

Data type: TABLE
Optional: No
Call by Reference: Yes

KOSTZ - Trip Costs Assignment Specification for Trip Destination

Data type: TABLE
Optional: No
Call by Reference: Yes

KOSTB - Trip Costs Assignment Specification for Indiv. Receipt

Data type: TABLE
Optional: No
Call by Reference: Yes

KOSTK - Cost Distribution for Mileage Distribution

Data type: TABLE
Optional: No
Call by Reference: Yes

V0SPLIT - Structure of ITAB V0SPLIT

Data type: TABLE
Optional: No
Call by Reference: Yes

EDITOR - Travel Management General Purpose Text Editor

Data type: TABLE
Optional: No
Call by Reference: Yes

USER - Field String/Table for USER Screen

Data type: TABLE
Optional: No
Call by Reference: Yes

T_GUEST_OLD - Participant(s) in Entertainment Receipts

Data type: TABLE
Optional: Yes
Call by Reference: Yes

TRIP_HEADER - General Trip Data

Data type: PTRV_HEAD
Optional: No
Call by Reference: Yes

TRIP_PERIOD - Period Data of a Trip

Data type: PTRV_PERIO
Optional: No
Call by Reference: Yes

TRIP_STATUS - Trip Status

Data type: PTK12
Optional: No
Call by Reference: Yes

EXBEL - Supplemented Individual Receipt

Data type: TABLE
Optional: No
Call by Reference: Yes

ABZUG - Deductions Due to Gratuitous Entertainment

Data type: TABLE
Optional: No
Call by Reference: Yes

TRANSPORT -

Data type: TABLE
Optional: No
Call by Reference: Yes

ZIEL - Stopover

Data type: TABLE
Optional: No
Call by Reference: Yes

ZWECK - Additional Trip Information

Data type: TABLE
Optional: No
Call by Reference: Yes

KONTI - Travel Expenses Assignment Specification

Data type: TABLE
Optional: No
Call by Reference: Yes

VSCH - Trip Advance

Data type: TABLE
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for EXIT_SAPMP56T_003 Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_kmsum  TYPE TABLE, "   
lv_kmver  TYPE TABLE, "   
lv_paufa  TYPE TABLE, "   
lv_uebpa  TYPE TABLE, "   
lv_beler  TYPE TABLE, "   
lv_vpfps  TYPE TABLE, "   
lv_vpfpa  TYPE TABLE, "   
lv_rot  TYPE TABLE, "   
lv_ruw  TYPE TABLE, "   
lv_aend  TYPE TABLE, "   
lv_kostr  TYPE TABLE, "   
lv_beleg  TYPE TABLE, "   
lv_kostz  TYPE TABLE, "   
lv_kostb  TYPE TABLE, "   
lv_kostk  TYPE TABLE, "   
lv_v0split  TYPE TABLE, "   
lv_editor  TYPE TABLE, "   
lv_user  TYPE TABLE, "   
lv_t_guest_old  TYPE TABLE, "   
lv_trip_header  TYPE PTRV_HEAD, "   
lv_trip_period  TYPE PTRV_PERIO, "   
lv_trip_status  TYPE PTK12, "   
lv_exbel  TYPE TABLE, "   
lv_abzug  TYPE TABLE, "   
lv_transport  TYPE TABLE, "   
lv_ziel  TYPE TABLE, "   
lv_zweck  TYPE TABLE, "   
lv_konti  TYPE TABLE, "   
lv_vsch  TYPE TABLE. "   

  CALL FUNCTION 'EXIT_SAPMP56T_003'  "User exit: Save trip (PR01, PR04, PR05)
    EXPORTING
         KMSUM = lv_kmsum
         KMVER = lv_kmver
         PAUFA = lv_paufa
         UEBPA = lv_uebpa
         BELER = lv_beler
         VPFPS = lv_vpfps
         VPFPA = lv_vpfpa
         ROT = lv_rot
         RUW = lv_ruw
         AEND = lv_aend
         KOSTR = lv_kostr
         BELEG = lv_beleg
         KOSTZ = lv_kostz
         KOSTB = lv_kostb
         KOSTK = lv_kostk
         V0SPLIT = lv_v0split
         EDITOR = lv_editor
         USER = lv_user
         T_GUEST_OLD = lv_t_guest_old
         TRIP_HEADER = lv_trip_header
         TRIP_PERIOD = lv_trip_period
         TRIP_STATUS = lv_trip_status
         EXBEL = lv_exbel
         ABZUG = lv_abzug
         TRANSPORT = lv_transport
         ZIEL = lv_ziel
         ZWECK = lv_zweck
         KONTI = lv_konti
         VSCH = lv_vsch
. " EXIT_SAPMP56T_003




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPMP56T_003

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!