Ansicht
Dokumentation

BAPI_TRIP_CHECK_STATUS - Establish Status of Trip

BAPI_TRIP_CHECK_STATUS - Establish Status of Trip

BAL Application Log Documentation   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

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 structure AMOUNTS is filled.

The method EmployeeTrip.GetList returns all an employee's trips to the structure TRIPS. The trips must start between DEPARTURE_FROM and DEPARTURE_TO. If you also want to receive the amounts for the different trips, set the parameter CALCULATEAMOUNTS to "X". Note that this will have effects on performance (see below).

Both of the above methods have the return value RETURN, which provides a more 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 are optional. If the parameter TRIPNUMBER is transferred, only one trip is selected. If the parameters DEPARTURE_FROM and DEPARTURE_TO are transferred, all trips of the employee with departures between those dates are returned.
The selected trips are returned by means of the TRIPS table. In addition, the various totals and subtotals for the selected trips (see structure BAPITRVSUM) are contained in the AMOUNTS table. The calculation of these amounts can be switched on or off using the switch CALCULATEAMOUNTS (X = on, SPACE = off). For performance reasons, however, this switch should only be used for short time intervals or individual trips because the calculation of trip amounts can be very time consuming.

Examples

Notes

Further information





Parameters

AMOUNTS
CALCULATE_AMOUNTS
DEPARTURE_FROM
DEPARTURE_TO
EMPLOYEENUMBER
PERIODNUMBER
RETURN
TRIPNUMBER
TRIPS

Exceptions

Function Group

HRTR

PERFORM Short Reference   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 2475 Date: 20240523 Time: 164310     sap01-206 ( 55 ms )