How To... Master Data Governance for Material: BADI USMD_SSW_RULE_CONTEXT_PREPARE - PDF

Please download to get full document.

View again

of 22
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Information Report
Category:

Education

Published:

Views: 253 | Pages: 22

Extension: PDF | Download: 2

Share
Related documents
Description
SAP How-To Guide Master Data Governance for Material How To... Master Data Governance for Material: BADI USMD_SSW_RULE_CONTEXT_PREPARE Applicable Releases: EhP5, EhP6, MDG6.1 Version 1.2 April 2013 Copyright
Transcript
SAP How-To Guide Master Data Governance for Material How To... Master Data Governance for Material: BADI USMD_SSW_RULE_CONTEXT_PREPARE Applicable Releases: EhP5, EhP6, MDG6.1 Version 1.2 April 2013 Copyright 2013 SAP AG. 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 AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iseries, pseries, xseries, zseries, z/os, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, Informix, i5/os, POWER, POWER5, OpenPower and PowerPC are trademarks or registered trademarks of IBM Corporation. Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mysap, mysap.com, xapps, xapp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ( SAP Group ) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group 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. These materials are provided as is without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP shall not be liable for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. SAP does not warrant the accuracy or completeness of the information, text, graphics, links or other items contained within these materials. SAP has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third party web pages nor provide any warranty whatsoever relating to third party web pages. SAP NetWeaver How-to Guides are intended to simplify the product implementation. While specific product features and procedures typically are explained in a practical business context, it is not implied that those features and procedures are the only approach in solving a specific business problem using SAP NetWeaver. Should you wish to receive additional information, clarification or support, please refer to SAP Consulting. Any software coding and/or code lines / strings ( Code ) included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or grossly negligent. Disclaimer Some components of this product are based on Java. Any code change in these components may cause unpredictable and severe malfunctions and is therefore expressively prohibited, as is any decompilation of these components. Any Java Source Code delivered with this product is only to be used by SAP s Support Services and may not be modified or altered in any way. Document History Document Version Description 1.00 First official release of this guide 1.10 Note Note Typographic Conventions Type Style Example Text Description Words or characters quoted from the screen. These include field names, screen titles, pushbuttons labels, menu names, menu paths, and menu options. Cross-references to other documentation Icons Icon Description Caution Note or Important Example Recommendation or Tip Example text Example text Example text Example text EXAMPLE TEXT Emphasized words or phrases in body text, graphic titles, and table titles File and directory names and their paths, messages, names of variables and parameters, source text, and names of installation, upgrade and database tools. User entry texts. These are words or characters that you enter in the system exactly as they appear in the documentation. Variable user entry. Angle brackets indicate that you replace these words and characters with appropriate entries to make entries in the system. Keys on the keyboard, for example, F2 or ENTER. Table of Contents 1. Business Scenario Background Information Prerequisites Step-by-Step Procedure Customizing Create new CR-Type Define Service (Cross Client): Enhancement Spot: USMD_SSW_SERVICE_PROCESSOR Create Enhancement Implementation Create Badi Implementation Methods IF_USMD_SSW_RULE_CNTX_PREPARE~PREPARE_RULE_CONTEXT and GET_ELEMENT_ID Create Filter Customizing BRF+ Tables Change CR-Type related Application Change Function to Call Ruleset Decision Table User Agent Decision Table Set Service Name Value Single Value Decision Table User Agent Decision Table Non User Agent Decision Table Process Organization Unit Labor Step 00 - Create Material User Menninger Step 01 User Menninger Organization Unit Labor Step 00 User Menninger Step 01 User Menninger After Approval... 16 1. Business Scenario SAP Master Data Governance for Material (MDG-M) provides business processes to find, create, change, and mark material master data for deletion. It supports the governance of material master data in a central hub and the distribution to connected operational and business intelligence systems. The processes are workflow-driven and can include several approval and revision phases, and the collaboration of all users participating in the master data maintenance. This scenario addresses the customer requirement to have a more process options dependent on additional fields from the data model MM. This example shows how to determine either user 01 or 02 dependent on the value from field LABOR. This How To Guide describes the solution to add additional fields from the data model MM to the user agent decision table in BRF+. April 2. Background Information A BAdI is used to get additional parameters to the BRF+ user agent decision table. You can use this BAdI to implement preparation of the Business Rule Framework plus (BRF+) rule context in the rule-based workflow. This BAdI uses the method PREPARE_RULE_CONTEXT to get specific BRF+ rule context values from the workflow generic-context table and from change request data. The input for this BAdI is the change request number. The method uses the change request number to retrieve data from the change request. It then fills the BRF+ rule context table with specific values from the change request. With this BAdI, it is also possible to change the workflow generic-context table and also export both the BRF+ rule context table and message table. Requirements You have defined the filter value Service Name in view V_USMD201C_SSW. You need to create a separate BAdI Implementation for your specific rule-context preparation method. Standard settings For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18). No default BAdI implementation is preactivated in the standard system. The BAdI is filter-dependent. The BAdI is not designed for multiple use. Activities For information about implementing BAdIs in the context of the Enhancement Concept, see the SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework. 3. Prerequisites Relevant SAP Notes: April 4. Step-by-Step Procedure 4.1 Customizing Create new CR-Type April 4.1.2 Define Service (Cross Client): Create Service: ZEM_MAT_GET_CONTEXT April 4.2 Enhancement Spot: USMD_SSW_SERVICE_PROCESSOR Create Enhancement Implementation Transaction se18 for Enhancement Spot Use Enhancement Spot: USMD_SSW_SERVICE_PROCESSOR Then Display Select BADI DEFINITION USMD_SSW_RULE_CONTEXT_PREPARE Right click on Implementation, and click on Create BADI Implementation ZMDG_BS_MAT_BRF_CONTEXT_LABOR as shown below: April 4.2.2 Create Badi Implementation Badi Implementation: ZMDG_BS_MAT_BRF_CONTEXT_LABOR Description: ZMDG_BS_MAT_BRF_CONTEXT_LABOR Implementing Class: ZL_MDG_BS_MAT_BRF_CONTEXT_LABO Save and Activate Methods IF_USMD_SSW_RULE_CNTX_PREPARE~PREPARE_RULE _CONTEXT and GET_ELEMENT_ID Then double click on Implementing class and then method IF_USMD_SSW_RULE_CNTX_PREPARE~PREPARE_RULE: April For the interface method you can use the default coding from Example Enhancement Implementation MDG_BS_MAT_BRF_CONTEXT_LABOR (Add MARA-LABOR to BRF+ context), Implementing Class CL_MDG_BS_MAT_BRF_CONTEXT_LABO and methods IF_USMD_SSW_RULE_CNTX_PREPARE~PREPARE_RULE_CONTEXT, GET_ELEMENT_ID, READ_MATERIAL and READ_CREQUEST Create Filter The Filter is the service name. Save and activate. April 4.3 Customizing BRF+ Tables Change CR-Type related Application Execute the transaction usmd_ssw_rule to add the field to the brf+ rule in the single value decision table (Select EM_MAT60 as input to usmd_ssw_rule). Go to BRF-Application/Contained Objects/Type: Data Object/Data object type: Element and click on Create Object Click on: Create and Navigate to Object. April Save and Activate this Change Function to Call Ruleset Go to Trigger Function/Function to Call Ruleset/Signature/Edit and add field LABOR to the Signature. Click on Add Existing Data Object and Activate. Save April 4.3.3 Decision Table User Agent Decision Table Now add the column in the Decision Table User Agent Decision Table. Click on Edit/ Table Settings. Click on insert Column. April Select. Save and Activate Set Service Name Value Then go to below and add service name. April Save and Activate Single Value Decision Table April 4.3.6 User Agent Decision Table Non User Agent Decision Table April 4.4 Process Organization Unit Labor Step 00 - Create Material User Menninger April Step 01 User Menninger Organization Unit Labor Step 00 User Menninger April Step 01 User Menninger After Approval April
Recommended
View more...
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks