How to Call RFC from Web Dynpro Application



Similar documents
Configuration of Enterprise Services using SICF and SOA Manager

Creating Mobile Applications on Top of SAP, Part 1

Tutorial Build a simple IBM Rational Publishing Engine (RPE) template for IBM Rational DOORS

SAP NetWeaver Developer Studio 7.30 Installation Guide

Web Dynpro: Multiple ALV Grids and Layouts in ALV

Business Scenario Using GP/Web Dynpro with Back and Forth 3 Level Process and Dynamic Approvers in a Loop

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

Setup Guide Central Monitoring of SAP NetWeaver Proces Integration 7.3 with SAP Solution Manager 7.1. Active Global Support February 2011

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

BI 7.0 and EP 7.0 Integration using Template Installer

How To... Use SOA Configuration to Call RFCs and Web Services from within SAP NetWeaver BPM

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

Step-by-Step guide for SSO from MS Sharepoint 2010 to SAP EP 7.0x

Account Create for Outlook Express

Using Windows Task Scheduler instead of the Backup Express Scheduler

Work with XI 3.0 Java Proxies

StreamServe Persuasion SP4 StreamServe Connect for SAP - Business Processes

Instructions for Configuring a SAS Metadata Server for Use with JMP Clinical

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

Kentico CMS 7.0 User s Guide. User s Guide. Kentico CMS

SAP NetWeaver BPM Tutorial for Beginners: My Name and Age BPM Tutorial

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

SQL Server 2005: Report Builder

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

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

How to Integrate CRM 2007 WebClient UI with SAP NetWeaver Portal

Microsoft Expression Web

Microsoft Business Intelligence 2012 Single Server Install Guide

Installing Remote Desktop Connection

SAP NetWeaver MDM 5.5 SP3 SAP Portal iviews Installation & Configuration. Ron Hendrickx SAP NetWeaver RIG Americas Foundation Team

The software shall provide the necessary tools to allow a user to create a Dashboard based on the queries created.

Deleting the User Personalization done on Enterprise Portal

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

Adobe Document Service Configuration and Troubleshooting Guide

From Data Modeling to Data Dictionary Written Date : January 20, 2014

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

Backup of data residing on Open-E Data Storage Software with Backup Exec

enter the administrator user name and password for that domain.

IBM Business Monitor V8.0 Global monitoring context lab

Building an Agile PLM Web Application with JDeveloper and Agile 93 Web Services

ABAP Debugging Tips and Tricks

Introduction. Before you begin. Installing efax from our CD-ROM. Installing efax after downloading from the internet

IBM Case Manager Solution Assistant using admin client for Case Manager

StreamServe Persuasion SP5 Control Center

Tutorial: Mobile Business Object Development. SAP Mobile Platform 2.3 SP02

SAS Marketing Automation 5.1. User s Guide

Running a Budget Position Report for a Department

Web Dynpro ABAP: ALV and Table in Popup Window

Database Studio is the new tool to administrate SAP MaxDB database instances as of version 7.5.

Kentico CMS 5.5 User s Guide

Using TLS Encryption with Microsoft Outlook 2007

Outlook Express. Make Changes in Red: Open up Outlook Express. From the Menu Bar. Tools to Accounts - Click on. User Information

Tutorial: Mobile Business Object Development. Sybase Unwired Platform 2.2 SP02

Installing LearningBay Enterprise Part 2

EMC Documentum Business Process Suite

Configuring Network Load Balancing with Cerberus FTP Server

How To Integrate SAP Business Data Into SharePoint 2010 Using Business Connectivity Services And LINQ to SAP

Click on various options: Publications by Wizard Publications by Design Blank Publication

Kentico CMS 7.0 Intranet Administrator's Guide

Configuration Manager

Collaboration Technology Support Center Microsoft Collaboration Brief

How to Create an ecatt?

For paid computer support call

Information Technology Solutions

Cloud Services ADM. Agent Deployment Guide

