Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Unofficial SAP WebDynpro for ABAP
Unofficial SAP WebDynpro for ABAP
Unofficial SAP WebDynpro for ABAP
Ebook232 pages1 hour

Unofficial SAP WebDynpro for ABAP

Rating: 5 out of 5 stars

5/5

()

Read preview

About this ebook

– but finding good reference materials can be difficult. Now, for the first time, a
world class Web Dynpro consultant shares his knowledge and understanding of this complex topic. Web Dynpro for ABAP guides you easily through your learning process. From helping you to assess your Web Dynpro skills, to helping screen candidates for your ABAP positions, Web Dynpro for ABAP will help you understand
what you really need to know. This book is organized around several areas of Web Dynpro for ABAP: Component based development, selected topics in User Interface design, Business Server Pages, and more. More than just a rehash of
Web Dynpro for ABAP documentation and sales presentations, each question is based on implementation project know-how gained on high-profile Web Dynpro for ABAP implementations.

Key topics include:
Component based development
Topics in User Interface Design
Business Server Pages

LanguageEnglish
PublisherEquity Press
Release dateJan 7, 2012
ISBN9781603323079
Unofficial SAP WebDynpro for ABAP

Read more from Equity Press

Related to Unofficial SAP WebDynpro for ABAP

Related ebooks

Software Development & Engineering For You

View More

Related articles

Reviews for Unofficial SAP WebDynpro for ABAP

Rating: 4.75 out of 5 stars
5/5

4 ratings1 review

What did you think?

Tap to rate

Review must be at least 10 words

  • Rating: 4 out of 5 stars
    4/5
    Nice collection, Very Helpful.

Book preview

Unofficial SAP WebDynpro for ABAP - Equity Press

Unofficial SAP WebDynpro for ABAP

Equity Press

Unofficial SAP WebDynpro for ABAP

ISBN: 978-1-60332-307-9

Smashwords Edition

Edited By: Jamie Fisher

Copyright© 2008 Equity Press all rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording or otherwise) without either the prior written permission of the publisher or a license permitting restricted copying in the United States or abroad.

The scanning, uploading and distribution of this book via the internet or via any other means without the permission of the publisher is illegal and punishable by law. Please purchase only authorized electronic editions, and do not participate in or encourage piracy of copyrighted materials.

The programs in this book have been included for

instructional value only. They have been tested with

care but are not guaranteed for any particular purpose.

The publisher does not offer any warranties or

representations nor does it accept any liabilities with

respect to the programs.

Trademarks: All trademarks are the property of their respective owners. Equity Press is not associated with any product or vendor mentioned in this book.

Please visit our website at www.sapcookbook.com

Table of Contents

Organization

Introduction

Designing the Layout

Question 1: Dropdown by Index

Question 2: Table pop-in

Question 3: View designer layout tab display problem

Question 4: Layout – Grid or Matrix

Question 5: Changing the text of the button dynamically

Question 6: Space between two fields

Question 7: Define the class in the attribute of the view

Question 8: Call method of class

Question 9: Change Series Color in Business Graphic control

Question 10: Text disappears when the pop-up is opened

Question 11: Error when registering events to pop-up button

Question 12: Set some rows in ALV to editable or some non-editable

Question 13: Align fields or label in Web Dynpro

Question 14: Preventing a pop-up from closing

Question 15: Registering custom button events to pop-up

Question 16: Drop down visibility or invisibility

Question 17: Splash screen

Question 18: Creating the drop down list in Web Dynpro

Question 19: Reference on interface controller

Question 20: WDA stylesheet via sap-cssurl parameter

Question 21: Web Dynpro View Layout Preview Problem

Question 22: Standard text in Adobe form

Question 23: To populate blank value in ‘dropdownbykey’

Question 24: Dynamic creation of checkbox

Question 25: Drop down box in Web Dynpro

Question 26: Creating a Tray dynamically

Question 27: Field Symbols

Question 28: Pop-up for file download

Question 29: Add a drop down box in an ALV toolbar

Declaring the Flow & Behavior of the application

Question 30: Item selection between two lists

Question 31: Manual selection change behavior for tab strips

Question 32: Service call via RFC

Question 33: Error in the browser

Question 34: Getting a singleton component

Question 35: Using only one view from a component

Question 36: Cardinality: automatic creation of initial elements

Question 37: Nested tables in PDF

Question 38: Identify the row number when a button is clicked in a table

Question 39: Check which button were pressed

Question 40: Clear message log

Question 41: Reset selection in ALV

Question 42: Window not visible

Question 43: Setting several containers in the right position in one view

Question 44: Close a portal window through a button event within the WD-APP

Question 45: Retaining the text in text edit element

Question 46: WDDOMODIFYVIEW error

Question 47: Logged user in Web Dynpro

Question 48: Making transparent container visible or invisible by code

Question 49: Syntax error

Question 50: Setting the main application’s title

Defining the data binding

Question 51: Show dynamically created HTML page from WD4A

Question 52: Value Help in WD Table

