Fonction SAP BAPI_FLBOOKING_GETLIST - Determine list of flight bookings

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
AIRLINE BAPISBOKEY-AIRLINEID C 3 X Select airline
CUSTOMER_NUMBER BAPISCUKEY-CUSTOMERID N 8 X Select customer number
MAX_ROWS BAPISFLAUX-BAPIMAXROW I 4 X Maximum Number of Lines of Hits
TRAVEL_AGENCY BAPISBODAT-AGENCYNUM N 8 X Travel Agency Number

Paramètre Reférence Long. Facultatif Description
BOOKING_DATE_RANGE BAPISFLDRA 19 X Selection range for booking date
BOOKING_LIST BAPISBODAT 83 X List of flight bookings
EXTENSION_IN BAPIPAREX 990 X Import customer enhancements
EXTENSION_OUT BAPIPAREX 990 X Export customer enhancements
FLIGHT_DATE_RANGE BAPISFLDRA 19 X Selection range for flight date
RETURN BAPIRET2 548 X Return Messages

Functionality
You can use this method to search for available flight bookings. Youcan use the import parameter to restrict the selection. The result is alist of flight bookings with their most important properties.
INCLUDE DOC_BAPI_DEMO OBJECT DOKU ID TX
INCLUDE DOC_AUTH03 OBJECT DOKU ID TX

Data selection
The parameters Airline, TravelAgency, CustomerNumber
, BookingDateRange and FlightDateRange are used torestrict the selection. If a parameter is left initial, the bookinglist is not restricted by this criterion. Only those flight bookingsare selected that match all conditions (AND operation).
INCLUDE DOC_PAR1 OBJECT DOKU ID TX
If the CustomerNumber parameter is filled, then at least one ofthe parameters Airline or TravelAgency must be filled.
INCLUDE DOC_CUST_AGENCY OBJECT DOKU ID TXRead the documentation on the CustomerNumber parameter.
INCLUDE BAPI_CUST1 OBJECT DOKU ID TX
INCLUDE BAPI_CUST_INOUT OBJECT DOKU ID TX
INCLUDE BAPI_CUST2 OBJECT DOKU ID TX
INCLUDE BAPI_RET
INCLUDE BAPI_INFO1 OBJECT DOKU ID TX
INCLUDE BAPI_INFO2 OBJECT DOKU ID TX

Description
You can use this parameter to restrict the selection to a particularairline.
INCLUDE DOC_CHECK OBJECT DOKU ID TX
INCLUDE DOC_CUSTOMERNUMBER OBJECT DOKU ID TX

Description
You can use this parameter to restrict the selection to a certaincustomer.
A customer must be uniquely identified in a system. In a distributedsystem landscape, you might need to specify a travel agency number orairline number in addition to the customer number to identify acustomer uniquely.
The three selection parameters Airline, TravelAgency andCustomerNumber are linked as follows:

  • If the parameters CustomerNumber and TravelAgency are
  • filled, all flight bookings made for the specified customer at thespecified travel agency are selected. If the Airline parameteris also filled, the specified airline is an additional selectioncriterion. This means that only those flight bookings are selected thatwere made by the specified travel agency customer at a particularairline.
    • If the parameters CustomerNumber and Airline are filled,
    • and the TravelAgency parameter is initial, only those flightbookings are selected that were made by the specified customer at acounter of the specified airline.
      • If only the TravelAgency parameter is filled, all flight
      • bookings at the specified travel agency are selected.
        • If only the Airline parameter is filled, all flight bookings at
        • the specified airline are selected.
          • If the CustomerNumber parameter is filled, and the parameters
          • TravelAgency and Airline are not filled, the methodcannot run correctly, and an error message appears in the Returnparameter.
            INCLUDE DOC_CHECK OBJECT DOKU ID TX
            INCLUDE DOC_MAXROW OBJECT DOKU ID TX
            INCLUDE DOC_MAXROW1 OBJECT DOKU ID TX

            Description
            You can use this parameter to restrict the flight booking selection toa particular travel agency.
            INCLUDE DOC_CHECK OBJECT DOKU ID TX
            INCLUDE DOC_CUSTOMERNUMBER OBJECT DOKU ID TX

            Description
            You can use this parameter to restrict the selection by booking date.
            INCLUDE DOC_RANGE1 OBJECT DOKU ID TX

            Description
            This parameter returns a hit list of flight bookings according to theselection conditions specified when the method was called.
            The most important properties of the flight bookings also appear. Thefields AIRLINEID and BOOKINGID identify the flight booking.
            Make sure that only one of the fields COUNTER or AGENCYNUM are filled.A flight booking must be made either at a travel agency or directly atan airline.
            The fields RESERVED and CANCELLED specify whether the status of theflight booking is Reserved or Canceled. If both of thesefields are initial, the flight booking has the status Booked. Ifa reserved flight booking is not changed to the status Booked itis canceled automatically after a certain period of time.
            Note: You can also cancel a reserved flight booking. In this case, boththe fields RESERVED and CANCELLED have the value X.
            The MaxRows parameter specifies the length of the hit list.
            INCLUDE BAPI_DATAELEMENT
            INCLUDE BAPI_EXTIN OBJECT DOKU ID TX
            INCLUDE BAPI_EXTOUT OBJECT DOKU ID TX

            Description
            You can use this parameter to restrict the selection by flight date.
            INCLUDE DOC_RANGE1 OBJECT DOKU ID TX
            INCLUDE BAPI_TABLE

            Value range
            Authorization Messages
            Type ID Number Message
            E BC_IBF 004 No authorization
            Value Check Messages
            E BC_IBF 050 Airline &1 unknown
            E BC_IBF 150 Customer number &1 unknown
            E BC_IBF 151 Travel agent number &1 unknown
            E BC_IBF 109 No airline or travel agent specified
            E S& 026 value & in field SIGN can only be I, E
            E S& 027 value & in field OPTION is invalid (EQ,NE,GT,GE,LE
            ,LT,BT,NB,CP,NP)
            Other Possible Messages
            Type ID Number Message
            E BC_IBF 001 Errors occurred
            S BC_IBF 000 Method was executed successfully
            W BC_IBF 100 No bookings match the selection conditions