METHOD create_booking .
  DATA:
    book_wa TYPE bapisbonew,
    airlineid TYPE bapisbokey-airlineid,
    bookingnumber TYPE bapisbokey-bookingid.
* globale Daten in wa für BAPI transportieren
  book_wa-airlineid  = wa2-carrid.
  book_wa-connectid  = wa2-connid.
  book_wa-flightdate = wa2-fldate.
  book_wa-customerid = custom-id.

*  book_wa-class      = scustom-class.
*  book_wa-counter    = scustom-counter.
  book_wa-agencynum  = 1." scustom-agencynum.
*  book_wa-passname   = scustom-passname.
*  book_wa-passbirth  = scustom-passbirth.
*  book_wa-passform   = scustom-passform.

  CALL FUNCTION 'BAPI_FLBOOKING_CREATEFROMDATA'
    EXPORTING
      booking_data        = book_wa
    IMPORTING
      airlineid           = airlineid
      bookingnumber       = bookingnumber
*   TICKET_PRICE        =
    TABLES
      return              = ret.
*
  COMMIT WORK.
* zurück transportieren
  book-carrid = airlineid.
  book-connid = wa2-connid.
  book-fldate = wa2-fldate.
  book-bookid = bookingnumber.
ENDMETHOD.