Business Requirement

               

                 SAP Master Data Governance helps organizations govern master data from its creation in a business application,through step by step enrichment by different roles in the organization, to its replication to target applications to ensure data quality and regulatory compliance across the enterprise. SAP master data governance can be used for multiple master data domains like customer, material, supplier, articles , finance etc.


Like other flavors of MDG, MDGA consulting solution also comes with a predefined data model. Customers would be able to extend the data model fields during the project phase based on their additional requirements. If you have already extended other MDG standard data models (like MDG-M), then the procedure to extend MDG-A would be essentially the same.

Introduction

                   In this blog we will walk you through the steps required to enhance the MDGA Solution with an additional field in the MARA entity type.

Purpose

                   In this scenario you want to extend the Data model with field KUNNR which is available in MARA table.

/wp-content/uploads/2015/03/1_657101.jpg

Package for customizing include

                   If you want to transport your enhancements, you must assign a package for your customizing includes.

In Customizing for Master Data Governance (transaction MDGIMG), open the activity General Settings ->Data Modeling ->  Assign Package for Customizing Include.

/wp-content/uploads/2015/03/1_657101.jpg

Edit the entry for Data Model AR and type the desired package to be used.

/wp-content/uploads/2015/03/1_657101.jpg

Save your changes.

Data Model Extension

                  You have to extend the MARA entity type, which has storage and use type 1, so it includes the KUNNR attribute.


You can view the settings for storage and use type for existing entity types in Customizing for Master Data Governance under General Settings -> Data modeling -> Edit Data model.

/wp-content/uploads/2015/03/1_657101.jpg

Select the AR data model and double click on Entity types (alternatively you can choose view cluster VC_USMD001 in transaction SM34). In the list of entity types, you can double click an entity type to view its details as shown below for the MARA entity type.

/wp-content/uploads/2015/03/1_657101.jpg

Now double click on Attributes.

Click on New Entries and add the following Values and Press Save.

/wp-content/uploads/2015/03/1_657101.jpg

Ignore the warning messages that come up and provide a Transport Request.  Then click Activate.

Now navigate to Customizing for Master Data Governance under General Settings ->Data Modeling -> Generate Data Model Specific Structures.

/wp-content/uploads/2015/03/1_657101.jpg

Select AR data model and navigate into Structures. Select MARA Specific structures and click Generate Selected Structures.

/wp-content/uploads/2015/03/1_657101.jpg

Now go to SE38 and execute the program usmd_adjust_staging and provide AR as data model.

/wp-content/uploads/2015/03/1_657101.jpg

SMT Mapping

Active to Staging area

Navigate to MDGIMG -> General Settings -> Data Modeling -> Extend Mappings.

/wp-content/uploads/2015/03/1_657101.jpg

Select Mapping->Open.  Provide the Mapping name as /VPCOE/MDG_MAP_ARTICLE_2STA.

/wp-content/uploads/2015/03/1_657101.jpg

In the table Mapping Steps select MAP_FROM_MARA and choose the Details button.

/wp-content/uploads/2015/03/1_657101.jpg

Select the Transformations tab

/wp-content/uploads/2015/03/1_657101.jpg

Change to Edit Mode.

Choose the Add button to add a new field mapping.

/wp-content/uploads/2015/03/1_657101.jpg

Enter the Field Mapping from KUNNR to ZZKUNNR as shown in the screenshot.

/wp-content/uploads/2015/03/1_657101.jpg

Save the field mapping by pressing Save button.

Staging  to Active area

Open  /VPCOE/MDG_MAP_ARTICLE_2PP    mapping.

/wp-content/uploads/2015/03/1_657101.jpg

In the table Mapping Steps select  MAP_2_MARA and click Details button.

/wp-content/uploads/2015/03/1_657101.jpg

Navigate to Transformations tab and activate Edit mode.

/wp-content/uploads/2015/03/1_657101.jpg

Choose the Add button to add a new field mapping.

/wp-content/uploads/2015/03/1_657101.jpg

Enter the Field Mapping from ZZKUNNR to KUNNR as shown in the screenshot bellow.

/wp-content/uploads/2015/03/1_657101.jpg

Now press Save button.

UI Configuration

UI configurations can be adapted using the FPM-enhancement option.

Navigate to MDGIMG -> General settings -> UI Modelling -> Edit UI configuration.

Now select the UI configuration /VPCOE/USMD_ENTITY_VALUE2 and click Edit. Now select Continue in Display Mode button

/wp-content/uploads/2015/03/1_657101.jpg

Next, select the OIF component (click on the component name). Select Additional Functions dropdown button and then select Enhance from the dropdown list.

/wp-content/uploads/2015/03/1_657101.jpg

Provide an enhancement implementation name and click OK.

/wp-content/uploads/2015/03/1_657101.jpg

Select a package where you want to save the changes and the transport request.


Next, read the confirmation message

Select the node where you want to add the new UIBB FORM, and from the dropdown button choose Add Form.

/wp-content/uploads/2015/03/1_657101.jpg

Provide a name for the new UIBB.

/wp-content/uploads/2015/03/1_657101.jpg

Now select Configure UIBB. When prompted, choose to save the configuration ID and choose the transport request.

Create a new Configuration

/wp-content/uploads/2015/03/1_657101.jpg

Provide the package name for saving the new configuration ID.

Do not provide any entity type over here. Press OK button.

/wp-content/uploads/2015/03/1_657101.jpg

Now add a Group element and inside the group add a child element. Set the property as Input Field.

/wp-content/uploads/2015/03/1_657101.jpg

/wp-content/uploads/2015/03/1_657101.jpg

Save the changes by pressing Save button.

/wp-content/uploads/2015/03/1_657101.jpg

/wp-content/uploads/2015/03/1_657101.jpg

You have now added the ZZKUNNR field to the Basic Data section of the UI as an enhancement.

Testing the configuration

                 Now open this UI configuration from your change request. You should be able to see the KUNNR field on UI and update the database.

Troubleshooting Tip

                If you are not able to see the field kindly check the UI Badi and also the Field control customizing done on the ERP.

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply