SAP How-To Guide Develop A Custom Master Data Object in SAP Master Data Governance
SAP How-To Guide Develop A Custom Master Data Object in SAP Master Data Governance
SAP How-To Guide Develop A Custom Master Data Object in SAP Master Data Governance
Version 2.0
May 2019
DOCUMENT HISTORY
2.00 Major updated version for MDG 9.1 EHP8 and S/4HANA 1709. Usage of
BOL/genIL in MDG Custom objects. More complex data model.
www.sap.com/contactsap
The information contained herein may be changed without prior notice. Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors.
National product specifications may vary.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP or its affiliated companies shall not be liable
for errors or omissions with respect to the materials. The only warranties for SAP or SAP affiliate company products and services are those that are set forth in the express warranty statements
accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release any functionality
mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated companies’ strategy and possible future developments, products, and/or platform directions and functionality are
all subject to change and may be changed by SAP SE or its affiliated companies at any time for any reason without notice. The information in this document is not a commitment, promise, or legal obligation
to deliver any material, code, or functionality. All forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are
cautioned not to place undue reliance on these forward-looking statements, and they should not be relied upon in making purchasing decisions.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other
countries. All other product and service names mentioned are the trademarks of their respective companies. See www.sap.com/copyright for additional trademark information and notices.
Table of Contents
INTRO ................................................................................................................................................................ 4
Author Bio ........................................................................................................................................................ 4
Summary .......................................................................................................................................................... 4
About this Document ...................................................................................................................................... 4
Prerequisites .................................................................................................................................................... 4
Scenario ............................................................................................................................................................ 5
High-Level Requirements ............................................................................................................................... 5
Data Model ........................................................................................................................................................ 5
Governance Process ....................................................................................................................................... 6
STEP-BY-STEP GUIDE .................................................................................................................................... 7
Data Modeling .................................................................................................................................................. 7
Create Business Object Type Code (OTC) .................................................................................................... 7
Create New Data Model ................................................................................................................................... 7
Workflow and Process Modeling ................................................................................................................... 9
Create New Bus. Activity ................................................................................................................................ 9
Create New CR Type...................................................................................................................................... 10
Configure/Create Workflow Model ............................................................................................................... 12
Revise Steps for Standard Workflow ............................................................................................................... 12
Define WF Step Processors (for Standard Workflow Template WS46000027) .............................................. 12
User Interface ................................................................................................................................................. 12
Search UI ........................................................................................................................................................ 12
Single Processing UI ..................................................................................................................................... 17
Link UIs to Actions ........................................................................................................................................ 20
Role Model ...................................................................................................................................................... 21
Test.................................................................................................................................................................. 22
NEXT STEPS .................................................................................................................................................. 25
APPENDIX ...................................................................................................................................................... 25
OUT OF SCOPE .............................................................................................................................................. 25
HINTS & ADDITIONAL INFORMATION......................................................................................................... 25
Helpful Transactions ..................................................................................................................................... 25
Tcode USMD_DELETE_CREQUEST ............................................................................................................. 25
Tcode genil_model_browser ........................................................................................................................... 25
Tcode USMD_DATA_MODEL ......................................................................................................................... 25
Tcode USMD_DELETE_DATA_MODEL......................................................................................................... 26
Browser........................................................................................................................................................... 26
3
INTRO
Author Bio
Steffen Ulmer is an SAP Principal Consultant who works at SAP (Schweiz) AG. In this role,
he has been a trusted advisor for large enterprises on topics and products like: SAP Master
Data Governance, Central Governance, Consolidation and Mass Processing, Master Data
Strategy and Architecture.
Summary
Many companies want to manage custom objects in a central Master data system to be able to harmonize
this information across their landscape. Custom objects can be individual defined objects such as sites or
plants. Custom objects are typically less complex master data objects with a small and simple data model.
They are often used as reference data in major objects such as material, suppliers and customers.
This How-To Guide describes the necessary steps to implement a custom object in SAP MDG, central
governance. The guide is based on an object called “SITE” and includes the following steps during the
implementation phase:
- Create a new Data Model
- Define a new Business Object and Activity
- Create a custom User Interface
- Process Modeling for logical action CREATE
- Test of the custom object
At the end of the document, you will find further information about potential next steps to further enhance the
custom object application by a more complex data model and additional scenarios such as change
processes or transforming reference data into customizing.
The audience of this document can be customers, technology consultants and architects.
SAP Master Data Governance is a Master Data Management solution within the Business Suite and SAP
S/4HANA, and is integrated into the ABAP Application Server of SAP.
I really think that lots of you will have similar requirements in an MDG-based environment, and lots of you
want to develop custom objects and processes which are not (and cannot be) delivered within the standard
content.
This document will describe how to develop a custom object in SAP MDG. It will show you, in some very
basic steps, what you need to do to:
Get your own data model into the system
Configure your own User Interface with the SAP FPM (Floor Plan Manager)
Reuse a preconfigured Business Workflow within your own Change Request Type
Test your new custom object via a Change Request
Prerequisites
For this How-To Guide you should have access to a sandbox of your MDG Application Server with
appropriate access rights.
The ERP System must run on EhP (Enhancement Package) 8 and at least version SAP MDG 9.0 or on SAP
S/4HANA 1709.
You need some basic understanding of the following topics:
SAP MDG
SAP Business Workflow
SAP Floorplan Manager (FPM)
4
Development skills are not required since not one single line of code will be written. If you want to save the
configuration into an ABAP transport request, you need a workbench and customizing request/tasks.
Depending on your experience levels, you will need 2-4 hours to complete the tasks in this guide.
Scenario
Let`s assume that you have already successfully implemented the SAP MDG standard objects such as
Material, Suppliers, Financials and Customers. You are replicating this data to several ERP and Non-ERP
Systems for usage within transactional matters.
Your business department is generally happy with the solution, but they have an issue with some of the
reference data. Reference data is information which is used within master data objects itself, or in
transactions or programs as supporting information. In SAP, such data is typically displayed in F4 helps or
drop-down value lists. Examples of such reference data are:
- List of plants which is used to assign a material or products to a physical facility
- List of countries which is used within many transactions and referenced in many data models.
Your business users identified that these lists of valid reference data are not harmonized within the
landscape. This gap causes issues regarding data quality which ends up in inefficient business processes. A
concrete example is the information object “Site” which is a valid list of geographical places where the
company can have plants, unloading points or just generally assets.
High-Level Requirements
Data Model
5
Governance Process
The governance process is also very simple and includes just a 2-step approval. The following graphic
shows a high-level view of the governance process:
Requestor: Approver:
Enter site data Review & Approve
This guide uses the SAP MDG Rule-Based Workflow template to model this process.
6
STEP-BY-STEP GUIDE
Data Modeling
Navigate to Configuration
Workbench (alternatively you can
use the old “Edit Data Model”)
Storage: Type 1
Data Element: ORTID
7
Click on Attributes tab and add New
attributes for the domain:
(Attribute) (Data Element)
CITY AD_CITY1
COUNTRY LAND1
DESCR AD_REMARK1
NAME AD_NAME1
STREET AD_STREET
ZIP AD_PSTCD1
Info: The system generates many structures and also the genIL
model (for single processing, multi-record processing and even
hierarchy processing)
View Log
8
[OPTIONAL]
Verify the structure and the
generated tables
Run report USMD_DATA_MODEL
via SE37/38
[OPTIONAL]
Verify that structures have been
created.
[OPTIONAL]
Call transaction
genil_model_browser to verify that
the genIL structures have been
created
Component: ZSP_ZK
9
Start MDGIMG and navigate to
Create Business Activity
10
Assign the Entity Type SITE
to the CR Type
11
Configure/Create Workflow Model
User Interface
Search UI
12
Start MDGIMG and navigate to
Manage UI Configurations
Select USMD_SEARCH –
USMD_SEARCH_TEMPLATE
and click on Copy
13
Go to Edit mode and change the
OTC, Data Model and Entity
on this level as follows:
OTC: ZK_BO1
USMD_MODEL: ZK
USMD_ENTITY: Site
Z_USMD_SEARCH_DQUERY_ZK
Z_USMD_SEARCH_RESULT_ZK
14
Enter the feeder class:
CL_USMD_SEARCH_GUIBB_DQUERY
Component: ZSP_ZK
Dyn Query Name: DynamicQuerySITE
15
A Create Configuration popup
appears, which you confirm by
choosing OK.
CL_USMD_SEARCH_GUIBB_RESULT
Component: ZSP_ZK
Object Name: SITE
Component:
FPM_LIST_UIBB_ATS
Config ID:
Z_USMD_SEARCH_RESULT_ZK
Source Component:
16
FPM_SEARCH_UIBB
Source Config Name:
Z_USMD_SEARCH_DQUERY_ZK
Single Processing UI
Choose Copy
Z_BS_OVP_ZK
Z_BS_OVP_ZK_CBA
Z_BS_ZK_OVP
17
Click on the highest level
Z_BS_OVP_ZK
USMD_OTC: ZK_BO1
Navigate to Z_BS_ZK_OVP
Z_BS_LOCATION_FORM
18
Confirm the popup
CL_MDG_BS_GUIBB_FORM
Component: ZSP_ZK
Object Name: SITE
19
Define the wiring on the Wire
Schema tab as follows:
Component:
FPM_FORM_UIBB_GL2
Config ID:
Z_BS_LOCATION_FORM
Connector Class:
CL_USMD_CONNECTOR_BOL_QRY
Add the following 2 entries (otherwise the New button will not work, for example!):
20
Start MDGIMG and navigate
to Link Log. Actions with UI
Application and Bus. Activity:
Custom Definition
BO Type: ZK_BO1
Log Action: *
Current UI App: *
Current UI Config: *
Target UI App : USMD _OVP_GEN
Target UI Config: Z_BS_OVP_ZK
Bus. Acty: ZKBA
Role Model
21
Within this folder:
Create a new
transaction by choosing
Transaction Web
Dynpro Application
USMD_SEARCH
Z_USMD_SEARCH_Z
K
Important:
Assign your test user to
the role
Save the role
Test
Start NWBC
Select role
Z_MDG_SITE The UI appears:
22
Click on New
Enter some
details and
Submit the
change request
Refresh &
Activate
23
Info: If the task assignment (log no current processor) fails, please check if the base
configuration of MDG is done. You might need to configure the task 54307924 as a
general task as shown here:
Search for
the new
record
24
NEXT STEPS
To enrich the application, you may want to do the following things:
1. Add more entities and attributes to the data model and use relationships
2. Build a Change Request Type for log. action CHANGE to be able to modify existing records
3. Use multi-record processing mode
4. Use CBA to have a more dynamic UI
5. Introduce an auto ID for the Site/Location ID
6. Switch to a reuse model
APPENDIX
OUT OF SCOPE
This guide does not include topics like:
- Data Quality features with BRFplus or BAdIs
- Reporting capabilities
Helpful Transactions
Tcode USMD_DELETE_CREQUEST
Tcode genil_model_browser
Tcode USMD_DATA_MODEL
25
Display Data in Staging Table
Choose Execute
3.
Tcode USMD_DELETE_DATA_MODEL
Delete a Data Model
If you want to delete a data model (and all dependent objects), you can do the following:
1. Make sure you are in the cross-system client.
2. Call up MDGIMG General Settings Data Modeling Edit Data Model.
3. Select the corresponding data model and delete the line.
4. If this is not possible due to an active version, call up SE80 and run
USMD_DELETE_DATA_MODEL. This will delete the active version and all dependent objects
(except UI Configurations).
5. Repeat Step 3.
6. Important: You must SAVE and EXIT the MDGIMG when you’re done.
Browser
Depending on which version you are using, you might experience some issues displaying the content with
Internet Explorer. If so, using Google Chrome usually works.
26