Fonction SAP BAPI_FLTRIP_CREATE - Create flight

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
FLIGHT_TRIP_DATA BAPISTRNEW u 41 New Trip Data

Paramètre Reférence Type Long. Description
TICKET_PRICE BAPISTRPRI u 32 Price
TRAVELAGENCYNUMBER BAPISTRKEY-AGENCYNUM N 8 Travel Agency Number
TRIPNUMBER BAPISTRKEY-TRIPNUMBER N 8 Flight trip number

Paramètre Reférence Long. Facultatif Description
EXTENSION_IN BAPIPAREX 990 X Import customer enhancements
PASSENGER_LIST BAPISTRPAS 48 Passengers
RETURN BAPIRET2 548 X Return Messages

Functionality
You can use this method to newly create a flight trip.
INCLUDE DOC_BAPI_DEMO OBJECT DOKU ID TX
INCLUDE DOC_AUTH01 OBJECT DOKU ID TX
You use the FlightTripData parameter to specify the data forthe flight trip.
You use the PassengerList parameter to transfer the list ofpassengers, for whom the trip is to be created.
All required flight bookings for the airlines are performed by thesystem. The flight trip can only be created when all flight bookingshave been successfully completed.
When creating a new flight trip, the system assigns a new trip number.The two keys of a flight trip - travel agency number and trip number -are returned in the TravelAgencyNumber and TripNumber parameters.
In the TicketPrice parameter, the actual price of the ticket isreturned. This price conforms to the standard list prices of theflights and includes surcharges for the flight class, discountsdepending on the age of the passenger, and also customer discounts, ifapplicable.
INCLUDE BAPI_CUST1 OBJECT DOKU ID TX
INCLUDE BAPI_CUST_IN OBJECT DOKU ID TX
INCLUDE BAPI_CUST2 OBJECT DOKU ID TX

Return Codes
INCLUDE BAPI_RET
INCLUDE BAPI_INFO1 OBJECT DOKU ID TX
INCLUDE BAPI_INFO2 OBJECT DOKU ID TX

Description
This parameter specifies the (actual) total trip price (TRIPPRICEfield) and the tax (TRIPTAX field).
The actual total trip price results from the sum of the prices of allroute segments, for all passengers for whom the flight trip is created.
The following are included in the route segment prices:

  • The dates of birth of the passengers (according to the dates of birth,
  • a reduced price may apply for children or small children).
    • The specified flight classes, as specified in the CLASS field of the
    • FlightTripData parameter.
      The three flight classes, Business Class, Economy Class and FirstClass, are available.
      Customer discounts may also be included in the total trip price. Anagency fee for the travel agency is also added to the total trip price,if applicable.
      INCLUDE DOC_CURR_ISO OBJECT DOKU ID TX
      INCLUDE BAPI_KEYFIELD OBJECT DOKU ID TX
      INCLUDE BAPI_KEYFIELD OBJECT DOKU ID TX

      Description
      This parameter contains the most important travel data.
      The AGENCYNUM field specifies the number of the travel agency where theflight trip is booked. The CUSTOMERID field specifies the number of theflight customer for whom the trip is booked. The FLCONN1 and FLCONN2fields specify the connection number of the outward and return flights,respectively. Note that a flight connection (for outward or returnflight) is only uniquely defined when a travel agency is specified(AGENCYNUM field), in addition to the connection number (FLCONN1 orFLCONN2 fields). The FLDATE1 and FLDATE2 fields specify the flightdates for outward and return flights, respectively.
      You can determine a list of available flight connections by using the FlightConnection.GetList method.
      The AGENCYNUM, CUSTOMERID, FLCONN1 and FLDATE1 fields areobligatory. If the FLCONN2 and FLDATE2 fields are not filled,then the flight trip only consists of an outward flight. If no value isspecified for CLASS, then Economy Class is chosen.
      INCLUDE DOC_CHECK0 OBJECT DOKU ID TX

      • AGENCYNUM

      • CUSTOMERID

      • FLCONN1 and (if filled) FLCONN2

      • FLDATE1 and (if filled) FLDATE2

      • When calling this method, a date is also invalid if it occurs in thepast. The system also check whether the date of the flight todestination occurs before that of the return flight.
        • CLASS

        • INCLUDE DOC_CHECK OBJECT DOKU ID TX
          INCLUDE BAPI_EXTIN OBJECT DOKU ID TX

          Description
          This parameter is used to transfer a list of passengers for whom theflight trip is created. The details regarding the name of the passenger(PASSNAME field) are obligatory. If no date of birth (PASSBIRTHfield) is specified, then the adult tariff is used for the affectedpassenger.
          INCLUDE BAPI_TABLE OBJECT DOKU ID TX
          Authorization messages
          Type ID number message
          E BC_IBF 002 No authorization
          Value check messages
          Type ID number message
          E BC_IBF 151 Travel agent number &v1& unknown
          E BC_IBF 150 Customer number &v1& unknown
          E BC_IBF2 050 Flight connection &v1& does not exist
          E BC_IBF 057 Flight date &v1& is in the past
          E BC_IBF2 102 Return flight date &v2& is earlier than the outboundflight date &v1&
          E BC_IBF 107 Flight class can be only Y, C or F
          E BC_IBF2 106 No passenger list specified
          E BC_IBF2 103 No passenger name specified
          E BC_IBF 010 &v1& is an invalid date
          E BC_IBF 106 Birth date &v1& is in the future
          Other possible messages
          Type ID number message
          S BAPI 000 &v1& &v2& &v3& has been created. External reference: &v4&
          E BAPI 001 No instance of object type &v1& has been created. Externalreference: &v4&
          E BC_IBF2 104 Could not make a reservation for flight &v1& &v2&
          E BC_IBF 006 Technical error
          E BC_IBF2 105 Could not assign trip number
          E BC_IBF2 107 Unable to confirm booking &1 &2
          E BC_IBF 015 Error when converting currency