Fonction SAP BAPI_TRIP_CHECK_STATUS - Establish Status of Trip

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CALCULATE_AMOUNTS BAPITRVXXX-BOOLEAN C 1 SPACE X Calculation of Amounts (X/SPACE)
DEPARTURE_FROM BAPITRIP-DEP_DATE D 8 X Trip Departure Date (From)
DEPARTURE_TO BAPITRIP-DEP_DATE D 8 X Trip Departure Date (To)
EMPLOYEENUMBER BAPIEMPL-PERNR N 8 Employee's Personnel Number
PERIODNUMBER BAPITRVXXX-PERIOD N 3 '000' X Number of Trip Period
TRIPNUMBER BAPITRIP-TRIPNO N 10 X Trip Number of Employee Trip

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

Paramètre Reférence Long. Facultatif Description
AMOUNTS BAPITRVSUM 136 X Table of Different Trip Amounts
TRIPS BAPITRIP 134 Table of Trips

Functionality
The method EmployeeTrip.GetStatus returns the status of a single trip,provided the trip exists in the SAP system for the specified key(EmployeeNumber, TripNumber). At the same time, the return structureAMOUNTS is filled.
The method EmployeeTrip.GetList returns all an employee's trips to thestructure TRIPS. The trips must start between DEPARTURE_FROM andDEPARTURE_TO. If you also want to receive the amounts for the differenttrips, set the parameter CALCULATEAMOUNTS to "X". Note that this willhave effects on performance (see below).
Both of the above methods have the return value RETURN, which provides amore detailed error message in case errors occur.
Usage as function module:
Using the function module BAPI_TRIP_CHECK_STATUS, you can determine:

  • The status of one trip of an employee (transfer parameters
  • EMPLOYEENUMBER and TRIPNUMBER)
    or
    • The status of more than one trip of an employee within a time interval
    • (transfer parameters EMPLOYEENUMBER, DEPARTURE_FROM, and DEPARTURE_TO)
      The parameters TRIPNUMBER or DEPARTURE_FROM and DEPARTURE_TO areoptional. If the parameter TRIPNUMBER is transferred, only one trip isselected. If the parameters DEPARTURE_FROM and DEPARTURE_TO aretransferred, all trips of the employee with departures between thosedates are returned.
      The selected trips are returned by means of the TRIPS table. Inaddition, the various totals and subtotals for the selected trips (seestructure BAPITRVSUM) are contained in the AMOUNTS table. Thecalculation of these amounts can be switched on or off using the switchCALCULATEAMOUNTS (X = on, SPACE = off). For performance reasons,however, this switch should only be used for short time intervals orindividual trips because the calculation of trip amounts can be verytime consuming.

      Description
      Personnel number