Fonction SAP BAPI_FLBOOKING_CONFIRM - Confirm Flight Booking

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
AIRLINEID BAPISBOKEY-AIRLINEID C 3 Airline Code
BOOKINGNUMBER BAPISBOKEY-BOOKINGID N 8 Booking number
TEST_RUN BAPISFLAUX-TESTRUN C 1 SPACE X Switch to simulation mode

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 X Return Messages

Functionality
You can use this method to change a reservation (flight booking withstatus Reserved) to a legally binding booking (flight bookingwith status Booked).
INCLUDE DOC_BAPI_DEMO OBJECT DOKU ID TX
INCLUDE DOC_AUTH02 OBJECT DOKU ID TX
The parameters AirlineID and BookingNumber identify theindividual flight booking.
INCLUDE DOC_KEYVALUES OBJECT DOKU ID TX
You can only use this method for reservations. You cannot use thismethod for flight bookings that have been confirmed or canceled. Youalso cannot use it for flight bookings in the past. This causes anerror in the method, and an error message appears in the Returnparameter.
INCLUDE DOC_TESTRUN_CHANGE OBJECT DOKU ID TX

Return Codes
INCLUDE BAPI_RET
INCLUDE BAPI_INFO1 OBJECT DOKU ID TX
INCLUDE BAPI_KEYFIELD OBJECT DOKU ID TX
INCLUDE BAPI_KEYFIELD
INCLUDE DOC_TESTRUN1 OBJECT DOKU ID TX

Value range
If you do not enter a value here, the reservation is changed to alegally binding booking and the status "Booked" is written to thedatabase.
If you set the value to X, the method runs in simulation mode. Allreturn codes relevant to the method are sent to the Returnparameter, however the status "Booked" is not written to the database.
INCLUDE DOC_TESTRUN3 OBJECT DOKU ID TX
INCLUDE BAPI_TABLE

Value range
Authorization Messages
Type ID Number Message
E BC_IBF 003 No authorization
Value Check Messages
Type ID Number Message
E BC_IBF 057 Flight date &1 is in the past
E BC_IBF 101 Booking &1 does not exist
Other Possible Messages
Type ID Number Message
E BC_IBF 102 Booking &1 has already been canceled
E BC_IBF 108 Booking &1 has already been confirmed
E SAPBC_GLOBAL 174 Booking entry already locked (table SBOOK)
S BC_IBF 000 Method was executed successfully
I BC_IBF 008 Method executed in TestRun mode
E BC_IBF 006 Technical error
E BC_IBF 001 Errors occurred