Start of Content Area

This graphic is explained in the accompanying textApplication Example  Locate the document in its SAP Library structure

The function module BAPI_FLBOOKING_CREATEFROMDATA, which is based on the method FlightBooking.CreateFromData, uses the internal structure SFL_PRICE. This structure contains the following fields:

Field

Description

Data Element

Domain

PRICE

Price of flight

S_PRICE

S_PRICE

TAX

Tax on price of flight

S_TAX

S_PRICE

CURRENCY

Currency of airline

S_CURRCODE

S_CURR

This structure must be converted into the BAPI structure BAPISBOPRI, which is externally visible at the BAPI interface. This BAPI structure is based on the export parameter TicketPrice. This structure contains the following fields:

Field

Description

Data Element

Domain

PRICE

Price of flight

S_PRICE_3

BAPICURR

TAX

Tax on price of flight

S_TAX_2

BAPICURR

CURR

Currency of airline

S_CURRCODE

S_CURR

CURR_ISO

Currency key (ISO code)

S_CURR_ISO

ISOCD

You have to perform a mapping for this example for the following reasons:

You can look up the mapping module that converts the structure SFL_PRICE into the BAPI structure in the program coding of the BAPI function module (name of the module: MAP2E_SFL_PRICE_TO_BAPISBOPRI).

For more information, see Internal/External Data Format.