Dialog Windows in WebDynpro ABAP Applications

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

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

POWL: Infoset Generation with Web Dynpro ABAP

Table Row Popup in Web Dynpro Component

Web Dynpro ABAP: Changing ALV Contents and Saving in Database

BAPI Execution in offline Adobe Form

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

Using Drop Down By Index in Table UI Element in WebDynpro ABAP

Creating Rules in Process Composer and using them in Process

Freely Programmed Help- Web Dynpro

Linking Documents with Web Templates

Easy Lookup in Process Integration 7.1

Dynamically Enable / Disable Fields in Table Maintenance Generator

SDN Community Contribution

Web Dynpro: Coloring Table Conditionally

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

Internationalization in WebDynpro ABAP Applications

Using Radio Buttons in Web Template

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

Displaying SAP Transaction as Internet Application in Portal

Web Dynpro ABAP: Dynamic Table

Upload Image file from system in Web dynpro view

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

Working with Tabstrip in Webdynpro for ABAP

How to Create Business Graphics in Web Dynpro for ABAP

SDN Community Contribution

Graphical Mapping Technique in SAP NetWeaver Process Integration

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

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

Table Properties and Table Popin

DB Connect with Delta Mechanism

How to Work with F4 Input Help Effectively in BEX

How to Create and Schedule Publications from Crystal Reports

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

Material Listing and Exclusion

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

Material Master Archiving in Simple Method

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

Maintaining Roles and Authorizations in BI7.0 - RSECADMIN

Implying Security on Business Object XI 3.1 Universe having SAP BW as Source

MDM Syndicator: Custom Items Tab

Purpose of Goods Receipt Message indicator in Purchase Orders

How to Integrate SAP xmii Services with Web Dynpro Java

Data Mining: Scoring (Linear Regression)

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

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

Different Types of iviews in Enterprise Portal 7.0

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

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

ABAP HR: Standard Info Type Enhancement

Step by Step Procedure for DSO Creation

Totals in Adobe forms

How to Create Tables in MaxDB using SQL Studio

SDN Community Contribution

Web Dynpro Interactive Forms Data Transfer and Scripting

A Simple Web Dynpro Application to Locate Employee s Location into Google Map

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

Federated Portal for Composite Environment 7.1

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

Creating Custom SU01 Transaction Code with Display and Password Reset Buttons

Replacement Path: Explained with an Illustrated Example

Displaying HR Organizational Tree Structure in Web Dynpro

SMT (Service Mapping Tool)

ABAP: Table Maintenance Events

Step-By-Step guide to Virtual InfoCube Implementation

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

Step By Step Procedure to Implement Soap to JDBC Scenario

Config Tool Activities

How to Download Multiple Files in ZIP using WebDynpro Java

Information Broadcasting Part 3 Scheduling the First Report

WDA Tutorial II: Using Select Options in a WDA Application

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

Recreating BIA Indexes to Address the Growth of Fact Index Table

Data Extraction & DS Enhancement in SAP BI Step by Step

ecatt Part 6 System Data Container

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

Download SAP Query Output to Local/ Network Folders in Background

Open Hub Destination - Make use of Navigational Attributes

SAP Biller Direct Step by Step Configuration Guide

Financial Statement Version into PDF Reader

Step by Step Guide for PI Server Start and Stop Procedure

How to Configure User Status in mysap SRM

Standalone BW System Refresh

ALV with Dynamic Structure in Web DynPro

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

Working with the Roadmap UI Element in Web Dynpro ABAP

Database Statistics During ODS Activation

Xcelsius Tricks Part 5 Create a Loading Bar in SAP Crystal Dashboard and Presentation Design (Xcelsius 2008)

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

Exception Handling in Web Services exposed from an R/3 System

SAP BI BO Unit/Currency Logic for Unknown Units Case Study

Developing Crystal Reports on SAP BW

Limitation in BAPI Scheduling Agreement (SA) Create or Change

Data Mining: Decision Trees

SUP: Personalization Keys and Synchronize Parameter

Step by Step Guide on How to Use Cell Definition in BEx Query

How to Broadcast BEx Workbooks using BW Pre-calculation Server and through Process Chains

Working with Dynamic Tables in Interactive Adobe Forms and WebDynpro ABAP

How to Display Result Row in One Line While Reporting On Multiproviderer

List of Values in BusinessObjects Web Intelligence Prompts

Transcription:

