Fonction SAP BAPI_FLIGHT_SAVEREPLICA - Save replicated flight data

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
FLIGHT_DATA BAPISFLREP u 45 Flight data
TEST_RUN BAPISFLAUX-TESTRUN C 1 SPACE X Switch to simulation mode

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

Functionality
This method is used as part of the distributed scenarios. It is used tocopy updated flight data from the original system of an airline. Forevery method call, precisely one instance of the Flight businessobject is copied. Here, the most important flight data (apart from thedata regarding availability) is replicated.
INCLUDE DOC_BAPI_DEMO OBJECT DOKU ID TX
This method must only be used for replicating flight data as part ofthe distributed scenarios. It is not meant to be used for creating newflights. If the instance of the Flight business object that isto be replicated does not yet exist in the target system, then it iscreated by the method call. If a replica already exists in the targetsystem, then it is updated. This overwrites all the values. You cannotupdate individual fields separately.
INCLUDE DOC_AUTH01 OBJECT DOKU ID TX
The FlightData parameter contains all the flight data.
INCLUDE DOC_TESTRUN OBJECT DOKU ID TX
INCLUDE DOC_PAR1 OBJECT DOKU ID TX
INCLUDE BAPI_CUST1 OBJECT DOKU ID TX
INCLUDE BAPI_CUST_IN 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
This parameter contains all the flight data.
The AIRLINEID, CONNECTID, FLIGHTDATE, PRICE and PLANETYPE fields, aswell as one of the CURR or CURR_ISO fields are obligatory. You can usethe CURR field or alternatively the CURR_ISO field for thecurrency. (If both fields are filled, the entry in the CURR fieldalways takes priority and the entry in the CURR_ISO field is ignored.)
INCLUDE DOC_CHECK0 OBJECT DOKU ID TX

  • AIRLINEID

  • CONNECTID

  • FLIGHTDATE

  • PLANETYPE

  • CURR

  • CURR_ISO

  • INCLUDE DOC_CHECK OBJECT DOKU ID TX
    INCLUDE BAPI_DATAELEMENT
    INCLUDE DOC_TESTRUN1 OBJECT DOKU ID TX
    INCLUDE DOC_TESTRUN2 OBJECT DOKU ID TX
    INCLUDE DOC_TESTRUN3 OBJECT DOKU ID TX
    INCLUDE BAPI_EXTIN OBJECT DOKU ID TX
    INCLUDE BAPI_TABLE

    Value range
    Authorization messages
    Type ID number message
    E BC_IBF 002 No authorization
    Value check messages
    Type ID number message
    E BC_IBF 016 Unknown ISO currency code &1
    E BC_IBF 055 Flight &1 does not exist
    E BC_IBF 010 &1 is an invalid date
    E BC_IBF 050 Airline &1 unknown
    E BC_IBF 059 Incorrect currency &1 for airline &2
    E BC_IBF 060 Airplane type &1 unknown
    Other possible messages
    Type ID number message
    S BAPI 010 Object &2 &3 of object type &1 has been replicated
    E BAPI 011 Object &2 &3 of object type &1 could not be replicated
    E SAPBC_GLOBAL 152 This flight entry is already locked (table SFLIGHT)
    E BC_IBF 015 Error when converting currency
    E BC_IBF 006 Technical error
    I BC_IBF 008 Method was executed in TestRun mode