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

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

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

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

How to Use Function Keys in Mobile Applications for Handhelds

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

SAP NetWeaver How-To Guide

Simplified Configuration of Single System Update in Maintenance Optimizer

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

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

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

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... Add Sensitive Content into an Area

Install TREX for CAF Version 1.00 March 2006

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

How To...Configure Integration of CUP with SPM

Authentication of a WS Client Using a SAP Logon Ticket

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

What s New / Release Notes SAP Strategy Management 10.1

Do Exception Broadcasting

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

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

SAP NetWeaver How-To Guide

Using Business Graphics

MDM Syndicator Create Flat Syndication File

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

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

configure an anonymous access to KM

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

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

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

How To Generate XSD Schemas from Existing MDM Repositories

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

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

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

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

Configure SSO in an SAP NetWeaver 2004s Dual Stack

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

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

Process Control 2.5 Implementation Checklist

Visual Composer - Task Management Application

Integrate a Forum into a Collaboration Room

How To Configure IDoc Adapters

Consuming Web Dynpro components in Visual Composer.

How To Extend User Details

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

Web Page Composer anonymous user access

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

How To Enable Business Workflow for SAP NetWeaver Gateway 2.0

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

SAP Centralized Electronic Funds Transfer 1.8

Cache Settings in Web Page Composer

How To... Configure Drill Through Functionality

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

How to Browse an Enterprise Services Registry in Visual Composer

Sizing for Guided Procedures, SAP NetWeaver 7.0

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

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

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

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

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

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

Create Partitions in SSAS of BPC Version 1.00 Feb 2009

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

How To Customize the SAP User Interface Using Theme Editor

Data Validation in Visual Composer for SAP NetWeaver Composition Environment

How to Create a New SAPUI5 Development Component

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

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

How To Troubleshoot SSL with BPC Version 1.01 May 2009

Installation Guide Business Explorer

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

Enterprise Portal Logon Page Branding

Building a Tax Calculation Application

Setup an NWDI Track for Composition Environment Developments

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

How to Translate a Visual Composer Model Part I

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

Visual Composer Build Process

Create Monitor Entries from an update routine

Introducing SAP Enterprise Services Explorer for Microsoft.NET

SOA Security Scenarios: WebAS Java, Message Level Security with no Transport Guarantee

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

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

Web Dynpro for ABAP: Tutorial 5 Component and Application Configuration

Visual Composer for NetWeaver CE: Getting Started with a Typical Workflow

SAP NetWeaver 04. Unification Terminology

Create Monitor Entries from a Transformation routine

Forwarding Alerts to Alert Management (ALM)

Extract Archived data from R3

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

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

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

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

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

Creating Your First Web Dynpro Application

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

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

How-to Guide SAP NetWeaver 04. Web Dynpro Themes. Version Applicable Releases: SAP NetWeaver 7.0

R e l ea se 6. 20/

Transcription:

SAP Composite Application Framework Creating an External Service type Callable Object in Guided Procedures 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 About This Document... 1 Business Scenario... 1 General Prerequisites... 2 Approaches to building up our model... 3 Applicable Releases... 3 Disclaimer... 3 The Step By Step Solution... 3 Check or create Endpoint Alias... 4 Create Callable Object in Guided Procedures Design Time... 6

... About This Document This tutorial describes how you create an External Service type Callable Object using Guided Procedures Design Time. Business Scenario The purpose of an External Service type Callable Object is to be able to define a callable object that - references a service available via RFC-enabled function modules from an SAP system NOTE: RFC-enabled function modules are ABAP programs that can be executed from a remote SAP system in a distributed environment. They are created in the ABAP Workbench Function Builder. For example, BAPIs (Business Application Programming Interface) are implemented as RFC-enabled function modules. The Guided Procedures (GP) framework allows you to import any RFC-enabled function module as a callable object and to use it in a business process that you model with GP. In addition, you do not need to modify the implementation of the existing function modules to fit any specific requirements. The framework itself integrates the function modules into the GP environment. After creating the callable object at Design Time, you can make use of it by calling it from an Action object (please see How-To Create an Action in Guided Procedures). As part of a Guided Procedure step, an External Service type Callable Object allows you to execute additional functions or services required to: Pre-fill an interactive form with data Validate the data in an interactive form Perform any kind of background checks The process of importing an RFC-enabled function module into GP comprises the following steps: 1. Configuring an endpoint [2] 2. Exposing a BAPI as a callable object - 1 -

