Skip to Content

Introduction

                         SAP Master Data Governance software helps organizations govern financial, material, customer, or supplier master data from its creation in a business application through its replication to target applications to ensure data quality and regulatory compliance across the enterprise

Scope

              

                        Master Data Governance for Materials in general supports governing of objects like General Data, Descriptions, Unit Of measure, Basic Text, Internal Comment, Class Assignment and Characteristic Valuation. It always possible to extend the standard Data Model provided by SAP to govern either existing fields in table related to material or custom fields that are added to the standard table using extensions. This document explains of how the standard Data Model can be extended in order to govern  Purchase Order text as well

Standrad UI

                        This is the standard Materials UI provided by SAP.

1.JPG

Extending Standard Content

                         Our focus would be to add  purchase Order text view

Pre Requisites

                         You should having developer access for creating components  and creating new configurations. You should have some knowledge of Web Dynpro ABAP.

Extending Data Model

                           First we should extend the Data Model so that it has the capability to handle the newly added fields.

Go to transaction code MDGIMG and navigate to Edit Data Model

1.JPG

Select the row MM and double click the Entity types option on the left Panel

1.JPG

Click New Entries and Provide the Entity Name as ZPOTXT ( for example) and provide the following values.  This entity type is supposed to have generated structures in order to get it mapped to the backend.

1.JPG

In the attributes part we will add ZZPOTXT (SYSTRING).  This is the one which will be holding your sales text.

1.JPG

Now Double click the Relationships option from the left panel. Now relationships has to be created for the newly created entity type.

Note: while saving the Data Model in between,  you might be getting some error messages. Just ignore those until you create the relationships.

Create a relationship between LANGUCODE and ZPOTXT so that the languages  are always linked with a text. You can provide any relationship name.

Now create a relationship between ZPOTXT and MATERIAL

1.JPG

Now save and activate the DATA Model. By this time you must be seeing many warning messages. You could ignore them all.

Generate Structures

                  For the newly added attributes to the entity type, the corresponding structures has to be generated.

1.JPG

Select the row MM and double click structures in the left panel

1.JPG

1.JPG

Make the following entries to it. You could provide any name for the structures provided it should be a Z structure. The structure will be automatically created

1.JPG

Double click Mapping

Provide values like the following. These names are the mapping names which you will create a little later.

1.JPG

Double click data models and select MM and click generate structures.

1.JPG

You can go to SE11 and provide the structure name that you provided in the structure  part and you will find structures are created with respect to your entity types and its relationships

Extend Mappings

                         This step is required so that the fields are mapped to the current standard structures available that are provided by MDG.

1.JPG

Create a new mapping for ZPOTXT  using Mapping-> new.

1.JPG

Provide the mapping name that you provided in the Mapping step.

Now you will get a screen something like this

1.JPG

Select the row and Click Details

1.JPG

Go to transformations tab

Click add to add a row and make an entry

1.JPG

Follow the same procedure for the remaining mappings as well

1.JPG

1.JPG

Edit UI Configuration

Now its time to add your fields to the UI. Follow the path to the UI configuration

1.JPG

A  new window opens up

It is always better to copy the standard UI and make modifications to it. So click the standard UI name and click create with template.

1.JPG

Change the target configuration id names to a z name and select Deep copy mode and click start Deep copy.

1.JPG

Then you can start changing the UI configuration

1.JPG

1.JPG

Click go to Component Configuration

Now you will be seeing the general UI

1.JPG

Now click Add Main View

1.JPG

Now select the UIBB on the left and provide the following values. Provide a new configuration name which will be created in the next step.  So ignore the error messages that you would be getting . you should provide the component as FPM_LIST_UIBB

Create 2 UIBBs one for Language  details with List UIBB and the other for Purchase Order text with Form UIBB.

1.JPG

Now save the component and the other corresponding components as well. Now the UI is ready.

Assign UI configuration to Change request

                      Now this UI configuration can be used either in the URL directly or provide this configuration name to a Change request type so that wherever this Change Request type is called, this UI configuration will be called.

1.JPG

Select the change request type and double click Entity types.

1.JPG

Now you could provide the new UI configuration name in the UI configuration column.

If it is in display mode and if you are not able to change it, then it means that there are some existing  request that are open in this Change Request Type. So you have to clear those request that will enable you to change the UI configuration name

Note: you could makes use of the report USMD_DELETE_CREQUEST to delete Change requests. This is available only from EHP 5 SP05

To report this post you need to login first.

Be the first to leave a comment

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

Leave a Reply