Skip to Content
Product Information
Author's profile photo Amit Kumar Singh

UI Data Protection – Role based masking scenario in SE16 and MM03

Introduction

In this blog post, we will learn how to mask “Gross Weight” and “Net Weight” fields in MARA table in transactions SE16 and MM03.

A PFCG Role will be used for the authorization check which will allow users with the specified role to view the field value. If a user does not have this role, it means the user is not authorized and data will be protected either through masking, clearing, or disabling the field.

The end result for unauthorized users will look like below:

Prerequisite

Product “UI data protection masking for SAP S/4HANA” is used in this scenario to protect sensitive data at field level and must be installed in the S/4HANA system.

The product is a cross-application product which can be used to mask/protect any field in SAP GUISAPUI5/SAP FioriCRM Web Client UI, and Web Dynpro ABAP.

Let’s begin

Configuration to achieve masking

Logical Attribute is a functional modelling of how any attribute such as Social Security NumberBank Account NumberAmountsPricing informationQuantity etc. should behave with masking.

Configure Logical Attribute – Follow the given path:

SPRO -> SAP NetWeaver -> UI Data Protection Masking for SAP S/4HANA -> Maintain Metadata Configuration -> Maintain Logical Attributes

Gross Weight

Net Weight

Maintain Field Level Security and Masking Configuration

Here, we will define how masking will behave with the logical attribute that we created in above step.

Follow the given path:

SPRO -> SAP NetWeaver -> UI Data Protection Masking for SAP S/4HANA -> Data Protection Configuration -> Maintain Field Level Security and Masking Configuration

Follow below mentioned steps:
  • Click on “New Entries” button
  • Enter “Sensitive Entity” as “LA_BRWEIGHT” and press “Enter” key. “Description” and “Application Module” will get populated in corresponding fields
  • Check “Enable Configuration” check-box
  • Select “Role Based Authorization” option
  • Enter “PFCG Role” as “ZTEST“. In this example, we have used a blank role “ZTEST”. Customers can use any role as per their requirement.
  • Enter “Field Level Action” as “MASK_FIELD
  • Click on “Save” button

  • Click on “New Entries” button
  • Enter “Sensitive Entity” as “LA_NTWEIGHT” and press “Enter” key. “Description” and “Application Module” will get populated in corresponding fields
  • Check “Enable Configuration” check-box
  • Select “Role Based Authorization” option
  • Enter “PFCG Role” as “ZTEST“. In this example, we have used a blank role “ZTEST”. Customers can use any role as per their requirement.
  • Enter “Field Level Action” as “MASK_FIELD
  • Click on “Save” button

Maintain Technical Address

In this step, we will associate the Technical Address of the fields to be masked with the Logical Attributes.

You can get the Technical Address of a GUI field by pressing “F1” on the field.

Follow the given path:

SPRO -> SAP NetWeaver -> UI Data Protection Masking for SAP S/4HANA -> Maintain Metadata Configuration -> Maintain Technical Address

Follow below mentioned steps:

Under “GUI Table Field Mapping”, maintain technical address for following fields.

Gross Weight
  • Click on “New Entries” button
  • Enter “Table Name” as “MARA
  • Enter “Field Number” as “BRGEW
  • Enter “Logical Attribute” as “LA_BRWEIGHT
  • Enter “Description” as “Material Gross Weight
  • Click on “Save” button
  • Click on “Mass Configuration” button which is required to generate technical addresses for Module Pool Programs

Net Weight
  • Click on “New Entries” button
  • Enter “Table Name” as “MARA
  • Enter “Field Number” as “NTGEW
  • Enter “Logical Attribute” as “LA_NTWEIGHT
  • Enter “Description” as “Material Net Weight
  • Click on “Save” button
  • Click on “Mass Configuration” button which is required to generate technical addresses for Module Pool Programs

Conclusion

In this blog post we have learnt how Role-based masking is achieved in transaction SE16 and MM03 for masking “Gross Weight” and “Net Weight” fields.

Assigned tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Jorge Ferraces Figueiras
      Jorge Ferraces Figueiras

      Hello Amit,

      I'm writing to you because after a several attempts I can´t mask the field net weight  following steps that you mention in your post. Following the path: SPRO -> SAP NetWeaver -> UI Data Protection Masking for SAP S/4HANA -> Maintain Metadata Configuration -> Maintain Technical Address. After configurate table name, field, logical attribute and description of GUI Mapping, I select option "Mass Configuration" which is required to generate technical addres. After this step, I check in the table MM03 if the material gross netweight is masked and notthing happens, I can see the whole field without masking. What should appear on my screen after press the option "Mass Configuration"? After press option "Mass Configuration" nothing appears on my screen as you can see in the image attached. Could you please guide me with the steps that I should follow to mask net weight? I installed all the compenets required to start using UI Masking.

      Thanks so much for your help and comments.

      Author's profile photo Amit Kumar Singh
      Amit Kumar Singh
      Blog Post Author

      Hi Jorge,

      Please raise an incident under "GRC-UDS-DO" component so that our Support Team can provide resolution on the same.

      Regards,

      Amit Kumar Singh