SAP ABAP IMG Activity GRFNVC_MDR (Define Metadata Library)
Hierarchy
GRCFND_A (Software Component) GRC Foundation ABAP
   GRC-AC (Application Component) Access Control
     GRAC_UTILITIES (Package) Access Control GRC Various helping infrastructure for ABAP
IMG Activity
ID GRFNVC_MDR Define Metadata Library  
Transaction Code S_GF1_13000081   (empty) 
Created on 20100630    
Customizing Attributes GRFNVC_MDR   Define Metadata Library 
Customizing Activity GRFNVC_MDR   Define Metadata Library 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name GRFNVC_MDR_DOC    

Use

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.

Requirements

You have:

  1. Implemented the interface IF_GRFN_CCI_MDREPOSITORY in 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.

Standard settings

Activities

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 Entries or 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 Text field.
  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 Usage table 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.

Example

Business Attributes
ASAP Roadmap ID 201   Make global settings 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type C   Customizing Object 
Assigned objects
Customizing Object Object Type Transaction Code Sub-object Do not Summarize Skip Subset Dialog Box Description for multiple selections
GRFNVC_MDR C - View cluster SM34  
History
Last changed by/on SAP  20100818 
SAP Release Created in 600