!--a11y-->Example: BAPI Interface and Function Module 
The definition of a BAPI in the Business Object Repository and its associated function module in the Function Builder must correspond to each other. This example shows the relationships between the method and the function module.
Business Object Flight with Key Field and Methods
The graphic below shows the SAP business object type Flight in the BAPI Explorer view of the BOR.

Note the following:
- The business object type contains the key fields AirlineID, ConnectionID, and FlightDate.
- The method we are looking at, GetDetail(), displays details of a flight. The method consists of import and export parameters.
Function Module BAPI_FLIGHT_GETDETAIL
The function module BAPI_FLIGHT_GETDETAIL implements the BAPI GetDetail() of the business object type Flight.
Keep in mind the following points when reading the source code extract below:
- The name of the function module BAPI_FLIGHT_GETDETAIL has the following format: BAPI_<Name of object type>_<method name>. Suitable or standard abbreviations can be used for business object types. (Example: function module BAPI_FLBOOK_CREATEFROMDATA, which implements the method FlightBooking.CreateFromData.)
- BAPI data structures are used. These are recognizable by the prefix BAPI, for example, BAPISFLDAT.
- The key fields AIRLINEID, CONNECTIONID, and FLIGHTDATE of the business object type are defined as import parameters.
- The function module performs authorization checks.
- The function module picks up exceptions in the Return parameter.
Program Code
Look at the source code of the function module BAPI_FLIGHT_GETDETAIL in the BAPI Explorer (under the source code tab).
