Server Extension User s Guide SAP BusinessObjects Planning and Consolidation 10.0, version for the Microsoft platform

Similar documents
Partition Wizard User s Guide SAP BusinessObjects Planning and Consolidation 10.0, version for the Microsoft platform

Visual Business Configuration with SAP TM

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

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

SAP Business One Upgrade Strategy Overview

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

SAP NetWeaver How-To Guide

SAP Business One Upgrade Strategy Overview

Business Add-Ins (BAdIs) for SD Jam Integration Document Version:

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

Authentication of a WS Client Using a SAP Logon Ticket

SAP NetWeaver How-To Guide

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

How To...Configure Integration of CUP with SPM

SAP HANA Authorization (HA2)

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

How to Use Function Keys in Mobile Applications for Handhelds

How to Package and Deploy SAP Business One Extensions for Lightweight Deployment

Using Business Graphics

SAP Workforce Performance Builder 9.5

How to Install SAP Netweaver 2004s ABAP Edition on Your Local PC

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

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

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

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

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

How To Generate XSD Schemas from Existing MDM Repositories

SAP Composite Application Framework. Creating a Content Package Object

How To... Configure Drill Through Functionality

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

What's New in SAP Landscape Transformation Replication Server 2.0 SP15

Simplified Configuration of Single System Update in Maintenance Optimizer

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

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

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

Web Dynpro for ABAP: Tutorial 4 - Display Bookings of Selected Flight

SAP Centralized Electronic Funds Transfer 1.8

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

SAP Mobile Secure Rapiddeployment. Software Requirements

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

What's New in SAP Landscape Transformation Replication Server 2.0 SP13

SAP Workforce Performance Builder 9.5

How To Integrate the TinyMCE JavaScript Content Editor in Web Page Composer

Creating Your First Web Dynpro Application

SAP Workforce Performance Builder

SAP Composite Application Framework. Creating a Callable Object in Group: Miscellaneous

SAP NetWeaver 04 Security Guide. Operating System Security: SAP System Security Under Windows

How to Set Up Data Sources for Crystal Reports Layouts in SAP Business One, Version for SAP HANA

Deleting SAP HANA Delivery Units and Products

SAP NetWeaver How-To Guide. SAP NetWeaver Gateway Virtualization Guide

SAP ME Build Tool 6.1

SAP Enable Now. Desktop Components (Cloud Edition)

Sales Order Inbound via EDI (289)

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

How to Work with Analytical Portal

How to do Breakdown Validation in SAP BPC 7.0 for the SAP NetWeaver Platform

How To Customize the SAP User Interface Using Theme Editor

SAP Landscape Transformation Replication Server

Forwarding Alerts to Alert Management (ALM)

Quick Guide to Implementing SAP Predictive Analytics Content Adoption rapiddeployment

How To Protect your Intellectual Property

Web Dynpro for ABAP: Tutorial 5 Component and Application Configuration

SAP Landscape Transformation for SAP HANA (HA1)

SAP Business One Hardware Requirements Guide

Advanced Input Help - The Object Value Selector (OVS)

Enterprise Portal Logon Page Branding

Software and Delivery Requirements

How to Set Up and Use Electronic Tax Reporting

SAP How-To Guide. Master Data Governance for Material. How To... Adjust MDG Homepage. Applicable Releases: EhP6, MDG 6.1

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

SAP Business One, version for SAP HANA Platform Support Matrix

SAP BW 3.3 April 2004 English. General Ledger Analysis. Business Process Procedure. SAP AG Neurottstr Walldorf Germany

MDM Syndicator Create Flat Syndication File

Security Information for SAP Asset Strategy and Performance Management

SAP Business One Hardware Requirements Guide

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

BW305. SAP Business Warehouse Query Design and Analysis COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

INTERNAL USE ONLY SAP BusinessObjects EPM Add-in for Microsoft Office Support Package 17 / Patch XX Installation Procedure

HA215 SAP HANA Monitoring and Performance Analysis

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

HA301. SAP HANA 2.0 SPS03 - Advanced Modeling COURSE OUTLINE. Course Version: 15 Course Duration:

How To Enable Business Workflow for SAP NetWeaver Gateway 2.0

What s New / Release Notes SAP Strategy Management 10.1

SAP Business One Hardware Requirements Guide

HA100 SAP HANA Introduction

