How To Create Flight Mockup Tables In SAP

Throughout our ABAP tutorials, sometimes I used a mockup tables in SAP called FLIGHT data model to create, read, update or delete records in the tables, and because it’s a mockup tables for testing purpose then you don’t need to worry about effecting any other tables in SAP.

So What is FLIGHT Data Model?

FLIGHT data model is actually a collection of predefined tables provided by SAP to simulate a real case scenario for flight management.

Here are the most used tables in the FLIGHT data model.

Table NameDescription
SCARRCarriers master table (key: CARRID)
SPFLIFlight Schedule (key: client, carrier ID, connection number, date of flight)
SBOOKManage Flight booking details (key: client, carrier ID, connection number, date of flight, booking number, customer number)
SFLIGHTFlight data table (key: client, carrier ID, connection number, date of flight)
SCURXThis table is used for currency master (key: currency key)
Tables in SFLIGHT data model

How To Generate or Create Flight Data Model?

Even though the FLIGHT tables already created in your SAP system, sometimes the records are still empty. So to generate the records for the tables, please the steps below.

Step 1. Execute TCODE: SE38

flight data model

Step 2. Enter the program name: SAPBC_DATA_GENERATOR and Execute!

flight data model

Step 3. Click the Execute Button

generate flight data model

Step 4. Click Yes on on the confirmation dialog box.

data model generated

DONE. Now you can use the FLIGHT table to test your ABAP program.

If you want to refresh the data, then just regenerate the tables again using SAPBC_DATA_GENERATOR program.

Conclusion

The FLIGHT data model is an essential tool for SAP ABAP learners and developers. By using its relational tables, you can practice database operations (CRUD), table joins, and understand real world data scenarios. As you experiment with queries and database operations, you’ll gain confidence in handling complex business logic in SAP.

Share this tutorial with Fellow Geeks!

Other ABAP Tutorials

Leave a Reply

Your email address will not be published. Required fields are marked *