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

Similar documents
SAP Composite Application Framework. Creating a Content Package Object

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

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

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

How to Use Function Keys in Mobile Applications for Handhelds

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

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

How To...Configure Integration of CUP with SPM

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

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

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

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

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

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

SAP NetWeaver How-To Guide

Simplified Configuration of Single System Update in Maintenance Optimizer

Do Exception Broadcasting

What s New / Release Notes SAP Strategy Management 10.1

Install TREX for CAF Version 1.00 March 2006

configure an anonymous access to KM

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

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

MDM Syndicator Create Flat Syndication File

How To Generate XSD Schemas from Existing MDM Repositories

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

Authentication of a WS Client Using a SAP Logon Ticket

SAP NetWeaver How-To Guide

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

Using Business Graphics

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

Process Control 2.5 Implementation Checklist

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

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

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

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

Integrate a Forum into a Collaboration Room

Visual Composer - Task Management Application

How To Extend User Details

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

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

Web Page Composer anonymous user access

Create Partitions in SSAS of BPC Version 1.00 Feb 2009

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

Consuming Web Dynpro components in Visual Composer.

Configure SSO in an SAP NetWeaver 2004s Dual Stack

Cache Settings in Web Page Composer

Sizing for Guided Procedures, SAP NetWeaver 7.0

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

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

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

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

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

How to Create a New SAPUI5 Development Component

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

How To... Configure Drill Through Functionality

How To Troubleshoot SSL with BPC Version 1.01 May 2009

How To Customize the SAP User Interface Using Theme Editor

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

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

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

Data Validation in Visual Composer for SAP NetWeaver Composition Environment

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

Installation Guide Business Explorer

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

SAP Centralized Electronic Funds Transfer 1.8

How To Configure IDoc Adapters

How To Enable Business Workflow for SAP NetWeaver Gateway 2.0

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

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

Web Dynpro for ABAP: Tutorial 5 Component and Application Configuration

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

Building a Tax Calculation Application

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

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

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

Extract Archived data from R3

Create Monitor Entries from an update routine

Enterprise Portal Logon Page Branding

Forwarding Alerts to Alert Management (ALM)

How to Translate a Visual Composer Model Part I

How to Browse an Enterprise Services Registry in Visual Composer

How to Work with Analytical Portal

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

Setup an NWDI Track for Composition Environment Developments

Visual Composer Build Process

SAP NetWeaver 04. Unification Terminology

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

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

Create Monitor Entries from a Transformation routine

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

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

Demand Management. Job Processing Guide for SAP DM. Release 6.4

View Time Security for crystalreports.com

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

How to Fast-Switch Integration Scenarios between SAP PI Runtimes Part II: Web Dispatcher

R e l ea se 6. 20/

Send Multiple IDocs Within One XI Message

Creating Your First Web Dynpro Application

Configure Peripheral Drivers with Mobile Infrastructure

Introducing SAP Enterprise Services Explorer for Microsoft.NET

Transcription:

SAP Composite Application Framework Creating a Callable Object in Group: Miscellaneous Version 1.00 July 2006

SAP AG Neurottstraße 16 69190 Walldorf Germany T +49/18 05/34 34 24 F +49/18 05/34 34 20 www.sap.com Copyright 2005 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. 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. 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. 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. 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.

T y p o g r a p h i c C o n v e n t i o n s I c o n s Type Style Example Text Example text EXAMPLE TEXT Example text Example text Represents 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 parameters, 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. <Example text> Variable user entry. Angle brackets indicate that you replace these words and characters with appropriate entries to make entries in the system. EXAMPLE TEXT Keys on the keyboard, for example, F2 or ENTER. Icon Meaning Caution Example Note Recommendation Syntax

Contents Scenario... 1 About This Document... 3 General Prerequisites... 4 Related Documents... 4 Applicable Release... 4 Disclaimer... 4 Approaches to Building the Model... 4 Top-Down Approach... 4 Bottom-Up Approach... 5 The Step-By-Step Solution... 6 Create a Read System Properties Callable Object... 7 Create a Write to System Log Callable Object... 8 Create a Current State Information Callable Object... 9 Create a Send an E-mail in Background Callable Object... 10 Create a Send an Notification Callable Object... 11 Create a Jump Between Callable Objects Callable Object... 12 Finishing Callable Object Creation... 12

