Skip to Content
Product Information

Disable Button in SAP GUI – Disable “Additional Data” button in MM03

Introduction

In this blog post, we will learn how to disable “Additional Data” button in transaction MM03.

This functionality will work only if a field is masked on the screen.

If Logical Attribute is maintained, then the Disable Button functionality will be executed based on user authorization.

If Logical Attribute is not maintained, then the Disable Button functionality will be executed for the configured function code, provided at least one field is masked on the screen.

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 disable button in SAP GUI screens and must be installed in the S/4HANA system.

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

Material Description

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_MATDESCR” 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_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.

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

Maintain SAP GUI Function Code for Button Disable Configuration

Here, we will configure Program Name and Function Code for the Disable Button functionality of the selected function code in SAP GUI.

Note:- You can get the Program Name and Function Code information of a button by pressing “F1” on the button.

Follow the given path:

SPRO -> SAP NetWeaver -> UI Data Protection Masking for SAP S/4HANA -> Data Protection Configuration -> Maintain SAP GUI Function Code for Button Disable Configuration

Follow below mentioned steps:
  • Click on “New Entries” button
  • Enter “Program Name” as “SAPLMGMM
  • Enter “Function Code” as “ZU01
  • Enter “Description” as “Disable Additional Data button
  • Check “Enable Configuration” check-box
  • Enter “Logical Attribute” as “LA_MATDESCR
  • Enter “Message Class” as “/UISM/UI
  • Enter “Message Number” as “912
  • Click on “Save” button

Conclusion

In this blog post we have learnt to disable “Additional Data” button in transaction MM03.

Be the first to leave a comment
You must be Logged on to comment or reply to a post.