Functionality You can use this method to create a new booking for a flight. You canalso create a reservation (flight booking with the status Reserved >). INCLUDE DOC_BAPI_DEMO OBJECT DOKU ID TX INCLUDE DOC_AUTH01 OBJECT DOKU ID TX Use the BookingData> parameter to enter the data needed for theflight booking. Use the ReserveOnly> parameter to specify whether you only wantto reserve the booking (not yet legally binding for the customer). Usethe FlightBooking.Confirm> method to change a flight booking withthe status Reserved> into a legally binding booking (flightbooking with the status Booked>). If you do not do this, thereservation is canceled automatically after a certain period of time. INCLUDE DOC_TESTRUN OBJECT DOKU ID TX When you create a new booking, the system assigns a new booking number.The two flight booking keys - booking number and airline code - aresent in the parameters BookingNumber> and AirlineID>. The TicketPrice> parameter sends the actual price of the ticket.This is the standard listed price of the flight, including supplementsfor the flight class and any reductions that depend on the age of thepassenger. INCLUDE BAPI_CUST1 OBJECT DOKU ID TX INCLUDE BAPI_CUST_IN OBJECT DOKU ID TX INCLUDE BAPI_CUST2 OBJECT DOKU ID TXReturn Codes INCLUDE BAPI_RET INCLUDE BAPI_INFO1 OBJECT DOKU ID TX INCLUDE BAPI_INFO2 OBJECT DOKU ID TX INCLUDE BAPI_KEYFIELD OBJECT DOKU ID TX INCLUDE BAPI_KEYFIELD OBJECT DOKU ID TX
Description This parameter specifies the actual price of a flight (PRICE field) andthe flight taxes (TAX field). The actual price consists of the standard listed price and takes thefollowing into account:
- the birth date of the passenger (children and small children travel
with a reduction)
- the flight class, as specified in the
BookingData>parameter. There are three flight classes: Business Class, Economy Class and FirstClass. INCLUDE DOC_CURR_ISO OBJECT DOKU ID TX Note>: The standard listed price is the price for an adult inEconomy Class.Description This parameter contains the most important booking data. The airline code (AIRLINEID field), the flight number (CONNECTID field)and the flight date (FLIGHTDATE field) identify the flight that youwant to book. The fields AIRLINEID, CONNECTID, FLIGHTDATE and CUSTOMERID, as well asCOUNTER and AGENCYNUM are required fields. INCLUDE DOC_CHECK0 OBJECT DOKU ID TX
- AIRLINEID and CONNECTID
- FLIGHTDATE
Dates in the past are invalid for this method.
- CUSTOMERID
- CLASS
- COUNTER
- AGENCYNUM
INCLUDE DOC_CHECK OBJECT DOKU ID TX A flight must be booked either at a travel agency or directly at anairline counter. One of the two fields COUNTER or AGENCYNUM must befilled. If both fields are filled, the method cannot run correctly andan error message appears in the Return> parameter. If you do not specify a value for CLASS, Economy Class> ischosen. The method checks the birth date of the passenger (PASSBIRTH field) forany price reductions. If the PASSBIRTH field is initial, the price foran adult is chosen. Prerequisites for a booking:
- The flight exists and seats are free.
- The travel agency or sales office exists.
- When booking at an airline counter: The customer exists in the system.
Description You can use this parameter to define whether you only want to reserve aflight. If you set the value to X, the flight has the statusReserved>. An initial parameter indicates that the flight bookingis legally binding for flight customer and travel agency (statusBooked>). If the status Reserved> is not changed to thestatus Booked> (with the method FlightBooking.Confirm>),the flight booking is canceled automatically after a certain period oftime. INCLUDE DOC_TESTRUN3 OBJECT DOKU ID TX INCLUDE DOC_TESTRUN1 OBJECT DOKU ID TX INCLUDE DOC_TESTRUN2 OBJECT DOKU ID TX INCLUDE DOC_TESTRUN3 OBJECT DOKU ID TX INCLUDE BAPI_EXTIN OBJECT DOKU ID TX INCLUDE BAPI_TABLEValue range Authorization Messages> Type ID Number Message> E BC_IBF 002 No authorization Value Check Messages> Type ID Number Message> E BC_IBF 010 &1 is an invalid date E BC_IBF 055 Flight &1 does not exist E BC_IBF 057 Flight date &1 is in the past E BC_IBF 150 Customer number &1 unknown E BC_IBF 151 Travel agent number &1 unknown E BC_IBF 103 &1 counter number &2 unknown E BC_IBF 104 Travel agency and counter specified E BC_IBF 105 No travel agency or counter specified E BC_IBF 106 Birth date &1 is in the future E BC_IBF 107 Flight class can be only Y, C or F Other Possible Messages> Type ID Number Message> S BAPI 000 &1 &2 &3 has been created. External reference: &4 E BAPI 001 No instance of object type &1 has been created. Externalreference: &4 I BC_IBF 008 Method executed in TestRun mode W BC_IBF 015 Error when converting currency E BC_IBF 006 Technical error
|