Question 53: Standard Tables

Question 54: PDF doc error: filedownloadUI vs. cl_wd_runtimeservices=>attach_file_to

Question 55: Calling R/3 Transaction from WDA

Question 56: Delete ALV WD settings

Question 57: Transport Personalization

Question 58: Display sample ABAP list

Question 59: Have an UI Element to display ABAPlist

Question 60: Outbound plug of a view_container_uielement

Question 61: escape V1 completely

Question 62: An indicative view

Question 63: Definition of event

Question 64: Assistance class

Question 65: Translated OTR text is not displayed in WD4A application

Question 66: Input Fields in a table

Question 67: Change the visibility property of a WD element

Question 68: Accessing the context

Question 69: Append 10 rows in ALV

Question 70: Hiding a group

Question 71: Multiple row selection in the standard table

Question 72: ‘ls_sone’ structure

Question 73: WD ABAP Table ‘LinkToAction’

Question 74: External Mapping and Component Interface

Question 75: Define mapping during runtime

Question 76: Bug at Horizontal Gutter UI element

Question 77: Standard table selection

Question 78: Table row/cell editable

Question 79: Selecting a row in table control

Question 80: Tree Control where leaves are Independent Tables

Implementing the event handlers and controller methods

Question 81: Initialization Context

Question 82: filling and locating the node

Question 83: Tree UI Element

Question 84: Exceptions instead of events

Question 85: Passing values to FM through WDP for ABAP

Question 86: Run time error while running Web Dynpro

Question 87: Using Enhancement Framework in methods of WD Components

Question 88: Difference between component controller and custom controller

Question 89: Read value of input Field

Question 90: Change attributes input field

Question 91: WD ABAP component configurations

Question 92: Reading images from the file system

Question 93: Get the value of a cell if it is an input field in ALV

Question 94: Data no longer available after call

Question 95: Code errors

Question 96: No CALL METHOD syntax used in Dynpro programming

Question 97: Code Program correction

Question 98: Problem while redirecting to URL

Question 99: Not having the same URL as parameter

Question 100: What URL to use

Question 101: Portal Eventing: communication between BSP and WD iView

Question 102: WebDynpro ALV with input ready fields

Question 103: Class for IF_WD_CONTEXT_NODE

Question 104: Read the current selected row of a table

Question 105: ‘LogoffURL’ for ABAP Web Dynpro

Question 106: Refreshing UI Elements

Question 107: call WDMODIFYVIEW manually

Question 108: Modify the content of the table

Question 109: more CPU costly

Question 110: Grouping more than one view in a single window

Question 111: Getting the pressed item value of Tree UI Element

Question 112: ALV Change of Selected Row ON_CLICK Event Action

Question 113: Automatically generated Search Help

Question 114: Freely programmed input help

Organization

I. Introduction

II. Designing the layout of the invisible views

III. Declaring the flow and behavior of the application

IV. Defining the data binding

V. Implementing the event handlers and controller methods

VI. Issues faced when using Web Dynpro

Introduction

What is Web Dynpro for ABAP?

Web Dynpro is the User Interface (UI) technology for developing client-independent applications. It comes with a programming model, set of tools and a run-time. The platform independent metamodel definition enables Java and ABAP to be the run-time environment for Web Dynpro applications.

The development environment of Web Dynpro for ABAP (or, ‘WD-ABAP’ for short) is tightly integrated into the ABAP workbench (SE80). ABAP classes are generated automatically from the metamodel created in this design tool. Custom coding is done in ABAP for tasks such as business logic (Model) access, event handling, and dynamic screen modification. The ABAP stack of the application server (Usage type: AS-ABAP) is the runtime environment for executing the generated ABAP classes and custom coding. Based on the client from which the application is triggered, the unified rendering takes care of rendering the UI in respective technology (for example, if it is triggered from a web browser, the Web Dynpro UI metadata is converted to HTML, JavaScript and rendered using HTTP(S)).

Web Dynpro Explorer in SE80

Web Dynpro – ABAP and Java

If you are familiar with the Web Dynpro (Java) perspective in NetWeaver Developer Studio, you can appreciate the similarity between that and the above Web Dynpro Explorer (ABAP). Yes, the tools in both environments (Explorer, View editor, UI Element Outline, Property editor, etc.) are pretty comparable. Not only the tools but also the programming model, UI elements, etc. are similar in both the worlds. Due to the nature of these two worlds, there are some basic differences between these two tools, like the list of UI elements available, wizards, graphical tools and source code control & transport. I will cover the differences in detail in a future blog.

The benefits of using Web Dynpro for ABAP

Using WD-ABAP would make sense, if you are planning to develop a web application (or a non-SAPGUI application, considering) to expose the business functionality that primarily resides in the ABAP stack. Following are some of benefits of using WD-ABAP against other comparable technologies.

General Web Dynpro benefits

Since Web Dynpro is based on MVC model, your business logic is naturally separated from the presentation logic. This is a good programming practice, so that the business logic could

Enjoying the preview?
Page 1 of 1