Ansicht
Dokumentation

GRFNVC_MDR - Define Metadata Library

GRFNVC_MDR - Define Metadata Library

CPI1466 during Backup   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

In this Customizing activity, you can maintain the Metadata Repository (MDR) for the application. The application then uses the MDR to swap values by corresponding labels at runtime.

For example, to get the exchange rating for the first day of this month, you can use this MDR to schedule a plan. You do not need to know when the plan is executed; the MDR retrieves the right value of first day of this month.

You have:

  1. Implemented the interface IF_GRFN_CCI_MDREPOSITORYin SE24. For example: CL_GRFN_CCI_STATICMDR=>IF_GRFN_CCI_MDREPOSITORY~GET_VALUE( ).
  2. Created a method, such as GET_PERIOD_START_DAY, using the same the input/output parameter with IF_GRFN_CCI_MDREPOSITORY~GET_VALUE( ).
  3. Implemented the method you created.

Defining the metadata library:

  1. Create or reuse an MDR library. To do this:
    1. Double-click MDR Usage Library. MDR Usage Library is a group of MDR with relative usage.
    2. Choose New Entriesor select an MDR library, such as BRVALUEDETERMINE.
  2. Create an MDR, such as FROM_JOB_STEP_PERIOD_START_DAY. To do this:
    1. Select an item in the MDR Usage Library table and double click MDR.
    2. Click New Entries.
    3. Enter the class name.
    4. Enter the method name.
    5. Define the filter data type in case you need to distinguish MDR in the same MDR library.
    6. Define the data type of the MDR.
    7. Enter a description in the Textfield.
  3. Maintain the context for each MDR in case the MDR needs a context. The MDR context is used to get runtime values for the MDR. To maintain the context:
    1. Select an item in the MDR Usagetable and double-click Context for Each Metadata.
    2. Choose whether the context parameter is optional.
    3. Save the entry.

The MDR is ready to be maintained and reused.






General Data in Customer Master   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 2725 Date: 20240523 Time: 191438     sap01-206 ( 33 ms )