Show TOC

1.1 Create the Metadata Provider Class (MPC)Locate this document in the navigation structure

The metadata API defines a set of interfaces which you can use to build a meta model programmatically.

  1. Logon to your SAP Business Suite backend system.

  2. Go to transaction SE24.

  3. Create a new ABAP OO metadata provider class (MPC). In this example we use /IWBEP/CL_MGW_MED_SFLIGHT.

    Note

    Make sure you use the correct namespaces.

  4. Derive your class from super class /IWBEP/CL_MGW_ABS_MODEL and choose Save.

  5. Assign a valid package.

  6. Redefine and implement method DEFINE.

  7. 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.

  8. Activate your class.

   

Continue with 1.2. Create the Data Provider Class (DPC) for the Runtime.