Creating Web Service from Function Modules/BAPIs & Integrating with SAP Interactive Forms

Similar documents
Exposing RFC as Web Service and Consuming Web Service in Interactive Forms in ABAP

Configuration of Enterprise Services using SICF and SOA Manager

Creating Transaction and Screen Variants

Consuming Services in SOA Manager

Step by Step Guide for Language Translation Tool

Web Dynpro ABAP: ALV and Table in Popup Window

Step by Step Guide How to Copy Flat File from Other Application Server to BI and Load through Info Package

ABAP Debugging Tips and Tricks

SAP BW - Excel Pivot Chart and Pivot Table report (Excel)

Web Dynpro: Multiple ALV Grids and Layouts in ALV

BW Performance Monitoring

ABAP Proxy Interfacing

Configuring HTTPs Connection in SAP PI 7.10

How to Generate Stack Xml for Ehp4 and Above Upgrade

Salesforce.com Integration Using SAP PI: A Case Study

Sending an Image File Through XI in a File-to-Mail Scenario

How to Assign Transport Request for Language Translation?

Step by Step guide of Report-to- Report Interface in BW Reporting

Deleting the User Personalization done on Enterprise Portal

SAP CRM Campaign Automation

LSMW: Upload Master Data using Batch Input Recording

Standard SAP Configuration of SMS through HTTP with Third Party SMS Gateway

Creating Content Using SO10 Objects and Text Symbols

Restricting Search Operators in any Search View

How to Integrate CRM 2007 WebClient UI with SAP NetWeaver Portal

SAP CRM System 6.0/7.0. For more information, visit the Customer Relationship Management homepage

ALE Settings, for Communication between a BW System and an SAP System

How to Modify, Create and Delete Table Entries from SE16

A Step-by-Step guide on SMTP Configuration and File to Mail Scenario Using Process Integration Scenario in PI 7.1

Understanding BEx Query Designer: Part-2 Structures, Selections and Formulas

Salesforce Integration Using PI: How to Perform Query and Other DML Operations Using the Enterprise WSDL

Transfer of GL Master from Source SAP System to a Target SAP System through IDOCS

Step by Step Procedure to Block and Debug a CIF Queue Flowing from R/3 to APO System

SAP FI - Automatic Payment Program (Configuration and Run)

Reverse Transport Mechanism in SAP BI

Display Options in Transaction SE16

Order Split Usage in Production Orders

ABAP How To on SQL Trace Analysis

Embedding Crystal Reports inside ECC ALV Reports

Creating Mobile Applications on Top of SAP, Part 1

SAP NetWeaver Developer Studio 7.30 Installation Guide

Tutorial - Creating Pop Up Window Using New Features in WebDynpro Java CE 7.1 Ehp1

SAP CRM 7.0 E2C Setup: CRM via Toolset

Using Internet or Windows Explorer to Upload Your Site

Table of Contents. Passing Data across Components through Component Controller between Two Value Nodes

Converting and Exporting Data in XML Format

Forgot or Lock "Administrator or J2EE_ADMIN" Password

Adobe Document Service Configuration and Troubleshooting Guide

Step by Step Guide to Archiving and Deleting of XML Messages in SAP NetWeaver PI

How to Create an ecatt?

SDN Community Contribution

Creation and Configuration of Business Partners in SAP CRM

Quick Viewer: SAP Report Generating Tool

Step by Step Guide to Extract Batch Master Data via Generic and Classification Datasource to BW

SAP CRM 7.0 for Newbies: (Part 1) Simple BOL Object Creation for CRM Webclient UI

SAP CRM Middleware Configurations

Using PI to Exchange PGP Encrypted Files in a B2B Scenario

Step by Step Procedure to Create Broadcasters, to Schedule and to Enhance of SAP- BI Queries from Query Designer

Integration of SAP R/3 with BO Universe Using Data Federator Connector

Table of Content. SAP Query creation and transport Procedure in ECC6

Create Automatic Mail Notification/ Alert for Process Chain Monitoring

Business Process Management IBM Business Process Manager V7.5

Process Controlled Workflow SRM 7.0 (Using BRF)

1. Right click using your mouse on the desktop and select New Shortcut.

Web Application Designer for Beginners

Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

Direct Subcontracting Process (SAP SD & MM)

Release Strategy Enhancement in Purchase Order

Guidelines for Effective Data Migration

Working with the ERP Integration Service of EMC Documentum Process Services for SAP

SAP BW 7.3: Exploring Semantic Partitioning

Creating New Unit of Measure in SAP BW

Deleting the Requests from the PSA and Change Log Tables in Business Intelligence

Different Types of Alerts for Process Chains. Table of Content

Splitting the Custom Container & Display more than one ALV

Scenario... 3 Step-by-Step Solution Virtual Infocube... 4 Function Module (Virtual InfoCube)... 5 Infocube Data Display... 7

Livezilla How to Install on Shared Hosting By: Jon Manning

ESS- Performance Management System Configuration on Portal for ECC 6 Ehp4

Solution Manager Service Desk an End-to-End Helpdesk Solution

How to Schedule Report Execution and Mailing

Multi Provider Creation Based on Sales and Planning Info Cubes

Portal Instructions for Mac