BOID10. SAP BusinessObjects Information Design Tool COURSE OUTLINE. Course Version: 17 Course Duration: 5 Day(s)

Consuming Web Dynpro components in Visual Composer.

xmii UDS Overview and Troubleshooting

Data Validation in Visual Composer for SAP NetWeaver Composition Environment

Diagnostics Agent Installation in Unattended Mode with SWPM 1.0 SP5 for NetWeaver higher than 7.0x

How To... Transport Forum Content Between SAP NetWeaver Systems

Visual Composer - Task Management Application

Automated Java System Post-Copy Configuration Using SAP Landscape Management 3.0, Enterprise Edition

How to Create a New SAPUI5 Development Component

SAP Business One Hardware Requirements Guide

How to Translate a Visual Composer Model Part I

ADM505. Oracle Database Administration COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

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

MDG100 Master Data Governance

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

Transcription:

Server Extension User s Guide SAP BusinessObjects Planning and Consolidation 10.0, version for the Microsoft platform PUBLIC Document Version: 1.1 [September 9, 2016]

Copyright Copyright 2016 SAP SE. 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. 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. 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. Microsoft, Microsoft SQL Server, SQL Server Analysis Services, SQL Server Management Studio are registered trademarks of Microsoft Corporation. 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 SE 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. (C) 2016 SAP SE 2

Contents Icons in Body Text... 4 Typographic Conventions... 4 Document History... 4 Overview... 5 About Server Extensions... 5 SDK... 5 Deployment... 6 Step-by-Step Procedure... 7 Creating a project and referencing the server extension SDK... 7 Adding status messages... 9 Making a result fail intentionally... 10 Deploying your custom server extension... 10 Making a database connection... 10 (C) 2016 SAP SE 3

Icons in Body Text Icon Meaning Caution Example Note Recommendation Syntax Additional icons are used in SAP Library documentation to help you identify different types of information at a glance. For more information, see Help on Help General Information Classes and Information Classes for Business Information Warehouse on the first page of any version of SAP Library. Typographic Conventions Type Style Example text Example text EXAMPLE TEXT Example text Example text <Example text> 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. Emphasized words or phrases in body text, graphic titles, and table titles. Technical names of system objects. These include report names, program names, transaction codes, table names, and key concepts of a programming language when they are surrounded by body text, for example, SELECT and INCLUDE. Output on the screen. This includes file and directory names and their paths, messages, names of variables and options +arguments, source text, and names of installation, upgrade and database tools. Exact user entry. 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. Document History Date Version Description December 21, 2012 1.0 Initial version September 9, 2016 1.1 Changed product name from SAP Business Planning and Consolidation to SAP BusinessObjects Planning and Consolidation. (C) 2016 SAP SE 4

Overview SAP BusinessObjects Planning and Consolidation 10.0, version for the Microsoft platform provides server extensions that you can use to extend the functionality of processing dimensions, modifying models, and optimizing models. The three extensions have two methods - PRE and POST - and they aid in the manipulation of imported member table data and other data based on custom logic. This document provides information on extending standard BusinessObjects Planning and Consolidation functionality that you can include in all Server Extension implementations. About Server Extensions Server-side extensions in SAP BusinessObjects Planning and Consolidation are part of a callbackbased framework with which you develop your own business logic at particular junctions of a standard workflow. SAP BusinessObjects Planning and Consolidation provides a super class and an SDK, while you provide the plug-in logic. Once your codes are registered, SAP BusinessObjects Planning and Consolidation is responsible for their management and execution. Server Extension SDK The SAP BusinessObjects Planning and Consolidation Server Extension SDK is a public DLL that your code needs to reference for the following items: ServerExtension base class All of your server extensions should be derived from this, and it includes the methods shown in the next topic. Data structure and types Parameters of each method and return object Server Extension Methods in SDK There are both PRE and POST methods for each server extension. The following table shows the methods of the server extensions: Function Extension Description All GetOrder This returns the execution order when multiple server extensions are present. Without this extension, ServerExtensionManager would arbitrarily determine the order when the orders are the same. Process Dimension PreDimensionProcess This method is called after the member data has been imported from the client and before executing the dimension processing steps. PostDimensionProcess This method is called after processing the OLAP dimension and before processing the OLAP cube. Modify Model PreModelProcess This method is called after reassigning the SQL index. PostModelProcess This method is called after processing the OLAP cube. Optimize Model PreModelOptimization This method is called before copying the master data. PostModelOptimization This method is called at the end of the optimization function. (C) 2016 SAP SE 5