Scenario Guided Procedures (GP) provides a set of callable object implementations, which you can use by simply configuring them in the GP Design Time. There are six types of callable objects in the Miscellaneous group. The table below shows the types with a short description of their functionality, parameters and special configuration aspects. Callable Object Read System Properties Description Type: Java callable object for background execution Functionality: Returns a list of system properties Class: com.sap.caf.eu.gp.callobj.system.systempropertiesco Container: caf~eu~gp~actions Output parameters: 1. sysprops System properties are returned in this parameter Configuration parameters: 1. prefix - Returns all properties that start with this property prefix Result states: 1. COMPLETED Reached on successful completion Write to System Log Type: Java callable object for background execution Functionality: Writes information text to the system log Class: com.sap.caf.eu.gp.callobj.system.systemlogco Container: caf~eu~gp~actions Input parameters: 1. text Text to be added to the system log Configuration parameters: 1. severity Level of severity. It can be one of the following: Information message Warning message Error message 2. app_prefix Prefix for the information text. This helps to identify the log entries of the various applications. Result states: COMPLETED Reached on successful completion 1

Current State Information (Date and Time, for example) Send an E-Mail in Background Type: Java callable object for background execution Functionality: Returns information about the current system state (date, time, language code) Class: com.sap.caf.eu.gp.callobj.misc.currentstateinfoco Container: caf~eu~gp~actions Output parameters: CURRENT_DATE - Current date CURRENT_TIME - Current time CURRENT_DATETIME - Time stamp, consisting of current date and time CURRENT_DATE_TEXT- Current date, available as string CURRENT_TIME_TEXT - Current time, available as string CURRENT_DATETIME_TEXT - Time stamp, consisting of current date and time, available as string CURRENT_TIMESTAMP_RFC1123 - Time stamp (RFC 1123), available as string CURRENT_TIMESTAMP_RFC850 - Time stamp (RFC 850), available as string CURRENT_TIMESTAMP_ANSI - Time stamp (ANSI), available as string CURRENT_TIMESTAMP_R3 - Time stamp (R/3 format), available as string CURRENT_TIMESTAMP_IS8601 - Time stamp (ISO 8601), available as string LANG_SYS_FALLBACK - System fallback language code in lowercase LANG_SYS_FALLBACK_UCASE - System fallback language code in uppercase Result states: COMPLETED Reached on successful completion. Type: Java callable object for background execution Functionality: Sends an e-mail to a specified address Class: com.sap.caf.eu.gp.callobj.mail.sendmailco Container: caf~eu~gp~actions Input parameters: email_adress The recipient address for the e-mail to be sent You can also add any input parameters. Result states: No result state is set 2

Send Notification Jump Between Callable Objects Type: Java callable object for background execution Functionality: Sends a notification e-mail to specified process contributors Class: com.sap.caf.eu.gp.callobj.mail.notificationco Container: caf~eu~gp~actions Input parameters: email_adress The recipient address for the e-mail to be sent You can also add any input parameters. Configuration parameters: MIME - Technical name of the e-mail template to send. You can choose the same options as in Visual Approval. CONTRIBUTOR - Process contributors who are going to receive notification. You can choose one of the following: Result states: Current processors The members of the current process role receive a message (default) Initiator Only the initiator receives a message Owner Only the owner receives a message Overseer Everyone who has an overseer role receives a message Administrator Only the administrator receives a message All Contributors Everyone who has already contributed to the process receives a message E-mail Address passed as Context Parameter The message is delivered to the address specified in the email_address input parameter. COMPLETED Reached on successful completion. Type: Java callable object for background execution Functionality: Used to model the process flow. At runtime, you can define targets for the result states defined by the object. Class: com.sap.caf.eu.gp.callobj.misc.jumpco Container: caf~eu~gp~actions Result states: 1. JUMP_TARGET You can define a target for this result state; when it is reached, the process flow continues with the specified action. This result state is set when the object is executed. 2. EMPTY_TARGET This result state remains open to enable exit from the process flow in case of errors. About This Document This tutorial describes how to create the six types of callable objects in the Miscellaneous group. 3

