Fonction SAP BAPI_FLCONN_GETDETAIL - Find details about a flight connection

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CONNECTIONNUMBER BAPISCOKEY-FLIGHTCONN N 4 Flight connection number at travel agency
FLIGHTDATE BAPISCOKEY-FLIGHTDATE D 8 Departure date
NO_AVAILIBILITY BAPISTRAUX-NO_AVAIL C 1 SPACE X No availability required
TRAVELAGENCYNUMBER BAPISCOKEY-AGENCYNUM N 8 Travel Agency Number

Paramètre Reférence Type Long. Description
CONNECTION_DATA BAPISCODAT u 92 Connection data
PRICE_INFO BAPISCOPRI u 128 Prices

Paramètre Reférence Long. Facultatif Description
AVAILIBILITY BAPISCOAVA 28 X Availability
EXTENSION_IN BAPIPAREX 990 X Import customer enhancements
EXTENSION_OUT BAPIPAREX 990 X Export customer enhancements
FLIGHT_HOP_LIST BAPISCOHOP 122 X Route segment
RETURN BAPIRET2 548 X Return Messages

Functionality
You can use this method to determine all available detailed informationfor a flight connection. The most important attributes of theconnection and information about the individual route segments andtheir availability, is returned.
INCLUDE DOC_BAPI_DEMO OBJECT DOKU ID TX
INCLUDE DOC_AUTH03 OBJECT DOKU ID TX
The TravelAgencyNumber, ConnectionNumber andFlightDate parameters are used to identify the flightconnection.
INCLUDE DOC_KEYVALUES OBJECT DOKU ID TX
The ConnectionData parameter contains the most importantattributes of the flight connection. The PriceInfo parametercontains prices for the flight connection.
The FlightHopList parameter returns the most importantattributes of the individual route segments of the connection. TheAvailibility parameter contains data on the availability of theindividual route segments.
To determine availability data for the connection flights, theFlightConnection.GetDetail method calls theFlight.CheckAvailibilitymethod. Note that for a distributed system landscape, theFlight.CheckAvailibility method may be called in a differentsystem. This can lead to a longer runtime.
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
This parameter returns the most important attributes of the selectedflight connection.
INCLUDE DOC_CONNECTIONDATA OBJECT DOKU ID TX
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

Description
This parameter returns information about the price of the flightconnection for the three classes (Economy Class, Business Class, FirstClass), in each case taking into account the rate of discount relatedto the age of the passenger (adult, child, small child). In addition,taxes are returned.
All prices are specified in the home currency of the travel agency. Forthe currency, the SAP internal currency code (CURR field) and also the ISO code of the currency (CURR_ISO field) are specified.
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX
INCLUDE BAPI_KEYFIELD OBJECT DOKU ID TX
INCLUDE BAPI_KEYFIELD OBJECT DOKU ID TX

Description
You can use this optional parameter to specify that you no longerrequire availability data. You then see all detail information aboutthe flight connection, but without the availability of the routesegments.
Note that, in a distributed ALE scenario, the travel agency might haveto determine the availability of route segment flights in a differentsystem. This can slow down the processing of the method significantly.For this reason, we recommend that you always set the parameter to 'X'if you do not need the availability.

Value range
'' = All detail information about the flight connection isdetermined, including the availability.
'X' = All detail information about the flight connection isdetermined, except the availability

Default
'' (SPACE)
INCLUDE BAPI_KEYFIELD OBJECT DOKU ID TX

Description
This parameter returns data on the availability of the individual routesegments of a flight connection. The respective route segment isidentified by the route segment number (HOP field). For each routesegment - split up according to the three classes Economy Class
, Business Class and First Class - the maximum numberof seats (ECONOMAX, BUSINMAX, FIRSTMAX fields) and the number ofavailable seats (ECONOFREE, BUSINFREE, FIRSTFREE fields) is returned.
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX
INCLUDE BAPI_EXTIN OBJECT DOKU ID TX
INCLUDE BAPI_EXTOUT OBJECT DOKU ID TX

Description
This parameter returns the most important attributes of each routesegment that belongs to a flight connection.
The flight details refer to the respective route segment. The date andtime details (DEPDATE, DEPTIME, ARRDATE, ARRTIME fields) are given inthe local time of the respective departure or destination airport ofthe individual route segment.
In addition to the SAP internal code (CTRYFR or CTRYTO field),the ISO code (CTRYFR_ISO or CTRYTO_ISO field) is also specified for thecountry.
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_IBF2 050 Flight connection &v1& does not exist
Other possible messages
Type ID number message
S BC_IBF 000 Method executed successfully
E BC_IBF 001 Errors occurred
W BC_IBF2 053 Error when finding availability for route segment &v1&
W BC_IBF2 054 Error when determining the price of the flight connection