Tutorial: BlackBerry Object API Application Development. Sybase Unwired Platform 2.2 SP04

Adobe Digital Signatures in Adobe Acrobat X Pro

SAP Web SAP Logging & Tracing API. Jeff Gebo SAP Labs, LLC.

SmartConnect User Credentials 2012

PCVITA Express Migrator for SharePoint(Exchange Public Folder) Table of Contents

Introduction. There are several bits of information that must be moved:

Configuring the SST DeviceNet OPC Server

Avalanche Site Edition

IBM Operational Decision Manager Version 8 Release 5. Getting Started with Business Rules

How to Configure Microsoft System Operation Manager to Monitor Active Directory, Group Policy and Exchange Changes Using NetWrix Active Directory

SAP NetWeaver Identity Management Identity Services Configuration Guide

SAP Web Application Server 6.30: Learning Map for Development Consultants

To configure Outlook Express for your InfoMetrics address:

Using DBMoto 7 in a Microsoft Windows Cluster

Installing and Configuring vcloud Connector

WebSphere Business Monitor V7.0 Business space dashboards

Deploying Physical Solutions to InfoSphere Master Data Management Server Advanced Edition v11

Tutorial: Mobile Business Object Development. SAP Mobile Platform 2.3

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

Using Microsoft Expression Web to Upload Your Site

0651 Installing PointCentral 8.0 For the First Time

How To Build Web Applications Using MDM Web Dynpro Components

WebSphere Business Monitor V6.2 Business space dashboards

Seamless and Secure Access (SSA) Manual Configuration Guide for Windows Mobile 6.1

Table of Contents. 1. Content Approval...1 EVALUATION COPY

Creating Transaction and Screen Variants

Oracle Fusion Middleware

College of Continuing Education Video Production Room

owncloud Configuration and Usage Guide

NSi Mobile Installation Guide. Version 6.2

How to configure the DBxtra Report Web Service on IIS (Internet Information Server)

for Sage 100 ERP Business Insights Overview Document

How to Setup SQL Server Replication

To successfully initialize Microsoft Outlook (Outlook) the first time, settings need to be verified.

Transcription:

How to Call RFC from Web Dynpro Application Applies to: SAP Net Weaver 2004s (SP8, SP10 and SP11 and SP13) Web Dynpro. Summary This document explains how to access a BAPI From web dynpro application. It explains the process of creating a Web dynpro project; importing a BAPI as adaptive RFC Model from Webdynpro application and executing the Model get the Details. Author: Mithu Ghosh Company: IBM India Private Limited, KOLKATA Created on: 30 Oct, 2008 Author Bio Mithu Ghosh is an Application Developer working in IBM India Private Limited on SAP Netweaver Technology (CAF, Web Dynpro for JAVA and GP). 2008 SAP AG 1

Table of Contents Preconditions... 3 The Step By Step Solution... 3 CAF Development Component Project... 3 Step1: Creating a New Development Component Project... 3 Step2: Create Adaptive RFC Model... 6 Step3: Create Component, View and Window and use Model... 9 Step4: Context Model Mapping... 11 Step5: Create Action in View... 14 Step6: Designing view Layout and associate the Action... 15 Step7: Implementation... 17 Step8: Create Application... 18 Step9: Build and Deploy project... 20 Run Application... 21 Output Screen Slot... 22 Related Content... 22 2008 SAP AG 2

Preconditions The following are the preconditions that we need. Basic Concepts of Java programming. [ Java Tutorials ] Basic knowledge of Composite Application Framework. [My First Composite Application] Before Deploying our Web Dynpro Application we should check whether the configuration settings for the J2EE server and for the SDM server are entered correctly in the Netweaver Developer Studio or not. To check the server settings, we have to choose the menu path Window => Preferences=> SAP J2EE Engine. The Step By Step Solution CAF Development Component Project Step1: Creating a New Development Component Project Open NWDS, Select File => New => Project 2008 SAP AG 3

