The metadata API defines a set of interfaces which you can use to build a meta model programmatically.
Logon to your SAP Business Suite backend system.
Go to transaction SE24.
Create a new ABAP OO metadata provider class (MPC). In this example we use /IWBEP/CL_MGW_MED_SFLIGHT.
Make sure you use the correct namespaces.
Derive your class from super class /IWBEP/CL_MGW_ABS_MODEL and choose Save.
Assign a valid package.
Redefine and implement method DEFINE.
Redefine and implement method GET_LAST_MODIFIED.
A redefinition of GET_LAST_MODIFIED is not needed as long as the model definition takes place within the same class. In that case the inherited implementation takes care of all that is needed.
Activate your class.
Continue with 1.2. Create the Data Provider Class (DPC) for the Runtime.