Create Monitor Entries from an update routine

Similar documents
Create Monitor Entries from a Transformation routine

Install TREX for CAF Version 1.00 March 2006

Do Exception Broadcasting

MDM Syndicator Create Flat Syndication File

configure an anonymous access to KM

link SAP BPC Excel from an enterprise portal Version th of March 2009

Visual Composer - Task Management Application

SAP GRC Access Control: Configuring compliant user provisioning (formerly Virsa Access Enforcer) into CUA Systems

How To Extend User Details

Line Items in BI Integrated Planning

Configure TREX 6.1 for Efficient Indexing. Document Version 1.00 January Applicable Releases: SAP NetWeaver 04

How to Use Function Keys in Mobile Applications for Handhelds

Extract Archived data from R3

How To Configure the Websocket Integration with SAP PCo in SAP MII Self Service Composition Environment Tool

How to Upgr a d e We b Dynpro Them e s from SP S 9 to SP S 1 0

What s New / Release Notes SAP Strategy Management 10.1

How To Configure IDoc Adapters

Create Partitions in SSAS of BPC Version 1.00 Feb 2009

How To Set up NWDI for Creating Handheld Applications in SAP NetWeaver Mobile 7.1

SAP NetWeaver How-To Guide

How To... Master Data Governance for Material: BADI USMD_SSW_SYSTEM_METHOD_CALLER to create successor change request

Configure SSO in an SAP NetWeaver 2004s Dual Stack

How To... Promote Reports and Input Schedules Through Your System Landscape

How To Troubleshoot SSL with BPC Version 1.01 May 2009

Integrate a Forum into a Collaboration Room

A Step-By-Step Guide on File to File Scenario Using Xslt Mapping

How To... Reuse Business Objects and Override Operations of a Business Object

Consuming Web Dynpro components in Visual Composer.

Data Validation in Visual Composer for SAP NetWeaver Composition Environment

How To... Master Data Governance for Material: BADI USMD_SSW_PARA_RESULT_HANDLER to merge result of parallel workflow tasks

How to Set Up and Use the SAP OEE Custom UI Feature

How To... Configure Integrated Configurations in the Advanced Adapter Engine

Quick Reference Guide SAP GRC Access Control Compliant User Provisioning (formerly Virsa Access Enforcer): HR Triggers

How To...Configure Integration of CUP with SPM

How To Recover Login Module Stack when login to NWA or Visual Administrator is impossible

Configure UD Connect on the J2EE Server for JDBC Access to External Databases

Transport in GP. How-to Guide Beginning with SAP NetWeaver 2004s SPS06. Version 2.00 January 2006

How to Set Up and Use the SAP OEE Custom KPI Andons Feature

How To... Master Data Governance for Material: File Down- and Upload

Modeling Considerations for BPC Time Dimensions

Simplified Configuration of Single System Update in Maintenance Optimizer

Process Control 2.5 Implementation Checklist

How to View Dashboards in the Self Service Composition Environment with Additional Metadata

Cache Settings in Web Page Composer

How-To... Add Sensitive Content into an Area

How to Create a New SAPUI5 Development Component

WDA - Custom themes for Web Dynpro ABAP applications without SAP Enterprise Portal integration

SAP NetWeaver How-To Guide How to use Process Execution Manager Using SAP Test Data Migration Server

Web Page Composer anonymous user access

How To Develop a Simple Web Service Application Using SAP NetWeaver Developer Studio & SAP XI 3.0

Enterprise Portal Logon Page Branding

How To Use Surveys with Mobile Sales for handheld Version 1.00 January 2007

How To...Use a Debugging Script to Easily Create a Test Environment for a SQL-Script Planning Function in PAK

Work with Variables in SAP NetWeaver Visual Composer Version 1.00 May 2006

Configure Peripheral Drivers with Mobile Infrastructure

SAP Composite Application Framework. Creating a Content Package Object

SAP NetWeaver How-To Guide

Send Multiple IDocs Within One XI Message

Use Business Objects Planning and Consolidation (version for the Microsoft platform) BPF services in Xcelsius

How to Browse an Enterprise Services Registry in Visual Composer

Building a Tax Calculation Application

use BPS and BI Integrated Planning in parallel Data slices and Characteristic Relations How-to Guide SAP NetWeaver 2004s Version 1.

The test has been performed using a 64 Bit SAP NetWeaver Application Server Java 7.1 Enhancement Package 1 SP4 or greater system.

Handle. How-to Guide SAP NetWeaver 2004s. Version 1.00 Sept 2006

Visual Composer Build Process

How To Generate XSD Schemas from Existing MDM Repositories

SAP MII: Leveraging the Data Buffering Feature for Connection Error Handling.

SDN Contribution HOW TO CONFIGURE XMII BUILD 63 AND IIS 6.0 FOR HTTPS

Setup an NWDI Track for Composition Environment Developments

View Time Security for crystalreports.com

How To Build the Carry Forward and Account Transformation Business Rules

How to Translate a Visual Composer Model Part I

SAP Composite Application Framework. Creating an External Service type Callable Object in Guided Procedures

Setting Up an Environment for Testing Applications in a Federated Portal Network

Access Control 5.3 Implementation Considerations for Superuser Privilege Management ID-Based Firefighting versus Role-Based Firefighting Applies to:

Use the BI Java SDK in a Web Dynpro Application Version 1.01 July 2005

How to receive and convert PDF-documents with SAP XI

How To... Use the BPC_NW Mass User Management Tool

Use the J2EE SOAP Adapter

Sample IDoc-XI Scenarios

How To...Custom BADI for rounding off values in SAP BUSINESSOBJECTS Planning and Consolidation, version for SAP NetWeaver.

Implement a virtual InfoProvider with Services

