Financial Management Blogs by SAP
Get financial management insights from blog posts by SAP experts. Find and share tips on how to increase efficiency, reduce risk, and optimize working capital.
cancel
Showing results for 
Search instead for 
Did you mean: 
AmitKrSingh
Product and Topic Expert
Product and Topic Expert
512

Introduction


In this blog, we will learn how to configure Data Block/Suppression in Analytical Queries to block access of certain sensitive Supplier records displayed in it. Analytical Queries are used for reporting and analysis.

Attribute based authorizations are dynamic determination mechanism which determines whether a user is authorized to access specific data sets which can be based on the context attributes of the user and data (for example, price of certain sensitive materials are masked).

S/4HANA Embedded Analytics


Analytics is one of the most typical and tangible values of S/4HANAS/4HANA Embedded Analytics is the function for real-time operational analytics in S/4HANA. It consists of ABAP CDS Views as data source and Fiori Analytical application as the frontend. As the frontend, other than S/4HANA Embedded Analytics, SAP Analytics Cloud is available which is used together with S/4HANA embedded analytics.

Query Monitor (RSRT TCode)


The Query Monitor tests, checks, and is used to test or regenerate queries and query views, and to check or change query properties. A detailed analysis of queries can be done with the transaction RSRT (Query Monitor) in a very convenient way. With the help of the Query Monitor you can run and analyze queries without a BW front end.

To launch the Query Monitor, execute transaction RSRT.


Here, we will use Query Monitor to showcase Data Blocking/Suppression of sensitive records of analytical queries. We will configure Data Blocking/Suppression through UI Data Protection Masking for SAP S/4HANA 2011 solution based on Attribute Based Authorization Control (ABAC) concept.

Before Data Block/Suppression Configuration:

Supplier records highlighted in the below image need to be suppressed in 2CCAPOVRD Query.


After Data Block/Suppression Configuration:

After suppression configuration, highlighted Supplier records in above image has been suppressed and unauthorized users cannot access those records anymore.



Prerequisite


UI Data Protection Masking for SAP S/4HANA is a solution that allows you to protect restricted and sensitive data values at field level by masking, clearing, or disabling fields for those users who are not authorized to view or edit this data.

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.

Requirement


Here, we want to configure Data Blocking/Suppression for Sensitive Supplier Records in 2CCAPOVRD query result using Attribute-based authorization concept.

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

Let’s begin


Configuration to achieve Data Block/Suppression


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 -> Sensitive Attribute Configuration -> Maintain Metadata Configuration -> Maintain Logical Attributes

Follow below mentioned steps:

Under “Maintain Logical Attributes”, maintain following logical attribute.

Supplier Code



  • Click on “New Entries” button

  • Enter “Logical Attribute” as “LA_EA_SUPL_CODE

  • Enter “Description” as “EA Supplier Code”

  • Select “Is Sensitive” checkbox

  • Click on “Save” button




Maintain Analytics Technical Address


To suppress the records in Analytical Queries, Technical Information (InfoProvider-Query-InfoObject) is required. To retrieve the Technical Address for Analytical Query fields, you need to use Recording Tool feature to get the Technical Address as Technical Information on press of F1 key is not available here.

Refer to this blog to know how to use the Recording tool.

Follow the given path:

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

Follow below mentioned steps:

Under “Analytics Technical Address”, maintain technical address for following field.

Supplier Code



  • Click on “New Entries” button

  • Enter “InfoProvider” as “2CIAPOVRD

  • Enter “Query” as “2CCAPOVRD

  • Enter “InfoObject” as “2CI_SUPPLIER_CDS

  • Enter “Logical Attribute” as “LA_EA_SUPL_CODE

  • Enter “Description” as “EA Supplier Code

  • Click on “Save” button




Configure Value Range

Value Ranges are a set of pre-populated values which can be used to derive the context under which an action should be executed.
Follow the given path:

SPRO -> SAP NetWeaver -> UI Data Protection Masking for SAP S/4HANA -> Sensitive Attribute Configuration -> Maintain Metadata Configuration -> Maintain Attributes and Ranges for Policy -> List of Values Definition – Follow below mentioned steps:
Sensitive Suppliers List


  • Click on “New Entries” button

  • Enter “List of Values” as “VR_SENSITIVE_SUPPLIERS_LIST

  • Enter “Description” as “Sensitive Supplier List

  • Click on “Save” button




Enter following entries in “VR_SENSITIVE_SUPPLIERS_LIST” Value Range

Follow below mentioned steps:

  • Execute Transaction Code “/UISM/V_RANGE

  • Click on “VR_SENSITIVE_SUPPLIERS_LIST” Value Range

  • Click on “Display<- -> Change” button

  • Click on “Add New Entry” button

  • Add following entries under “Include Value” tab and click on “Save” button








Policy Configuration


Policy is a combination of rules and actions which are defined in one or more blocks. The actions are executed on a sensitive entity (field to be protected) which has to be assigned to a Policy. The conditions are based on contextual attributes which help derive the context.

Context Attributes are logical attributes which are used in designing the rules of a policy. They are mapped to fields which are used to derive the context under which an action is to be executed on a sensitive entity.

Sensitive Entities are logical attributes which are sensitive and need to be protected from unauthorized access.
Follow the given path:

SPRO -> SAP NetWeaver -> UI Data Protection Masking for SAP S/4HANA -> Sensitive Attribute Configuration -> Masking and Blocking Configuration -> Maintain Policy Details for Attribute based Authorizations – Follow below mentioned steps:

  • Click on “New Entries” button

  • Enter “Policy Name” as “POL_BLOCK_ENAQRY

  • Select “Type” as “Data Blocking

  • Enter “Description” as “Blocking Sensitive Records in Embedded Analytics Query

  • Click on “Save” button



Write following logic into Policy



Maintain Data Blocking 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 -> Sensitive Attribute Configuration -> Masking and Blocking Configuration -> Maintain Data Blocking Configuration
Follow below mentioned steps:


  • Click on “New Entries” button

  • Enter “Sensitive Entity” as “LA_EA_SUPL_CODE” and press “Enter” key. “Description” will get populated in corresponding field

  • Check “Enable Data Block” check-box

  • Enter “Policy Name” as “POL_BLOCK_ENAQRY

  • Click on “Save” button




Data Blocking/Suppression in WD Grid Query Display Mode


Follow below mentioned steps:

  • Execute “RSRT” TCode

  • Enter “Query” as “2CIAPOVRD/2CCAPOVRD

  • Select “Query Display” mode as “WD Grid

  • Click on “Execute” button





  • Enter highlighted search criteria in the corresponding fields and click on “Go” button





  • Sensitive Supplier records will not appear in the query result and proper message “Certain records are blocked via UI Data Protection” will be displayed




Conclusion


In this blog post, we have learnt how Data Block/Suppression is achieved in Analytical Queries in Query Monitor (RSRT TCode) in WD Grid Query Display mode to block access of certain sensitive Supplier records.