BAPI Execution in offline Adobe Form

Similar documents
How to Reference External JAR Files in Web Dynpro DC in SAP NW Portal 7.3

Integration of Web Dynpro for ABAP Application in Microsoft Share Point Portal

POWL: Infoset Generation with Web Dynpro ABAP

Dialog Windows in WebDynpro ABAP Applications

Creating, Configuring and Testing a Web Service Based on a Function Module

Template Designer: Create Automatic PDF Documents for Attachment or Print Purpose

Add /Remove Links on ESS Home Page in Business Package 1.5

Table Row Popup in Web Dynpro Component

Fetching User Details from the Portal and Displaying it in Web Dynpro with Authentication in the Portal

Internationalization in WebDynpro ABAP Applications

Creating Rules in Process Composer and using them in Process

Creating Multiple Methods/Operations and Exposing BAPI as a Webservice

Easy Lookup in Process Integration 7.1

Extracting Missing Fields of Data Source Which Are Present In Their Extract Structure

Material Master Archiving in Simple Method

Web Dynpro ABAP: Changing ALV Contents and Saving in Database

Material Listing and Exclusion

Graphical Mapping Technique in SAP NetWeaver Process Integration

Web Dynpro ABAP: Dynamic Table

Limitation in BAPI Scheduling Agreement (SA) Create or Change

Custom Password Reset Tool in SAP Enterprise Portal Using Web Dynpro for Java

Freely Programmed Help- Web Dynpro

Linking Documents with Web Templates

Using Radio Buttons in Web Template

Web Dynpro: Coloring Table Conditionally

MDM Syndicator: Custom Items Tab

Dynamically Enable / Disable Fields in Table Maintenance Generator

How to Create Top of List and End of List of the ALV Output in Web Dynpro for ABAP

How to Integrate SAP xmii Services with Web Dynpro Java

How to use Boolean Operations in the Formula as Subsidiary for IF Condition

Upload Image file from system in Web dynpro view

Universal Worklist - Delta Pull Configuration

Step By Step Procedure to Implement Soap to JDBC Scenario

Standalone BW System Refresh

Adding Files as Attachments to SAP Interactive Forms in the Java Environment

Changing the Source System Assignments in SAP BW Objects without Affecting the Data Modeling

SDN Community Contribution

SUP: Personalization Keys and Synchronize Parameter

Different Types of iviews in Enterprise Portal 7.0

Federated Portal for Composite Environment 7.1

Displaying SAP Transaction as Internet Application in Portal

How to Create and Schedule Publications from Crystal Reports

Financial Statement Version into PDF Reader

Config Tool Activities

SAP Biller Direct Step by Step Configuration Guide

How to Default Variant Created for Report Developed In Report Painter/Writer

How to Create Business Graphics in Web Dynpro for ABAP

Terminating SSL on SAP Web Dispatcher

MDM Import Manager - Taxonomy Data (Attribute Text Values) Part 3

Data Extraction & DS Enhancement in SAP BI Step by Step

Solution to the Challenges in Pivoting

How to Download Multiple Files in ZIP using WebDynpro Java

Recreating BIA Indexes to Address the Growth of Fact Index Table

Creation of Key Figures with Higher Decimal Place Precision

E-Sourcing System Copy [System refresh from Production to existing Development]

Creation of Alert Data Service VC model for the BI query exception using Information Broadcasting

Information Broadcasting Part 3 Scheduling the First Report

Step By Step: the Process of Selective Deletion from a DSO

Creating Custom SU01 Transaction Code with Display and Password Reset Buttons

How to Configure User Status in mysap SRM

Database Statistics During ODS Activation

Totals in Adobe forms

SMT (Service Mapping Tool)

DB Connect with Delta Mechanism

Purpose of Goods Receipt Message indicator in Purchase Orders

Table Properties and Table Popin

Step by Step Procedure for DSO Creation

How to Create and Execute Dynamic Operating System Scripts With XI

Step-By-Step guide to Virtual InfoCube Implementation

SDN Community Contribution

Data Flow During Different Update Mode in LO Cockpit

About ITAB Duplicate_Key (SAP lrsaods) Runtime Error

Common Queries/Errors while working with Adobe Print PDF Forms

SDN Community Contribution

BPM Multi Line Container in Integration Process

Working with Tabstrip in Webdynpro for ABAP

This article explains the steps to create a Move-in letter using Print Workbench and SAPScripts.

Web Dynpro Interactive Forms Data Transfer and Scripting

Open Text DocuLink Configuration - To Access Documents which are Archived using SAP

Cut Over Activities Specific for LIS* Data Sources

Step by Step Method for File Archival in BW

ios Ad Hoc Provisioning Quick Guide

How to Create View on Different Tables and Load Data through Generic Datasource based on that View

Step by Step Guide How to Use BI Queries in Visual Composer

How to Integrate Web Dynpro ABAP in Portal and Capture Portal Logon User Name

ABAP HR: Standard Info Type Enhancement

Loading the Data for Time Dependent Hierarchy in SAP BI

List of Values in BusinessObjects Web Intelligence Prompts