A New Project wizard will appear select Development Component Project Click on Next. Select My Components under Local Development Click on Next. 2008 SAP AG 4

A New Development Component Project wizard will appear. Enter the following information Vendor: ibm.com Name: fltdata/ui Caption: Flight User Interface Language: American English Domain: Sap xapps Type: select Web Dynpro under sap.com Click on Next. Click on Finish. 2008 SAP AG 5

Created project will be appeared in Web Dynpro Perspective Step2: Create Adaptive RFC Model Expand the node Web Dynpro Right click Models. Choose Create Model. A New Model wizard will appear. Choose Import Adaptive RFC Model. Click on Next. 2008 SAP AG 6

A New wizard will appear. Enter the following information. Model Name: FlightModel Model Package: com.ibm.fltdata.model.flightmodel Default Logical system name for model Instances: WD_RFC_FLIGHTDATA_MODEL Default Logical system name for RFC Metadata: WD_RFC_FLIGHTDATA_META Click on Next. A wizard will appear Select Single Server (SAP server you want to connect to). Enter relevant server logon information. Host Name: Address of the target system host System Number: System service ID number Client: Client of the system Logon Name: user name Password: user password Language: Preferred language (Default value: EN) Click on Next and wait until the Connection is established. A wizard for importing RFCs appears. 2008 SAP AG 7

Enter Function Name: BAPI_FLIGHT_GETLIST Click on Search. Check the function Name and Click on Finish. Click on Next. Click on Finish. Created FlightModel will be appeared under Models. 2008 SAP AG 8

Step3: Create Component, View and Window and use Model Expand the node Web Dynpro Right click Web DynproComponents. Choose Create Web Dynpro Component. A Create Web Dynpro Component wizard will appear. Enter the following information Component Name: FlightComp Component Package: com.ibm.fltdata Window Name: FlightWindow Window Package: com.ibm.fltdata View Name: FlightView View Package: com.ibm.fltdata Click on Finish 2008 SAP AG 9

Created FlightComp component will be available under Web Dynpro Components. And Created view FlightView will be available under Views and Created FlightWindow will be available under Windows. In the Web Dynpro Explorer Expand the tree of FlightComp Right Click on Used Models and choose Add. 2008 SAP AG 10

A Selection needed wizard will appear. Check FlightModel. Click on OK. Choose (Save All Metadata) to save the project. Step4: Context Model Mapping Go to the diagram view by double Click on the FlightComp. Do the mapping between Component Controller and Used Models (FlightModel) by drawing a line from Component Controller to FlightModel. A Edit Context Mapping wizard will appear drag the BAPI_Flight_Getlist_Input class from FlightModel to FlightComp. A Edit Context Mapping wizard will Appear Check the nodes. Destination _From, Destination_To, Flight_List under Output node with the attributes as per the figure, Airline and Max_Rows Click on OK. 2008 SAP AG 11

Click on Finish. Similarly draw the mapping between FlightView to Component Controller. Drag the Bapi_Flight_Getlist_Input Node from FlightComp to FlightView 2008 SAP AG 12

A Edit Context Mapping wizard will Appear Check the nodes. Click on OK. Click on Finish. 2008 SAP AG 13

Choose (Save All Metadata) to save the project. After Mapping diagram view looks like. Step5: Create Action in View Double Click on the FlightView Click On Actions attributes Click on New. A wizard will appear. Enter the following details Name: SearchFlight Text: Search Flight List Click Next. Click Finish. 2008 SAP AG 14

Step6: Designing view Layout and associate the Action In the Web Dynpro Explorer expand the tree of FlightComp and double click on FlightView. Design the Layout Like.. Associate the action created Action SearchFlight with the Search Button Steps to Design the View Layout. Select Root UI element Container from the outline window click on the secondary mouse bottom and choose Insert Child a wizard will appear select Group from Type and Finish. From outline window select Group [Group-Child] and from Properties window set width property value 100%. Select Group_Header [Caption-Header] and from the Properties window set text property value Flight Layout Select Group [Group-Child] click secondary mouse button and select Insert Child a wizard will appear select Type TransparentContainer Id TransparentContainer. Click on Finish 2008 SAP AG 15