General Prerequisites Related Documents [1]. Overview GP Designtime [2]. < link - Editing SAP System Properties http://help.sap.com/saphelp_nw2004s/helpdata/en/ea/d4df3df2ad685ae10 000000a11405a/content.htm > [3]. <link Setting Up Mail Templates http://help.sap.com/saphelp_nw2004s/helpdata/en/ec/591342bc45dd2ce1 0000000a1550b0/content.htm > Applicable Release This tutorial is compatible with the following releases Beginning with SAP NetWeaver 04s SPS6. Disclaimer Any software coding and/or code lines / strings ("Code") included in this documentation are only examples the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or 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 damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or grossly negligent. Approaches to Building the Model You can choose the top-down approach to create the process, block, and action and then insert a new callable object; alternatively you can use the bottom-up approach to start with the callable object without having any other model item. Top-Down Approach In this case you create all design time objects (process, block, action) that will make use of this callable object. For further details on this top-down approach see [1]. 4

1. Choose (Create New) to embed a new callable object in the existing Action. Bottom-Up Approach In this case you create the callable object first and insert it in the actions and blocks you create later. 5

The Step-By-Step Solution To start SAP Enterprise Portal, enter http://<server>:<port>/irj/portal. Navigate to tab Guided Procedures and choose Design Time. You reach the callable object creation screen with either approach. Now select the type of callable object you wish to create. The following sections describe different callable objects in the group Miscellaneous. 2. In the contextual panel (You Can), choose Create Callable Object to start the Callable Object design time. 6

Create a Read System Properties Callable Object With this callable object you can query the values of WAS system properties. 3. Choose Miscellaneous Read System Properties from the Type list. Enter the following data: Name, for example Read System Properties CO Description Language Define a location for your callable object (Folder) 4. The output parameter is a structure that contains the system properties. 5. Enter the prefix of the system property to be retrieved and choose Next. For further information on available system properties see [2]. Go to step 2.10 to finish the tutorial. 7

Create a Write to System Log Callable Object This callable object writes a prefixed string to the log of the WAS. 1. Choose Miscellaneous Write to System Log from the Type list. Enter the following data: Name, for example Write to System Log CO Description Language Define a location for the callable object (Folder) 2. The pre-defined input parameter Log text contains the text to be logged when the callable object is called. Click Next. 3. Define the severity level of the log entry. You can also define a prefix for each log entry. Go to step 2.10 to finish the tutorial. 8

Create a Current State Information Callable Object The current state information callable object returns information about the current system state (date, time, language code). 1. Choose Miscellaneous Current State Information from the Type list. Enter the following data: Name, for example Current State Information CO Description Language Define a location for the callable object (Folder) 2. The output parameters of the callable object are displayed. Go to step 2.10 to finish the tutorial. 9

Create a Send an E-mail in Background Callable Object This callable object is for testing purposes. It sends a test e-mail message to the given e- mail address. 3. Choose Miscellaneous Send an e-mail in background from the Type list. Enter the following data: Name, for example Send an e-mail in background CO Description Language Define a location for the callable object (Folder) 4. The only input parameter is the e- mail address of the recipient. Go to step 2.10 to finish the tutorial. 10

Create a Send an Notification Callable Object This callable object sends a notification by e-mail to a specified recipient. It uses a predefined e-mail template. 5. Choose Miscellaneous Send an notification from the Type list. Enter the following data: Name, for example Send an notification CO Description Language Define a location for the callable object (Folder) 6. Input parameter email_address specifies the recipient of the e-mail sent by this callable object. You can define further input parameters (with Insert New ), which can be referenced later from the e-mail template. For further information on e-mail templates see document [3]. 7. Now select the e-mail template to be used and the mode of recipient determination. To use the address provided by the input parameter email_address, select E-Mail Address passed as Context Parameter. Go to step 2.10 to finish the tutorial. 11

Create a Jump Between Callable Objects Callable Object You can use this callable object to model the process flow. At runtime, you can define targets for the result states defined by the object. 1. Choose Miscellaneous Jump between callable objects from the Type list. Enter the following data: Name, for example Jump Between Callable Objects CO Description Language Define a location for the callable object (Folder) Go to step 2.10 to finish the tutorial. Finishing Callable Object Creation 1. Your callable object is now complete. Choose Finish and Open to save and open it. If you started the tutorial using the top-down approach, choose Finish. 2. By choosing Finish and Open you open the callable object design time.. Click the Test tab at the bottom of the page. 12

3. Enter your values for the input parameters of the callable object. Choose Execute. 4. There is no user interface for the Callable Object Execution step, as all six COs are Java classes that are executed in the background. 5. The callable object has been executed and the test results are displayed here. If execution was successful, the Result details are displayed. This is the result state described in the table in section Scenario. The Output Parameters are also displayed. 6. You can activate your callable object by choosing (Activate) at the top of the page or implicitly by activating the process in which this service method is used. 13

14