BAPI Function Module Documentation
FU BAPI_FLBOOKING_CREATEFROMDATA
Short text
Create a flight booking
Functionality
You use this method to create a booking for a particular flight. Alternatively, you can create a reservation (that is, a flight booking with the status "reserved").
Notes
This method is used exclusively as a flight data model for demo and training purposes. It is not intended for production operation. Unlike the BAPI concept, a stable system performance is not guaranteed for this method.
The authorization object S_FLBOOK with activity 01 (create) is checked.
Use the BookingData parameter to enter the necessary data for the flight booking.
Use the ReserveOnly parameter to determine whether the booking is reserved but not yet legally binding for the customer. You use the FlightBooking.Confirm method to convert a flight booking with the status "reserved" into a legally binding booking (flight booking with the status "booked"). If you do not do this, the reservation is automatically canceled after a certain time.
You use the TestRun parameter to determine whether the method is executed in simulation mode. In this case, the creation of an object instance is simulated only. This means that no data is written to the database.
When you create a new booking, the system assigns a new booking number. Both keys of a flight booking (booking number and airline ID) are returned in the parameters BookingNumber and AirlineID.
In the TicketPrice parameter, the actual price of the ticket is returned, which is based on the standard list price of the flight. It takes into consideration surcharges for various flight classes and price reductions depending on the age of the passenger.
Customer Enhancements
The BAPI customer enhancement concept allows customers to use additional data that was not planned at the interface.
The ExtensionIn parameter acts as a data container where the additional values are transferred during import.
In addition to the extension parameters at the interface, there are BAdIs (Business Add-Ins) or customer exits in the BAPI function module. These BAdIs check the data that is transferred to the method by the customer, and perform additional processing activities.
Return messages
Messages are returned in the parameter Return. The parameter documentation shows the return modes and their meaning.
Further information
For more information, see the BAPI Programming Guide in the SAP Library under CA-BFA.
For more detailed information about the customer enhancement concept for BAPIs, see the Customer Enhancement and Modification of BAPIs document in the SAP Library under CA-BFA, Enhancements, Modifications… . This document explains in detail possible customer enhancements and the corresponding procedure for customers.