Select TransparentContainer [TransparentContainer-Child] click secondary mouse button and select Apply Template a wizard will appear select Form. Click on Next. Select the following Attributes 1> City under Destination_From 2> City under Destination_To 3> Airline 4> Max_Rows Click Next Click Finish Select TransparentContainer [TransparentContainer-Child] click secondary mouse button and select Insert Child a wizard will appear select Type Button Id Button. Click on Finish in Properties of Button text value Enter text Search. Select Group [Group-Child] click secondary mouse button and select Apply Template a wizard will appear select Table. Click on Next. Select the following attributes under Bapi_Flight_Getlist_Input=> Output => Flight_List 1> Airline 2> Airlineid 3> Arrdate 4> Arrtime 5> Cityfrom 6> Cityto 7> Connectionid 8> Curr 9> Deptime 10> Flightdate 11> Price 2008 SAP AG 16

Change the table layoutdata property value to MatrixHeadData Outline of Webdynpro looks like Enter the labelfor property value blank For City_0_label, City_label, Airline_label and Max_Rows_label And Text property value City From,City To,AirLine and Max_Rows Choose (Save All Metadata). Step7: Implementation. Provide the following implementation within the wddoinit method and SearchFlight Action of the View (Flight View). //@@begin wddoinit() Bapiret2 bapiret2 = new Bapiret2(); Bapisfldat bapisfldat = new Bapisfldat(); Bapisfldra bapisfldra = new Bapisfldra(); Bapisfldst bapisfldstfrom = new Bapisfldst(); Bapisfldst bapisfldstto = new Bapisfldst(); Bapiparex bapiparex = new Bapiparex(); Bapi_Flight_Getlist_Input bapi_flight_getlist_input = new Bapi_Flight_Getlist_Input(); 2008 SAP AG 17

//@@begin onactionsearchflight(serverevent) try { wdcontext.nodebapi_flight_getlist_input().currentbapi_flight_getlist_inputel ement().modelobject().execute(); wdcontext.nodeflight_list().invalidate(); wdcontext.nodeoutput().invalidate(); } catch (WDDynamicRFCExecuteException e) { wdcomponentapi.getmessagemanager().reportexception("error in Executing Flight Model."+e.getMessage(),true); } Choose (Save All Metadata). Step8: Create Application Expand the node Web Dynpro Right Click on Applications and Choose Create Application. A New Application wizard will appear. Enter the following information Name : FlightApp Package: com.ibm.fltdataapp Click on Next. 2008 SAP AG 18

A wizard will appear ensure use existing component is selected. Click on Next. A wizard will appear choose Web Dynpro Component: FlightComp Interface View: FlightWindowInterfaceView Click on Finish. Created Application will be available Under Applications. 2008 SAP AG 19

Step9: Build and Deploy project Click the project fltdata~ui~ibm.com with the secondary mouse button and select Development Component => Build A wizard will appear choose OK. Check the build status in the General User Output and Deploy Output View at the bottom of the screen whether build is successful or errors occur. Deploy the Component; choose Development Component=> Deploy. Check the deployment status in the General User Output and Deploy Output View at the bottom of the screen whether Deploy is successful or errors occur. Before Deploying Check the status of the J2EE engine whether it is running or not. 2008 SAP AG 20

Run Application Before Running the Application make sure that JCos are configured. To configure JCos go to the path http://hostname:port/webdynpro/welcome/welcome.jsp then got to the Content Administrator enter user id and password Click on Maintain JCO Detonations Right click on FlightApp and Choose Run. 2008 SAP AG 21

Output Screen Slot Related Content For more information, visit the User Interface Technology homepage. 2008 SAP AG 22