Federated Portal Network Remote Role Assignment Step-by- Step Configuration

ecatt Part 6 System Data Container

Currency Translation in SAP BI Step by step Guide

Replacement Path: Explained with an Illustrated Example

A Step-by-Step Guide on IDoc-ALE between Two SAP Servers

How to Display Traffic Lights for Exceptions in BI Web Reports

Triggering the Process Chains at Particular Date using Events

Message Prioritization in Advanced Adapter Engine

How to Upload a File into the Knowledge Management (KM) Repository using KM API.

ALV with Dynamic Structure in Web DynPro

Transfer Material Attributes (Material Type) from R/3 to SAP GRC Global Trade Services (GTS)

Explore to the Update Tab of Data Transfer Process in SAP BI 7.0

Transcription:

BAPI Execution in offline Adobe Form Applies to: Adobe form, Web dynpro JAVA, SAP ECC. For more information, visit the Web Dynpro Java homepage. Summary This article contains step by step description for executing BAPI in offline adobe forms starting with creation of web service in backend system followed byadobe form creation executing the web service. Author: Namrata Dixit Company: CapGemini Created on: 15 March 2011 Author Bio Namrata Dixit is currently working with CapGemini as a Netweaver Portal consultant. She has 4.8 years of experience in SAP Enterprise portal. Her skill sets include CE BPM, GP, MDM, Adobe Forms, KM, Web Dynpro JAVA and UWL. 2011 SAP AG 1

Table of Contents Executing BAPI in offline Adobe Form... 3 Creating Webservice for BAPI in ECC... 3 Creating Interactive form for Web service execution... 8 Related Content... 12 Disclaimer and Liability Notice... 13 2011 SAP AG 2

Executing BAPI in offline Adobe Form One of an important scenario that can be implemented in offline adobe form is the execution of BAPI. In this scenario, an adobe form can be stored locally on file system, values can be entered and on click of a button BAPI can be executed. This approach offers advantages : a. Explicit login to SAP system not required for BAPI execution b. login to Portal not required for any custom application developed for BAPI execution c. Form can be saved on the local file system, printed, archived etc. d. No training required for this approach, if the user is aware of the request structure for BAPI execution. Below are the two steps required for executing BAPI on an offline adobe form 1. Creating Web Service for BAPI in ECC 2. Developing Interactive form which consumes this webservice. This article will explain both the steps in details with relevant screenshot:- Creating Webservice for BAPI in ECC a. Login to backend system with SAP UserID/Passwd. b. Run Transaction se37 and select the desired Function module for which you need to create Webservice. 2011 SAP AG 3

c. Enter the Webservice name and description d. The function module name will get populated automatically. 2011 SAP AG 4

e. In the next step we set the authorization profile for web service. Here in this case I have selected authentication with user and password. This suggests that while executing the web service from adobe form, it will ask user to enter UserID/Password for execution. The different profiles that we can set for the web service are shown below. Depending on your business scenario, set the security level for the web service. 2011 SAP AG 5

f. Enter the package name used for transport. Here I have set it as a local object g. Web Service creation is completed 2011 SAP AG 6

h. To check the web service and the endpoints, run transaction SOAMANAGER. Go to business Administration -> Web service administration i. Search for your newly created web service with the help of search pattern. j. Click on the link Open WSDL Document for selected binding. A new Internet explorer will open with the WSDL document binding file. This WSDL will be needed for creating the webservice in NWDS. You can also store the WSDL and import it while creating Data Connection in NWDS. Till this step we are done with Webservice creation and we have WSDL needed to import in NWDS for its execution. 2011 SAP AG 7

Creating Interactive form for Web service execution a. Create Webdynpro project, embed a view and add Interactive Form as UI Element. Right click on Interactive Form UI element and click on Edit. b. The interactive form opens as shown below. We will now create new Data Connection that will import the WSDL for execution. Click on Edit -> New Data connection c. Enter the desired DataConnection name. d. Enter the WSDL URL mentioned in Step j of previous section. 2011 SAP AG 8

e. Click on the operation name and finish. f. Once the WSDL is imported, you will view the BAPI structure in the Data view of the form as shown below 2011 SAP AG 9

g. Drag the fields from the Data view to the layout. Also drag the Button that will be execute the web service. h. On click event of the button on the form, write the below lines of code. var curl = "http://xyz:8000/sap/bc/srt/wsdl/bndg_4d76fc48349e136ee1000000ac122492/wsdl11/alli none/ws_policy/document?sap-client=100"; var service = SOAP.connect(cURL); xfa.connectionset.dataconnection.execute(0); i. Save the form on the local file system. Enter all the details on the form and click on the web service button. 2011 SAP AG 10

j. During web service creation since we selected profile as Authentication with user and password, it will ask for login credentials as shown below. k. Here by this web service execution, a new record will be created in Supplier table with entered Supplier Name as testabc. 2011 SAP AG 11

Related Content SAP Interactive forms by Adobe for off line processing in java Adobe Document Services Configuration Guide For more information, visit the Web Dynpro Java homepage. 2011 SAP AG 12

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. 2011 SAP AG 13