Fonction SAP BAPI_TRIP_DELETE - Delete Trip

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
EMPLOYEENUMBER BAPIEMPL-PERNR N 8 Employee's Personnel Number
SHOW_DIALOG BAPITRVXXX-SHOW_DIALOG C 1 SPACE X Dialog Display
TRIPNUMBER BAPITRVXXX-TRIPNO N 10 Trip Number of Employee Trip

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

Functionality
Using the method EmployeeTrip.Delete, you can delete individualemployee trips, as long as they have not yet been posted and you havethe relevant authorization.
As parameter, the complete qualifying key for the employee trip to becanceled only must be specified. The key consists of theEmployeeNumber and the TripNumber.
The status of the method call can be determined from the returnparameter Return after the method has been performed.

Notes
If the employee trip has already been posted, deletions can only becarried out under certain conditions.
You can only delete changes which have been made since the last postingwas carried out.
The only way a trip that has already been posted can be canceled is touse the method EmployeeTrip.Cancel.

Description
Personnel number