Sap Teched Doc On Sap MDG
Sap Teched Doc On Sap MDG
Sap Teched Doc On Sap MDG
SAP and the SAP logo are registered trademarks of SAP AG in Germany and other countries. Business Objects and the Business Objects logo are trademarks or
registered trademarks of Business Objects Software Ltd. Business Objects is an SAP company. Sybase and the Sybase logo are registered trademarks of Sybase Inc.
Sybase is an SAP company. Crossgate is a registered trademark of Crossgate AG in Germany and other countries. Crossgate is an SAP company.
FLEXIBLE GOVERNANCE –
GOVERN YOUR OWN OBJECTS IN
SAP MASTER DATA GOVERNANCE
EIM264
With its domain-specific out-of-the-box applications, SAP Master Data Governance provides instant support for central
maintenance scenarios of supplier, customer, material, and financial master data. Additionally, the application
foundation of SAP Master Data Governance can be used for other data domains and to support customer-specific data
management scenarios. Thus, this application can be the common platform within your organization to provide
governance around all of your master data. In this session, you will be introduced to the concepts of SAP Master Data
Governance's application foundation and learn how to configure a basic scenario by defining your own data model,
user interface configuration and change request process to manage a custom object.
Session Outline
This session is split into 5 exercises that must be completed in sequence as they build upon each other. After each
exercise you will find a step-by-step solution.
Goal: Perform a basic configuration of a custom governance scenario from scratch and with the least amount of
configuration to be able to successfully create and process a change request.
Exercise 1 – Create the data model
Exercise 2 – Create the UI configuration
Exercise 3 – Create the process configuration
Exercise 4 – Create the user menu
Exercise 5 – Use the newly created scenario
As part of the exercise solution in this document, just before the detailed step-by-step solution, there is a section
Naming and Configuration Choices which lists the settings that are required to apply the step-by-step solution of
subsequent exercises without any adaptation.
Naming of objects
All objects of this exercise are named with a prefix ID for uniqueness. Please substitute the placeholder ## with the ID
that matches to your group number according to the table “Assignment of Group Numbers – User IDs – Prefix IDs”.
nn = Group number from 01 – 60
## = prefix ID from X1 to XU, Y1 to YU
Note:
For the configuration IDs in exercise “Create UI Configuration” there is an additional Z as the prefix required, as X
and Y are no valid customer namespaces for FPM configurations.
Naming Convention
It is good practice to use the ID of the data model as a prefix for all configuration settings that you create. This exercise
uses the naming convention below.
Reset of environment – tidy-up for the next One for instructions how to clean up.
Assignment of Group Numbers – User IDs – Prefix IDs
NWBC 4.0 uses a new design and layout, so that you will not be able to follow the description of the exercise and
particularly the solution which is based on screenshots.
EXERCISE 1 – CREATE THE DATA MODEL
The objective is to create a data model to store information about car manufacturers. The requirements are simple and
for each manufacturer only this information should be stored:
Manufacturer ID
Manufacturer Name
Manufacturer Description (only one language is sufficient)
It is not required to have special features such as Editions or Hierarchies.
Later on, it should be possible to create a change request to maintain one manufacturer.
Please make use of the pre-defined data elements:
ZCARMANUFID – Car Manufacturer ID and
ZCARMANUF – Car Manufacturer Name.
Please use the data model with the ID that matches the prefix ID of your group number! (see table Assignment of
Group Numbers – User IDs – Prefix IDs on page 4)
Please use the following questions to structure your way through the exercise:
Considering that
- the key of an entity can be determined by the data element property of the entity type and
- entity types can be configured to provide description texts,
how many attributes are needed?
Solution Exercise 1
To satisfy the requirements it is sufficient to add just one entity type to the data model. As the data should be entered
using MDG and a change request should be used for that, it must be of storage and usage type 1. As stated in the
requirements, the data element ZCARMANUFID should be used for the entity type in order to determine the keys of the
entities. To store the description the text feature can be used. Only one attribute is needed and this is to store the
manufacturer’s name. The data element ZCARMANUF is used for the name attribute.
Alternatives
<YOUR ID>
Check Status
Exercise 1 Completed!
You have created a new data model and activated it, so that it is ready for storing data and for the next configuration
steps.
Further Info for Technical Experts
Data Model Overview
You can use SE38 to start report USMD_DISPLAY_DATA_MODEL and to get an overview of your data model:
Generated Tables
Based on your definition of the data model, the system has created tables to store the data during staging and after
activation of the change request. You can have a look at these tables by using transaction MDG_DATA_MODEL:
EXERCISE 2 – CREATE THE UI CONFIGURATION
In order to maintain the data of the car manufacturers, a simple user interface is required that displays the attributes in
the style of a form.
Objective of this exercise is to create a new configuration for the generic UI USMD_ENTITY_VALUE2 of MDG using
Floor Plan Manager (FPM).
1. Start FPM tools – Start the “Manage UI Configuration” screen of MDG from the IMG. There you can create a
new configuration, which will bring you to the FPM tools.
2. Copy template – To create a new configuration, you actually copy 3 template configurations for the generic
MDG Web Dynpro application USMD_ENTITY_VALUE2.
3. Link UI configuration to data model – The UI configurations are based on the actual data model for which
they should be used. Therefore you need to link the two together.
4. Create new form – The attributes of the car manufacturer entity are displayed using a new configuration of a
form UI building block (FPM_FORM_UIBB).
5. Create Layout – Using the FPM Configurator you define which attributes shall be displayed, their position on
the UI and further properties.
Solution Exercise 2
See below for the step-by-step solution in detail.
Step-by-step Solution
Manage UI Configurations
Launch the MDG screen “Manage UI
Configurations” from the NWBC menu,
like shown on the screenshots.
Change Affixes
According to the naming convention,
change the value for the prefix to Z## Z<YOUR ID>
(## = prefix for your group).
Remove the value for the suffix.
Start Deep-Copy
Verify the new values for the target
configuration IDs. In order to make them
unique, the ID of your data model Verify that you use YOUR prefix!
should be part of it.
Then choose Start Deep-Copy.
Select Package
Select Local Object.
Verify Result
Check the message whether the copies
were created successfully.
Navigate to New Application
Configuration
Choose the configuration ID of the new
application configuration that you
copied.
(in Target Configuration ID select first
line)
Switch to Edit Mode
When the FPM Configurator comes up
with your application configuration,
choose Edit.
Configure Model
In order to link your application
configuration with your data model,
enter the ID of your data model for the
parameter USMD_MODEL.
Make sure to use the ID of your group!
Save Changes
Choose Save.
Enter Description
Enter a description of the new form
UIBB configuration.
Select Package
Choose Local Object.
Save Configuration
Chose Save and verify that the system
does not detect any errors in your
configuration.
The new UI configuration is useable, if it is supplied with the correct parameters, which you will prepare in the next
exercise.
EXERCISE 3 – CREATE THE PROCESS CONFIGURATION
After you have completed the setup of the data model and the user interface, it is now about to configure how the
change request process should look like.
The process shall be started from the menu of NWBC. It is sufficient to have one process for both creating and
changing car manufacturers.
The change process shall have an initial request step, then a data processing step and a final approval. (Hint: Use the
example 3 step workflow WS54300020 “MDG_FS_3STEP”.)
For demonstration purposes it is sufficient to configure your own user as a processor for the processing and the
approval steps.
Solution Exercise 3
## = Prefix of your group
Business Activity
As it should be possible to start the change process NWBC a business activity is required. Following the naming
convention, create a business activity ##C1 for your data model. It is not required to enter anything for the business
object type and the logical action.
Change Request Type
Then create a change request type ##C1A for your data model, flag it as “single object”, the main entity shall be
CARMANUF and the workflow template to be used is WS54300020.
Assign Processors to Change Request Steps
As a next step create an entry for the processor of step 1 “Processing” and another entry for step 2 “Final Check”,
assign your user to each step.
Step-by-step Solution
Confirm Warning
Assign Processors
Start IMG activity Master Data
Governance General Settings
Process Modeling Workflow Other
MDG Workflows Assign Processor to
Change Request Step (Simple
Workflow).
Choose New Entries.
Enter processors
Enter your change request type, step 1
“Processing”, the value US for the agent
type and your user ID for the agent.
After that create another entry for Step
2 “Final Check”.
Exercise 3 Completed!
You have made the basic settings to define how the change request process should look like and are now ready for the
final step to provide make it available to your users.
EXERCISE 4 – CREATE THE USER MENU
End users will access MDG from SAP Portal or NetWeaver Business Client (NWBC). To make this possible a role with
an appropriate menu needs to be provided. The provided default role for MDG for Custom Objects shall be used an
extended to be able to start processing of car manufacturers.
The menu shall be based on the role SAP_MDGX_MENU.
A menu entry for search shall be available using the Web Dynpro application USMD_ENTITY_SEARCH.
A menu entry for creating change requests to process car manufacturers shall be available using Web Dynpro
application USMD_ENTITY_VALUE2.
Solution Exercise 4
1. Copy template role SAP_MDGX_MENU with PFCG to a new ID ##_SAP_MDGX_MENU.
2. Create folder for the new entries (e.g. Car Manufacturers)
3. Add search capability by adding Web Dynpro application USMD_ENTITY_SEARCH. Set the parameter
PROCESS to the business activity of your group.
4. Add the create and maintain capability by adding Web Dynpro application USMD_ENTITY_VALUE2. Set the
parameter PROCESS to the business activity of your group and flag IS_CREQ_MODE to X to have an
integrated UI of change request and object.
5. Assign the role to your user.
Naming and Configuration Choices
Use these settings in case you want to apply the step-by-step solutions of subsequent exercises:
--- Not required ---
Step-by-step Solution
EIM264-nn
With having extended the template menu, you are now ready to use the functionality of MDG in the context of this
exercise scenario.
EXERCISE 5 – USE THE NEWLY CREATED SCENARIO
Use the functions of MDG provided through the previously created menu to make you familiar with searching for car
manufacturers, creating a change request for a new manufacturer, and processing this change request.
Note: As you added a new menu to your user, it is required to reload the menu in NWBC. For that, just log off and log
on again. Otherwise you will not see the new menu Master Data Governance for Custom Objects with the subfolder
Car Manufacturers.
Solution Exercise 5
A possible sequence to use your configuration of MDG for processing car manufacturers is:
1. Search for manufacturers – As each of the groups use dedicated data models with own tables, the result of the
search might be empty.
2. Use the Create button in the search result to create a change request for a new manufacturer.
3. Go to the Change Request inbox to process the change request (step 1).
4. Use the search to see how not yet approved data is presented by the system.
5. Again, open the change request from the inbox, examine the change documents to see what is subject to this
change request and to approve the change request (step 2).
6. Use the search to see the approved and active data.
Step-by-step Solution
Launch Search
Choose Master Data Governance for
Custom Objects Car Manufacturers
Search Car Manufacturer.
Start Search
Choose Search.
Start Create
If there is not data yet, the result will be
empty. Choose Create to create a
change request for a new car
manufacturer.
Enter ID
Enter an ID for the new car
manufacturer and choose Continue.
Enter Details and Submit
Enter a description of the change
request, as well as values for the two
fields: name and description. Then
choose Submit.
Close Window
The system informs you about the ID of
the new change request. Choose Close.
Finalize Processing
Optionally review the details of the
change request by selecting the
Change Request button. You could also
modify the data of the car manufacturer.
Choose Finalize Processing.
Close Window
Examine Changes
Before approving the change request
you can have a look at the related
change documents.
Choose Show Change Documents.
Overview of Changes
The system presents a list that
summarizes all changes.
Choose Display Attribute Changes to
have a more detailed view.
Attribute Changes
The system shows all changes in detail.
Close the window.
Search Again
The search result now shows the car
manufacturer and that it is active.
My Change Requests vs
Change Request Inbox
From the menu choose Master Data
Governance for Custom Objects
Change Requests Reporting My
Change Requests.
My Change Requests
The system provides you with a list of
change request that were created by
you. This list is available independent of
the processing status of the change
request. (Mind that there is now no work
item related to the change request in
the inbox any longer.)
My Change Requests is not meant to
show the “workflow perspective” with
the potentially multiple work items for a
change request. It serves as a status
overview and history of the user’s
requests.
Exercise 5 Completed!
You used the basic functions of MDG to process a car manufacturer in this simple example scenario. If there is still
time left, you can investigate further possibilities from the menu Master Data Governance for Custom Objects or from
the example scenario Governance for Flight Data Model… Enjoy!
RESET OF ENVIRONMENT – TIDY-UP FOR THE NEXT ONE
It might be the case that somebody else wants to perform the exercise before the system is reset from backup.
Because of this we kindly ask you to undo all your changes by following this short procedure:
Remove role
Start transaction PFCG, enter the name
of your role ##_SAP_MDGX_MENU
and select Delete.
##
Execute Deletion
Enter the ID ## of your model and
select Execute. Confirm the deletion.
##
Delete processors
Start IMG activity
Master Data Governance General
Settings Process Modeling
Workflow Other MDG Workflows
Assign Processor to Change Request
Step (Simple Workflow)
Perform Deletion
Select the two entries for your change
request type ##C1A and select Delete.
Confirm the deletion and press Save. ##
##
Perform Deletion
Select your change request type ##C1A
and select Delete.
##
Confirm the deletion including the
dependent entries and press Save.
Delete Change Request Type
Start IMG activity
Master Data Governance General
Settings Process Modeling
Business Activities Create Business
Activities
Perform Deletion
Select your business activity ##C1 and
select Delete.
Confirm the deletion and press Save.
##
Delete UI Configuration
Launch transaction SE80
Display Local Objects
Select Repository Browser, in the dop-
down Local Objects and your user ID.
Then for all objects below Web Dynpro
choose Delete from the context menu
and confirm the deletion.
##
##
##