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

UI Data Protection – Role based masking scenario in Personnel & Organization application of Web Dynpro ABAP

Introduction

In this blog post, we will learn how to mask “Social Security Number” and “Date of Birth” of Employees in Personal Data section of Personnel & Organization (HRPAO_PAOM_MASTERDATA) application.

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

Social Security Number

Birth Date

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_SOCSECNO” 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 “/UISM/PFCG_ROLE“. In this example, we have used a blank role “/UISM/PFCG_ROLE”. Customers can use any role as per their requirement.
  • Enter “Field Level Action” as “MASK_ALL
  • Click on “Save” button

  • Click on “New Entries” button
  • Enter “Sensitive Entity” as “LA_BIRTHDATE” 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 “/UISM/PFCG_ROLE“. In this example, we have used a blank role “/UISM/PFCG_ROLE”. Customers can use any role as per their requirement.
  • Enter “Field Level Action” as “MASK_ALL
  • 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 Web Dynpro ABAP field by pressing “Right-Click” on the field and then click on “Technical Help” option.

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 “Web Dynpro Field Mapping”, maintain technical address for following fields.

  • Click on “New Entries” button
  • Enter “Application Name” as “HRPAO_PAOM_MASTERDATA
  • Enter “Component Name” as “FPM_OVP_COMPONENT
  • Enter “View Name” as “MAIN
  • Select “Type” as “Floorplan Manager
  • Enter “Component Configuration” as “HRPAO_PAOM_MASTERDATA
  • Enter “Field ID” as “FGL2_005056A204721EE198C66EAD3AA6947F
  • Enter “Logical Attribute” as “LA_SOCSECNO
  • Enter “Description of Web Dynpro Mapping” as “Social Security Number
  • Click on “Save” button
  • Click on “New Entries” button
  • Enter “Application Name” as “HRPAO_PAOM_MASTERDATA
  • Enter “Component Name” as “FPM_OVP_COMPONENT
  • Enter “View Name” as “MAIN
  • Select “Type” as “Floorplan Manager
  • Enter “Component Configuration” as “HRPAO_PAOM_MASTERDATA
  • Enter “Field ID” as “FGL2_005056A204721EE198C6701EB0DF147F
  • Enter “Logical Attribute” as “LA_BIRTHDATE
  • Enter “Description of Web Dynpro Mapping” as “Date of Birth
  • Click on “Save” button

Conclusion

In this blog post, we have learnt how Role-based masking is achieved in Personal Data section of Personnel & Organization (HRPAO_PAOM_MASTERDATA) application for masking “Social Security Number” and “Date of Birth” fields.

Assigned Tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo SAP consultant
      SAP consultant

      Hello Amit,

       

      We have similar requirment for webdynpro masking . Could you please help us with the ADD-ON details required for webdynpro masking with system of product versions

       

      SAP S/4 HANA foundation  1909

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

      Hi,

      As I have mentioned in the “Prerequisite” section of my blog post that in order to achieve masking in S/4HANA system, “UI data protection masking for SAP S/4HANA” solution must be installed so you need this solution to get the fields masked.

      You need to purchase the following Add-on for masking –

      UI data protection masking for SAP S/4HANA

      Regards,

      Amit Kumar Singh