Dialog Windows in WebDynpro ABAP Applications Applies to: WebDynpro ABAP For more information, visit the Web Dynpro ABAP homepage. Summary This document explains how to create popup dialog windows, external windows and confirmation boxes with example in WebDynpro ABAP. Author: Tulasi Palnati Company: Yash Technologies Created on: 21 September 2009 Author Bio Tulasi Palnati is an Enterprise Portal Consultant at Yash Technologies, Hyderabad-India 2009 SAP AG 1

Dialog Boxes in Web Dynpro Applications Procedure:... 3 Create a WebDynpro Component... 3 Create a Context to hold data in the component controller and define methods... 4 Create New Window and View for Dialog box.... 6 Design the Layout for EMAILVIEW and Bind the context to UI Elements... 7 Design the Layout for ADDRESSBOOKVIEW and Bind the context to UI Elements... 10 Output:... 13 Related Content... 16 Disclaimer and Liability Notice... 17 2009 SAP AG 2

The Task The starting point is the application for sending an e-mail. This application contains an input form for the e- mail addresses of the sender and the recipient, the subject, and the text. The task of this tutorial is to assign functions to the To, Search (Google), and Send Email pushbuttons (see figure). If you choose to, a new Web Dynpro window containing a simple address book is displayed in a dialog box. If you select an address in this dialog box, this is written to the input field for the recipient address. If you choose Search (Google), an external window, which is assigned a URL address (for example, http://www.google.com), opens. If you choose Send Email, a confirmation dialog box containing two pushbuttons appears. Ok closes the dialog box and new email closes the dialog box and deletes the content of the input form. Procedure: Create a WebDynpro Component 1. Create a new WebDynpro component by the name YDIALOGWINDOWS and view name is EMAILVIEW 2. Create Web Dynpro Application by the name Ydialogwindows 2009 SAP AG 3

Create a Context to hold data in the component controller and define methods. 3. Double click on Component controller. Go to Context tab 4. Create Node Address book of cardinality 0..n with attributes Email and Name as of type String. 5. Create Node EMailSetting of Cardinality 1..1 with attributes TOADDRESS,FROMADDRESS,MSGBODY,SUBJECT as of type String. 6. The Context of the controller looks as below: 7. Delcare the Global Variables gr_window of type IF_WD_WINDOW. 2009 SAP AG 4

8. Delcare the Methods ShowAddressbookPopup and HideAddressBookPopup in the Component Controller which are should be called in views. 9. Copy and paste the below code into your methods. 2009 SAP AG 5

Create New Window and View for Dialog box. 10. Create New Window with name ADDRESSBOOKWINDOW for addressbook Dialog box. Create New View with name ADDRESSBOOKVIEW. 2009 SAP AG 6

Design the Layout for EMAILVIEW and Bind the context to UI Elements 11. Drag and Drop the Context of controller to the EMAILVIEW Context. Design the layout as below. 12. Create an action ToAddress and bind to the To button. Create an action ToSearch and bind to Search button. Create an action SendMail and bind it to Sendmail button. 2009 SAP AG 7

13. Copy the below codes to the action TOADDRESS, TOSEARCH and SENDMAIL. 2009 SAP AG 8

14. Create two actions for the Confirmation Dialog Box i.e., OK and NEW_EMAIL. 15. Copy the below code Onaction NEW_EMAIL. 2009 SAP AG 9

Design the Layout for ADDRESSBOOKVIEW and Bind the context to UI Elements 16. Drag and Drop the Context of controller to the ADDRESSBOOKVIEW Context. Design the layout as below. 17. Create an action ADDRESSBOOK bind it to the Toolbar button. 18. Copy the below Code to action ADDRESSBOOKVIEW. 2009 SAP AG 10

19. Populate the static data to the Address book Table. Copy the below code into WDDOINIT() method of ADDRESSBOOKVIEW. 2009 SAP AG 11

20. Embed the ADDRESSBOOKVIEW into ADDRESSBOOKWINDOW. 21. Save, Activate all the objects and Test it. 2009 SAP AG 12

Output: Fill the data of the screen as required. When you choose To, a dialog box displaying the address book appears. If you complete the e-mail form and choose Send Email, the confirmation window appears. 2009 SAP AG 13

If you click on NEW EMAIL then it resets the form. When you choose Search (togoogle), an external window displaying the Google homepage appears. 2009 SAP AG 14

2009 SAP AG 15

Related Content Use POP UPs WebDynpro ABAP HomePage Sample Example in WebDynpro JAVA 2009 SAP AG 16

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 17