How-to Guide SAP EPM. How To Use Comments. Version 1.00 March Applicable Releases: EPM BPC 5.1 Microsoft & EPM BPC 7 Microsoft

SAP - How-To Guide MDG Custom Object Data Replication How to Configure Data Replication for MDG Custom Objects (Flex Option)

Installation Guide Business Explorer

Working with Select Options in Web Dynpro for ABAP

Optimize the RFC performance for mysap CRM Mobile Sales Version 1.00 April Applicable Releases: SAP CRM Mobile Sales and Service 4.0 and 5.

Preview of Web Services Reliable Messaging in SAP NetWeaver Process Integration 7.1

Building a Composite Business Process from Scratch with SAP NetWeaver BPM Guide 2

SAP NetWeaver 04. Unification Terminology

Value Help in Web Dynpro ABAP - Tutorial.

Backup & Restore with SAP BPC (MS SQL 2000)

How To... Configure Drill Through Functionality

How to... Build a Planning Function that Deletes Comments in BW

Hardware Requirements

Extracting Product Attributes in XML using Web Service

Integrating a Web Service in a Composite Application. SAP Composite Application Framework

Consuming Directory API in ABAP

Simplifying the Capturing, Evaluation, and Communication of Class-Based Exceptions

Best Practices Using KMC Capabilities in an External Facing Portal Version 1.00 October 2006

Transcription:

How-to Guide SAP NetWeaver 04 How To Create Monitor Entries from an update routine Version 1.00 November 2004 Applicable Releases: SAP NetWeaver 04 (Business Warehouse)

Copyright 2004 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, and Informix are trademarks or registered trademarks of IBM Corporation 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.

1 Business Scenario You want to enhance a transactional data load with the data from a master data table, for example, you want to store the person responsible for a cost center in the InfoCube. In the standard data load process, you can check during the upload process whether the master data exists for a certain characteristic, and subsequently define a desired error handling. Yet the existence of the master data, in our case of the cost center, does not guarantee that the person responsible has been maintained in all cases. When for a certain instance of the cost center master data exist, yet no person responsible has been maintained, the update routine should write an entry for the respective cost center to the monitor, notifying the user about the error with a message like Person responsible missing for Cost Center XYZ. 2 The Result The user can check after a data load the monitor entries for this load. If the derivation of the person responsible failed, an entry in the monitor (and the application log) indicates which cost center caused the problem. - 1 -

3 The Step By Step Solution 3.1 Create update routine 1. Create an update rule for your InfoCube. Within the maintenance of the update rules double-click on any key figure, in the example the key figure Amount. Select the characterstic tab strip, choose the characteristic in question (in our case cost center ). Then, press the button for the method in the respective line to show the dialog box Change Source. Chose the icon for Routine, and press Create. Enter a descriptive text for the routine. 2. Enter the source code (see Appendix for source code example). Please note that the field names of the sample coding are not relevant (and will be different than in your own InfoCube and Communication Structure). The main aim of this document is to describe how monitor entries can be created based on a user defined criteria, for example, when the person responsible does not exist for a certain instance of the cost center master data. - 2 -

3. After checking and saving your routine, the system will ask you whether this derivation of the characteristic (per routine) should be transferred to all other key figures. 4. Activate your update rules. - 3 -

3.2 Load data into your InfoCube 1. Schedule an InfoPackage for the data load from your source system into your InfoCube. Any of the update processing options (PSA and subsequent data targets, for instance) can be used. After the data load to the InfoCube, you can check whether the person responsible has been maintained for all occurances of the characteristic cost center that occurred during the load. A. Monitor entry View the monitor for the respective upload or update request. In case of a missing entry for the person responsible, you find a message within the monitor entries. How the system handles the error during the upload process, for instance, skip the currently processed record, cancellation of the upload, etc. depends on the return code set in the update routine, and the error handling option defined in the InfoPackage. A RETURNCODE not equal to zero leads to a skip of the current key figure in process, whereas a value not equal to zero in the variable ABORT leads to a cancellation of the load process (or to the error handling defined in the InfoPackage). - 4 -

B. Application log Press the button for the application log. If you want to restrict only on the entries created for loaded requests, enter the selection as displayed here in this screen shot. - 5 -

4 Appendix Sample source code for the update routine for the characteristic Person responsible : PROGRAM UPDATE_ROUTINE. *$*$ begin of global - insert your declaration only below this line *-* * TABLES:... * DATA:... *$*$ end of global - insert your declaration only before this line *-* FORM compute_key_figure TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring USING COMM_STRUCTURE LIKE /BIC/CS0CO_OM_CCA_1 RECORD_NO LIKE SY-TABIX RECORD_ALL LIKE SY-TABIX SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS CHANGING RESULT LIKE /BI0/V0CCA_C01T-AMOUNT RETURNCODE LIKE SY-SUBRC ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update * *$*$ begin of routine - insert your code only below this line *-* * fill the internal table "MONITOR", to make monitor entries * Check cost center * Hard-coded as an example IF COMM_STRUCTURE-costcenter = '0000003105'. "=> Wrong Cost Center * Create monitor message, 'E' mess in Monitor, others in Appl.log RETURNCODE = 1. MONITOR-MSGID = 'RSM'. MONITOR-MSGTY = 'W'. MONITOR-MSGNO = '799'. MONITOR-MSGV1 = 'Cost Center '. MONITOR-MSGV2 = COMM_STRUCTURE-costcenter. append MONITOR. EXIT. ENDIF. * if the returncode is not equal zero, the result will not be updated RETURNCODE = 0. * if abort is not equal zero, the update process will be canceled ABORT = 0. *$*$ end of routine - insert your code only before this line *-* * ENDFORM. - 6 -

www.sdn.sap.com/irj/sdn/howtoguides - 7 -