Parameters of the Server Extension Methods The following table shows the parameters of each server extension method: Extension Name Parameter Type Description PreDimensionProcess string env_name Current environment name. string dimension_name string source_table DimensionProcessOption process_option WorksheetOption worksheet_option Current dimension name. Name of the source member table. Name is PreProcess{dimension}. Indicates the current processing option: 0 = IncrementalProcess 1 = FullProcess Indicates whether processing is performed from the member sheet. PostDimensionProcess string env_name Current environment name. string dimension_name DimensionProcessOption process_option WorksheetOption worksheet_option Current dimension name. Indicates the current processing option: 0 = IncrementalProcess 1 = FullProcess Indicates whether processing is performed from the member sheet. PreModelProcess string env_name Current environment name. string model_name bool process_cube Current model name. Indicates whether the OLAP cube will be processed; options are True or False PostModelProcess string env_name Current environment name. string model_name bool process_cube Current model name. Indicates whether the OLAP cube will be processed; options are True or False PreModelOptimization string env_name Current environment name. string model_name OptimizeModelOption optimize_option Current model name. Indicates the optimization option, such as Full, Incremental, or Lite. PostModelOptimization string env_name Current environment name. string model_name OptimizeModelOption optimize_option Current model name. Indicates the optimization option, such as Full, Incremental, or Lite. Deployment Server extension directory on the file share This is the directory in which you deploy the server extensions you have developed. [FileServer]\Data\Webfolders\AdminTemplates\ServerExtension\ (C) 2016 SAP SE 6

Working directory on the application server SAP BusinessObjects Planning and Consolidation copies the file from the deployment directory on the file server into this local working directory on the application server. [ApplicationServer]\Websrvr\bin\ServerExtension\ Server Extension SDK BPCServerExtensionSDK.dll will be distributed under the Server Extension directory. You must add a reference to this DLL to develop you own server extension. The DLL includes the ServerExtension base class and the data structures that are used as method parameters and return object. Step-by-Step Procedure Creating a project and referencing the server extension SDK You can develop projects to accomplish a custom task. You must develop the custom server extensions.net C# or VB.NET, version 4.0. 1. Run Microsoft Visual Studio 10.0 and create a Class Library type project. (C) 2016 SAP SE 7

2. Right-click on the References tree node and choose Add Reference. 3. Add the BPCServerExtensionSDK.dll. A. On the Browse tab, browse to the [ApplicationServer]\Websrvr\bin\ folder in which the BPCServerExtensionSDK.dll exists. B. Select BPCServerExtensionSDK.dll and choose OK. 4. Add a namespace and inherit your class from the BPCServerExtension. A. Manually add the SAP.BPC.Services.Application namespace manually. This gives you easy access to the BPCServerExtensionSDK and other data structures that are used as method parameters and return object. B. Inherit your class from BPCServerExtension. (C) 2016 SAP SE 8

5. Override methods with the override keyword. In this example, PostDimensionProcess is used. 6. Implement your own custom logic in the derived method. A. Create an instance of ServerExtensionResult that is used for the return object. B. Implement your own logic in the try { } block as shown in line 14 in the example below. C. In the catch { } block, as shown in line 18, set an exception for the SetException property of the return object. Adding status messages You can show your custom messages through the status dialog in the Admin console, which you can do by adding your message with an Add method like the following: (C) 2016 SAP SE 9

Making a result fail intentionally Since you can create your own logic using a server extension, you may want your method to fail according to your custom logic without an exception occurring. To do so, set the Success property of the return object to false. Deploying your custom server extension After creating your custom server extension DLL, copy it to the server extension folder [FileServer]\Data\Webfolders\AdminTemplates\ServerExtension\ on the file share. SAP BusinessObjects Planning and Consolidation does not create the server extension folder by default; you must create it manually on a file share. To apply your changes after copying your DLL to the file share, IISRESET is required of all application servers. Making a database connection SAP BusinessObjects Planning and Consolidation does not provide any connection object for MSSQL or SSAS. If you want to create your own logic against MSSQL or SSAS, you need to make the connection in your custom server extension code. Please be careful to release any connection objects when making a connection to MSSQL or SSAS. Not doing so may impact performance or reliability of your data. (C) 2016 SAP SE 10