Fonction SAP BAPI_FLTRIP_GETLIST - Get list of flight trips

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CUSTOMER_NUMBER BAPISTRDAT-CUSTOMERID N 8 X Select customer number
MAX_ROWS BAPISTRAUX-BAPIMAXROW I 4 X Maximum Number of Lines of Hits
TRAVEL_AGENCY BAPISTRKEY-AGENCYNUM N 8 Travel Agency Number

Paramètre Reférence Long. Facultatif Description
BOOKING_DATE_RANGE BAPISCODRA 19 X Selection range for booking date
EXTENSION_IN BAPIPAREX 990 X Import customer enhancements
EXTENSION_OUT BAPIPAREX 990 X Export customer enhancements
FLIGHT_TRIP_LIST BAPISTRDAT 66 X List of flight trips
RETURN BAPIRET2 548 X Return Messages
TRIP_DATE_RANGE BAPISCODRA 19 X Date range for date of trip

Functionality
You can use this method to determine all the flight trips that havebeen finalized at a travel agency. Here you can use import parametersto restrict the selection to fit your needs. A list of flight trips,with the most important attributes given in each case, is returned.

Example
INCLUDE DOC_BAPI_DEMO OBJECT DOKU ID TX
INCLUDE DOC_AUTH03 OBJECT DOKU ID TX
You use the TravelAgency parameter to transfer the travelagency for which a list of flight trips is to be determined. You canuse the CustomerNumber parameter to further restrict theselection to a particular flight customer (of the specified travelagency).
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 to a particularcustomer.
Note that in each case, a customer is only uniquely defined systemwide.For a distributed system landscape, a flight customer is therefore onlydefined uniquely when a travel agency or an airline is transferred, inaddition to the customer number. However, since flight trips are onlyoffered by travel agencies, a flight customer must be transferred alongwith a travel agency for this method.
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 transfer the travel agency for which alist of flight trips is to be determined. Note that a flight trip isonly defined uniquely when a travel agency has been specified, inaddition to the Reisenummer.
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 flight trips interms of the booking date.
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 trips with their most importantattributes, in each case.
The number of the travel agency (AGENCYNUM field) and the trip number(TRIPNUMBER field) identify the individual flight trip.
If the flight connection of the outward or return flight contains morethan one route segment, then the date of outward flight and date ofreturn flight both refer to the first route segment of the connection.
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 151 Travel agent number &v1& unknown
E BC_IBF 150 Customer number &v1& unknown
E S& 026 Value & in field SIGN can only be I or 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
W BC_IBF2 101 Es entsprachen keine Flugreisen den Selektionsbedingungen
S BC_IBF 000 Method was executed successfully
E BC_IBF 001 Errors occurred

Description
You can use this parameter to restrict the selection of flight trips interms of the date of travel. Note that the date of travel refers to theflight date of the flight to destination.
INCLUDE DOC_RANGE1 OBJECT DOKU ID TX