SAP S/4 HANA Master Data Governance CUSTOMER 2022-12 MANAGE DATA QUALITY FOR CUSTOM FIELDS Applies to SAP CAL Solution S/4 HANA OP 2022 FPS00 release and above TABLE OF CONTENTS Background information ........................................................................................................ 3 Demo Script ............................................................................................................................. 4 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 Accessing the SAP Fiori Launchpad................................................................................. 4 Create and Publish Custom Field ...................................................................................... 6 Manage Data Quality for Custom Fields ........................................................................... 9 Preparing BRF+ .................................................................................................................... 9 Create Validation Rule for Custom Field ........................................................................ 10 Evaluate Custom Field ...................................................................................................... 17 Analyze Result and Correct Data in Custom Field ........................................................ 19 Re-Evaluate Custom Field and Verify Data Quality Improvement ............................... 24 2 Background information With the latest release of SAP S/4HANA 2022, SAP Master Data Governance provides you with powerful new data quality management tools. SAP S/4HANA allows you to maintain business-important but not SAP standard information by defining custom fields. Key users can use the Custom Field app to manage these fields. Once you publish custom fields in the relevant context, you can use them in related apps and APIs. All functions in SAP MDG Data Quality Management support custom fields now. This demo script explains how you can create custom fields in S/4HANA and manage the data quality for your custom fields using Rule Definition, Evaluation & Error Analysis, and the Remediation process. 3 Demo Script 1.1 Accessing the SAP Fiori Launchpad Explanation Screenshot Log on to the CAL S/4HANA system using the information below: • Client: 100 • User: MDG_EXPERT • Password: Welcome1 In the menu, choose SAP Fiori Launchpad. The system will start a browser with the URL of the SAP Fiori Launchpad. 4 Explanation Screenshot Then log on once more with the information provided above. The system will take you to the SAP Fiori Launchpad. On the My Home page, you should be able to find the Custom Fields app. If not, scroll down to the section Data Quality Management for Products to access the tiles for this demo script. 5 1.2 Create and Publish Custom Field In this demo script, you’ll create a custom field in the Product Plant view and manage the data quality for it. Explanation Screenshot Choose the + button and select the right business context. If necessary, provide a label, type, and code list. Choose the Create and Edit button. 6 Explanation Screenshot Enable the Evaluation Results. Save and publish. Wait for the status published. This could take several minutes. 7 Explanation Screenshot 8 1.3 Manage Data Quality for Custom Fields 1.3.1 Preparing BRF+ Explanation Screenshot Before you can use the custom field in rule implementation of a BRF+ expression, you need to refresh the data binding. Go to the BRF Workbench. http://vhcals4hci.dummy.no domain:50000/sap/bc/web dynpro/sap/fdt_wd_workbe nch Search for the application ZMDQ_194. In the hierarchy, open Data Object -> Structure -> MARC Key and Attribute structure. Choose Edit. In the Define Data Binding section, choose Refresh Binding. The new custom field will appear in the structure component list. Save and activate. 9 1.3.2 Create Validation Rule for Custom Field Explanation Screenshot In this example, you’ll create a validation rule to check the custom field. Open the SAP Fiori Launchpad and choose the Validation Rules – Products tile. Select the table that contains the custom field in the Base Table. For Checked Field, select the custom field. Save the rule. Select the usage Data Quality Evaluation and choose Add -> Check in Mass Processing. Prepare both usages. 10 Explanation Screenshot Next, you need to implement the scope expression. In this example, the rule applies only to plant 1010 data in Finished Good product. Choose Edit Operand -> Select Operand -> Select Data Object -> Context -> More. In the pop-up, provide the following information: Name is equal to mtart. Enter the value FERT or use the value help to select it. Select an object and choose OK to close the pop-up. Then select Edit Operand -> Add Condition. 11 Explanation Screenshot Select Use Direct Value From -> Context -> More. Add the following to Name is equal to: werks. Search and select the text object. Enter the value 1010 or use the value help to select it. Activate it. 12 Explanation Screenshot 13 Explanation Screenshot Implement the Condition Expression. In this example, the rule checks that the custom field should not be empty. Choose Edit Operand -> Select Operand -> Select Data Object -> Context -> More. Search for your custom field and select it. From the dropdown list, choose Is not initial. Activate it. 14 Explanation Screenshot Go back to the rule. Choose Approve. Enable the usages. 15 Explanation Screenshot 16 1.3.3 Evaluate Custom Field Explanation Screenshot Open the SAP Fiori Launchpad and choose the Evaluate Data Quality app. Choose Create Process. Save. Choose the Adjust button. Switch off Delete Results and Delete Scores. Choose the Start button. 17 Explanation Screenshot Wait until the process is completed. 18 1.3.4 Analyze Result and Correct Data in Custom Field Explanation Screenshot Open the Validation Rule for Products app again. Now you should see a Score that has been created. Choose the Score to open the Evaluation Results. Switch to Compact Filter. In the Adapt Filters popup, search for your custom field and add it to your filter bar. 19 Explanation Screenshot In the section Evaluation Items, choose the Settings icon, find your field, and add it to the list. 20 Explanation Screenshot Select Process -> All. In the mass processing, choose Adjust. For the Fields in Scope, search and add your field. 21 Explanation Screenshot To begin the Mass Processing, choose Start. Wait until the Edit step is at 100%. Then choose Edit Records. On the Plant Data tab, select all records and choose Replace Values. Then select any value from the list and replace it. 22 Explanation Screenshot Choose Continue. No validation errors or warnings occur in our example. Continue to the Activation step and complete the process. Note: You can ignore records that aren’t activated yet. 23 Explanation Screenshot 1.3.5 Re-Evaluate Custom Field and Verify Data Quality Improvement Explanation Screenshot Execute step 1.3.3 again. 24 Explanation Screenshot In the SAP Fiori Launchpad, choose the Validation Rule – Products app. 25 Explanation Screenshot 26 www.sap.com/contactsap © 2022 SAP SE or an SAP affiliate company. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company. The information contained herein may be changed without prior notice. Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors. National product specifications may vary. These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP or its affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP or SAP affiliate company products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated companies’ strategy and possible future developments, products, and/or platforms, directions, and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time for any reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward looking statements, and they should not be relied upon in making purchasing decisions. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries. All other product and service names mentioned are the trademarks of their respective companies. See www.sap.com/copyright for additional trademark information and notices.