Exposing a BAPI as a Callable Object in Guided Procedures GP Design Time GP Administration GP Runtime Endpoint Definition Define parameters for connection to the SAP system Callable Object Definition Search for the BAPI that you want to expose Define the exception handling mode Test and activate it Attach it to an action, and use it in a process template Callable Object Execution The BAPI is invoked in the background when you execute the callable object. Result Once you have exposed the BAPI as a callable object and activated it, you can attach it to actions and invoke it within a business process. The BAPI is executed in the background and the output is displayed. General Prerequisites CAF GP installed You need an R/3 or ERP System and you need an Endpoint Alias for RFC remote call to be configured to enable a connection to the required R/3 or ERP system. If this has not yet been done, this tutorial will describe the steps ro carry it out. An RFC-enabled function module e.g. ZPREFILL_ADOBEFORM (you need to create it in your own SAP test system) that has 2 input parameters (IN_BEGIN_DATE and IN_END_DATE) and 2 output parameters (OUT_BEGIN_DATE and OUT_END_DATE) with the following code logic: OUT_BEGIN_DATE = sy-datum and OUT_END_DATE = sy-datum In the Administration module of Guided Procedures, an endpoint to the SAP system that contains the RFC-enabled function module - 2 -

Approaches to building up our model You are free to choose either the top-down approach and create the Process, Block and Action and then insert a new callable object; or you can start with the callable object first without having any other model item. o Top-down approach In this case you first create all the Design Time objects (Process, Block, and Action) that will make use of this callable object. For further details on this top-down approach see Error! Reference source not found.. o Bottom-up approach In this case you create the callable object first and insert it into the embedding Design Time objects later. Applicable Releases This tutorial is compatible with the following release Beginning with SAP NetWeaver 2004s SPS06. Disclaimer 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. The Step By Step Solution In the first optional part of the solution we will check and if necessary configure an Endpoint Alias that is required for communicating with the Composite Application Service. (An Endpoint Alias is a communication endpoint between your J2EE Engine and the connected SAP Systems). You can skip this section if you already have an endpoint configured. The second part will guide you through the steps to implement the callable object that wraps the Composite Application Service thus making it capable for integration. - 3 -

1 Check or create Endpoint Alias First you have to ensure that an Endpoint Alias exists for your server, where the CAF Core service that you want to call is available. 1. Open your Enterprise Portal via http://<server>:<port>/irj/portal. Navigate to tab Guided Procedures and to tab Administration. 2. Click on the Configure Endpoints link under SAP System. 3. On this screen choose the Endpoint Alias for RFC Remote Function Call (RFC) from the dropdown list as the Endpoint Alias Type and press the Go. 4. In the result table you can see the list of configured Endpoint Aliases. Here you can Add new aliases, Edit existing aliases, or even Remove them. - 4 -

Check that the appropriate Endpoint Alias for Remote Function Call (RFC) is connected to the relevant R/3 or ERP system. 5. If there is no Endpoint Alias defined for the required R/3 or ERP system then click on the Add. 6. Complete the required entries defining your system and enabling the access to it as shown. 7. Enter an Endpoint Alias Name, in our example it is FastTrack1 8. Choose the Endpoint Alias Type: Endpoint Alias for RFC Remote Function call (RFC) 9. Select Connection Defined by User to define the Connection Mode. 10. Enter the appropriate Client and User. 11. Enter the password for the Security Credentials 12. Select Server Logon to define the Server Mode 13. Enter the appropriate Application Server and System Number 14. Select Off to disable the Security Network Communication (SNC). 15. Enter the Portal Alias for the SAP System that also has first to be maintained in the Portal. 16. Finally, click Test to test the connection. 17. If the Test result is as shown press - 5 -

Save to save the Endpoint Alias for RFC Remote Function call (RFC). 18. You should see the Endpoint Alias for RFC Remote Function call (RFC) named FastTrack_FT1 in the result table. Create Callable Object in Guided Procedures Design Time Open your Enterprise Portal via http://<server>:<port>/irj/portal, navigate to tab Guided Procedures and to tab Design Time. - 6 -

1. On the left of the screen in the You Can section, choose Create Callable Object to open the Callable Object Design Time. - 7 -

2. In the first screen select the type of the callable object: External Service. 3. Enter the basic data for the callable object: Name Description Language Location (Click the Choose button to select the folder in which you want to store it) 4. Click Next. - 8 -

5. Click Choose. 6. The Endpoint Alias Type Endpoint alias type for remote function call (RFC) should be pre-selected. 7. From the available Endpoint Aliases select the one defining the endpoint as the SAP system that contains the required service. - 9 -

8. Click Test to test the endpoint. 9. The information Connection has been tested indicates that the connection works. 10. Click Choose. - 10 -

11. Click the Choose under Service to select the required service from the selected endpoint alias. 12. Enter the function name and click Go to request information from the endpoint (You can use an asterisk * for searching with wild cards). 13. Select the required function name from the result list and click Choose. - 11 -

14. The message that the marked service has been selected is displayed. 15. Click Next. - 12 -

16. Here Guided Procedures displays the list of input parameters available for the external service. Click Next. 17. Guided Procedures displays the list of output parameters for the external service. Click Next. 18. If you selected another function to call, a dialog may be displayed to define error handling. For testing purposes you might simply select No error handling. For further information on error handling please see document [3]. Click Next. - 13 -

19. Click Finish and Open. 20. You can now test the callable object by selecting the Test tab on the bottom pane. 21. Complete the inputparameter and press execute. - 14 -

22. The test result should be displayed as shown. 23. Click Activate ( ) to activate your callable object. - 15 -

- 16 -