Fonction SAP BAPI_FLCONN_GETLIST - Find list of flight connections

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
AIRLINE BAPISCOHOP-AIRLINEID C 3 X Airline code
DESTINATION_FROM BAPISCODST u 28 X Departure Location
DESTINATION_TO BAPISCODST u 28 X Destination
MAX_ROWS BAPISTRAUX-BAPIMAXROW I 4 X Maximum Number of Lines of Hits
TRAVELAGENCY BAPISCOKEY-AGENCYNUM N 8 Travel Agency Number

Paramètre Reférence Long. Facultatif Description
DATE_RANGE BAPISCODRA 19 X Date range
EXTENSION_IN BAPIPAREX 990 X Import customer enhancements
EXTENSION_OUT BAPIPAREX 990 X Export customer enhancements
FLIGHT_CONNECTION_LIST BAPISCODAT 92 X Connection data
RETURN BAPIRET2 548 X Return Messages

Functionality
You can use this method to determine flight connections that a travelagency offers. Here you can use the import parameters to restrict theselection to fit your needs. A list of flight connections, with themost important attributes of the connections for each one, is returned.
INCLUDE DOC_BAPI_DEMO OBJECT DOKU ID TX
INCLUDE DOC_AUTH03 OBJECT DOKU ID TX

Data Selection
The TravelAgency parameter specifies the number of the travelagency whose flight connections are to be determined.
The Airline, DestinationFrom, DestinationTo andDateRange parameters are used to restrict the selection. If oneof the parameters is initial, then no restriction of the list of flightconnections occurs for this criterion. Only those connections areselected that satisfy all the given conditions (AND relationship).
INCLUDE DOC_PAR1 OBJECT DOKU ID TX
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 OBJECT DOKU ID TX
INCLUDE BAPI_INFO1 OBJECT DOKU ID TX
INCLUDE BAPI_INFO2 OBJECT DOKU ID TX

Description
You can use this parameter to restrict the selection whereby only thoseflight connections are selected, for which each route segmentrefers to a flight of the specified airline. If this parameter is notfilled, then no such restriction occurs.
The code of the airline is given to this parameter. For informationabout the meaning of the airline code, see the correspondingdata element documentation.
INCLUDE DOC_CHECK OBJECT DOKU ID TX

Description
You can use this parameter to restrict the selection for a list offlight connections in terms of the departure location. If a connectioncontains multiple route segments, then the departure location in inquestion is the departure location of the first route segment.
If this parameter is not filled, then no restriction occurs for thechoice of departure location.
INCLUDE DOC_FL_DEST1 OBJECT DOKU ID TX
INCLUDE DOC_FL_DEST2 OBJECT DOKU ID TX
INCLUDE BAPI_DATAELEMENT

Example
(): Field not filled
AIRPORTID CITY COUNTR COUNTR_ISO
FRA New York US ()
The code FRA identifies Frankfurt airport uniquely. All flightconnections departing from Frankfurt (DE) are selected. The New Yorkand US entries are ignored.
AIRPORTID CITY COUNTR COUNTR_ISO
XYZ New York () ()
There is no airport that has the code XYZ. An error message isgenerated. The New York entry is ignored.
AIRPORTID CITY COUNTR COUNTR_ISO
() Frankfurt () ()
All flight connections departing from Frankfurt are selected. Since nocountry was specified, flights from Frankfurt (US), for example, arealso selected, if they are available.
AIRPORTID CITY COUNTR COUNTR_ISO
() () DE US
All flight connections departing from German airports are selected. TheUS entry is ignored.

Description
You can use this parameter to restrict the selection for a list offlight connections in terms of the destination. If a connectioncontains multiple route segments, then the destination in questionrefers to the destination of the last route segment.
If this parameter is not filled, then no restriction occurs for thechoice of destination.
INCLUDE DOC_FL_DEST1 OBJECT DOKU ID TX
INCLUDE DOC_FL_DEST2 OBJECT DOKU ID TX
INCLUDE BAPI_DATAELEMENT

Example
(): Field not filled
AIRPORTID CITY COUNTR COUNTR_ISO
FRA New York US ()
The code FRA identifies Frankfurt airport uniquely. All flightconnections arriving in Frankfurt (DE) are selected. The New York andUS entries are ignored.
AIRPORTID CITY COUNTR COUNTR_ISO
XYZ New York () ()
There is no airport that has the code XYZ. An error message isgenerated. The New York entry is ignored.
AIRPORTID CITY COUNTR COUNTR_ISO
() Frankfurt () ()
All flight connections arriving in Frankfurt are selected. Since nocountry was specified, flights to Frankfurt (US), for example, are alsoselected, if they are available.
AIRPORTID CITY COUNTR COUNTR_ISO
() () DE US
All flight connections arriving at German airports are selected. The USentry is ignored.
INCLUDE DOC_MAXROW OBJECT DOKU ID TX
INCLUDE DOC_MAXROW1 OBJECT DOKU ID TX
INCLUDE DOC_TRAVELAG OBJECT DOKU ID TX
INCLUDE DOC_TRAVELAG1 OBJECT DOKU ID TX
INCLUDE DOC_CHECK OBJECT DOKU ID TX

Description
You can use this parameter to restrict the selection of flightconnections to a defined date range for date of flight. If the flightconnection contains multiple route segments, then the date of flightrefers to the departure date of the first route segment.
INCLUDE DOC_RANGE1 OBJECT DOKU ID TX
INCLUDE BAPI_EXTIN OBJECT DOKU ID TX
INCLUDE BAPI_EXTOUT OBJECT DOKU ID TX

Description
This parameter returns a list of flight connections with their mostimportant attributes, in each case:
INCLUDE DOC_CONNECTIONDATA OBJECT DOKU ID TX
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX
INCLUDE BAPI_TABLE OBJECT DOKU ID TX

Value range
Authorization messages
Type ID number message
E BC_IBF 004 No authorization
Value check messages
Type ID number message
E BC_IBF 012 Unknown country code &v1&
E BC_IBF 017 ISO country code &v1& unknown
E BC_IBF 050 Airline &v1& unknown
E BC_IBF 051 Airport with code &v1& unknown
E BC_IBF 052 City &v1& &v2& unknown
W BC_IBF 053 City &v1& found more than once (in different countries)
E BC_IBF 151 Travel agent number &v1& unknown
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
S BC_IBF 000 Method executed successfully
E BC_IBF 001 Errors occurred
W BC_IBF2 051 No flight connections match the selection conditions