Thirtyseven4 Endpoint Security (EPS) Upgrading Instructions

Creating and Scheduling Publications for Dynamic Recipients on SAP Business Objects Enterprise

SSL VPN Service. To get started using the NASA IV&V/WVU SSL VPN service, you must verify that you meet all required criteria specified here:

Enhancing Performance Management System (Performance Appraisal) with EHP4

How to install and use the File Sharing Outlook Plugin

Deploying Crystal Reports on Top of a SAP BI Query

Implementing TinyMCE JavaScript HTML Editor for Web Page Composer (WPC) within the SAP Portal

Integration of SAP Netweaver User Management with LDAP

Data Extraction and Retraction in BPC-BI

Understanding BW Non Cumulative Concept as Applicable in Inventory Management Data Model

Data Flow from LBWQ/SMQ1 to RSA7 in ECC and Delta Extraction in BI

SAP BW - Generic Datasource Function Module (Multiple Delta Fields)

XSLT Mapping in SAP PI 7.1

How to Implement the X.509 Certificate Based Single Sign-On Solution with SAP Netweaver Single Sign-On

Windows Live Mail Setup Guide

How-To Guide SAP Cloud for Customer Document Version: How to Configure SAP HCI basic authentication for SAP Cloud for Customer

Workflow Troubleshooting and Monitoring in SAP ECC 6.0

Transcription:

Creating Web Service from Function Modules/BAPIs & Integrating with SAP Interactive Forms Applies to: ECC 6.0, SAP Interactive forms by Adobe. Summary This document states how to create Web Service from an existing Function Module or BAPI and how to use that for any business scenario using SAP Interactive Forms by Adobe. Form created by this method can be used standalone without portal, to submit data to SAP database within Organization s Intranet. Author: Vaibhav Tiwari Company: Wipro Technologies Created on: 17 December 2009 Author Bio Vaibhav Tiwari is working in Wipro Technologies, India from past 3.1 years. Started career as an ABAP developer. From past two years working on WD ABAP, WD Java and SAP Interactive forms by Adobe. 2009 SAP AG 1

Table of Contents Introduction... 3 Creating Web Service based on Function Module/BAPI... 3 Configurations through SOAMANAGER... 7 Designing the Interactive Form... 9 Deploy and Run the Form... 13 Copyright... Error! Bookmark not defined. 2009 SAP AG 2

Introduction In this document we will see how we can create web service from an existing function module or BAPI and how we can use it in a SAP Interactive form based on some Business Scenario. Creating Web Service Configurations through SOAMANAGER. Downloading web service in a WSDL file. Using this WSDL file in Interactive form to run a business scenario. Creating Web Service based on Function Module/BAPI Go to transaction SE37. Open the function module you want to use as web service. Go to Utilities->More Utilities->Create Web Service->From the Function Module. 2009 SAP AG 3

It will open the wizard. Give the service definition name prefix with Z or Y. Give Description also. In Choose Endpoint, select the check box for mapping. 2009 SAP AG 4

Here you can choose the Security/Authentication level for the web service. Choose according as requirement. Choose local Object or Give any package name according to requirement. Click on continue. 2009 SAP AG 5

Click complete. Now go to T-code SE80. There you can see the Web service you have created under you package name-> enterprise services folder. 2009 SAP AG 6

Configurations through SOAMANAGER Now open Transaction Code SOAMANAGER, it will open the browser window as below: Choose Business Administration Tab. Search your web service giving the name, choosing service by as Service as below: 2009 SAP AG 7

Select the Web service and click on Appy Selection Button. It will open the details as below: Click on Open WSDL Document for selected Binding. It will open the following XML code in the browser, save this as a WSDL file on the desktop. Once you have got the WSDL file, you can use it to create an interactive form. 2009 SAP AG 8

Designing the Interactive Form Open the designer. In the data view choose New Data Connection as below: In the option pop-up choose WSDL File. Click next. 2009 SAP AG 9

Here choose the WSDL file from desktop. Choose the functionality of web service as below, and click finish. 2009 SAP AG 10

Now you will be able to see the Data Connection created as below, with all the fields of Function Module. You will be able to see some fields under <FunctionModuleName>Request and some fields <FunctionModuleName>Response. One is for import parameters and one is to receive output from Web service. So to pass values use request fields and to get values use response fields. This data connection will also provide an execute button in Data View. That is the action button to call the web service. So you can drag and drop the fields and this button on the form layout to design a form. 2009 SAP AG 11

Design the form as per the requirement with all required fields For action button you can see a URL is present as shown in figure below and for binding of a field you can see default binding is Normal but in Import/Export Bindings its showing the binding from Data connection we have created. 2009 SAP AG 12

Deploy and Run the Form Once the form is designed deploy it using any WD Java or WD ABAP application. From the deployed application you can download this form and it can be used to call the web service within the organization s intranet. To test the form fill in the required entries and lick on submit button. It will ask you to allow for calling that web service URL. 2009 SAP AG 13

Click on allow and give the userid and password for you SAP R/3 server into which your web service and function module are residing. It will create the business partner as we are using web service for this scenario. Similarly you can create any scenario specific web service and call them into your forms. 2009 SAP AG 14

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2009 SAP AG 15