Fonction SAP BAPI_TRIP_GET_FORM - Travel Expense Form as Internal Table/Display Form

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DISPLAY_FORM BAPITRVXXX-BOOLEAN C 1 SPACE X Display as Dialog (X/SPACE)
DOCK_TREE_CONTROL BAPITRVXXX-BOOLEAN C 1 SPACE X Single-Character Indicator
EMPLOYEENUMBER BAPIEMPL-PERNR N 8 Employee's Personnel Number
GET_TRIP_FROM_MEMORY BAPITRVXXX-BOOLEAN C 1 SPACE X
PERIODNUMBER BAPITRVXXX-PERIOD N 3 '000' X Number of Trip Period
SET_PRINT_FLAG BAPITRVXXX-BOOLEAN C 1 SPACE X Set Printed Indicator (X/SPACE)
TRIPNUMBER BAPITRVXXX-TRIPNO N 10 Trip Number of Employee Trip

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN u 452 Return Value (Instead of Exceptions)

Paramètre Reférence Long. Facultatif Description
TRIPFORM BAPITRFORM 91 X Table with Selected Forms

Functionality
The EmployeeTrip.GetExpenseForm method is used to obtain the trip costsstandard form as an ASCII table.
The report RPRTEF00 form (Trip costs standard form) is created andreturned as an ASCII table.
Selection of trips takes place via the personnel number(EmployeeNumber) and the trip number (TripNumber.
Using the parameter SET_PRINT_FLAG, the indicators of the selectedtrips, if they have already gone through accounting, can be set to'trip printed'.
After the method has been successfully performed, the selected trips(their trip costs forms) can be found in table Tripform as ASCIItables. In this table, the relevant keys for the employee trips arespecified in the initial position.
After the method has been performed, the status of the method call canbe found in the return parameter RETURN.
Usage as function module:
This function module is used to return the trip costs form (reportRPRTEF00) as an internal table. You can also have the trip costs formoutput directly on the screen (interactively), if the parameterDISPLAY_FORM is set to 'X'.
All other parameters correspond with those of the method call.

Description
Personnel number