Screen Conversion in Webdynpro For Abap: SDN Contribution
Screen Conversion in Webdynpro For Abap: SDN Contribution
Summary
This tutorial provides a guide for Converting a SAP Module Pool Program Screen into a WDA View. This
tutorial assumes that you have completed WDA Tutorial I: Getting Started with Web Dynpro for ABAP and
have a good understanding of the basics of Web Dynpro for ABAP.
Author: Maheswaran Baskaran
Company: Cognizant Technology Solutions India Pvt. Ltd.
Created on: 16 August 2006
Author Bio
Maheswaran Baskaran is a Programmer Analyst for Cognizant Technology Solutions, Pvt., Ltd. based in
Tamilnadu, India. He has one year experience in the IT industry. He has good knowledge in ABAP and
JAVA.
2006 SAP AG
Table of Contents
Screen Conversion in WebDynpro for ABAP .................................................................................. 1
Applies to: ........................................................................................................................................ 1
Summary.......................................................................................................................................... 1
Author Bio ........................................................................................................................................ 1
Table of Contents ............................................................................................................................ 2
Introduction: ................................................................................................................................. 3
Screen Design Time Conversion Wizard: .................................................................................... 3
Procedure:.................................................................................................................................... 3
Screen No 1: ABAP Program on Execution ............................................................................. 3
Step1: Using the Screen Conversion Wizard............................................................................... 4
Screen No 2: Screen Conversion Wizard................................................................................. 4
Screen No 3: Wizard Input Screen........................................................................................... 4
Screen No 4: Wizard Output Screen - 1................................................................................... 5
Screen No 5: Wizard Output Screen - 2................................................................................... 5
Step 2: Writing the Business Logic in WDA View Part - I ............................................................ 6
Screen No: 6 Context Attribute which is binded to Airline-ID ................................................... 6
Screen No 7: Context Attribute which is binded to Flight No. .................................................. 7
Screen No 8: PAI Section of SAP Module Pool Program ........................................................ 7
Step 3: Writing the Business Logic in WDA View Part - II ........................................................... 8
Screen No 9: WDA View Output .............................................................................................. 9
Result: .......................................................................................................................................... 9
Related Content............................................................................................................................... 9
Disclaimer and Liability Notice....................................................................................................... 10
2006 SAP AG
Introduction:
We all know that WDA (WebDynPro ABAP), which is going to be SAPs next generation UI technology, offers
you many features that are very interesting to work with. In this article, I am going to explain about one of its
features named Screen Design Time Conversion of WebDynPro Code Wizard and how to get its
maximum benefit.
Screen Design Time Conversion Wizard:
This wizard converts a classical SAP Module Pool Screen into a WebDynPro ABAP View. It gets a SAP
Module Pool Program and its Screen Number as input and gives its corresponding WDA View as Output.
This wizard automatically creates UI Elements, Context Nodes & Attributes and data binding between UI
Elements and the Context Nodes & Attributes. This reduces lot of the development time of the developer.
Before using this wizard please go through its restrictions.
The Business Logic of SAP Module Pool Program is not mapped to the WDA View during the conversion
process. The developer is responsible for the Business Logic of WDA View.
Procedure:
We take a sample ABAP program SAPMDEMO_TRANSACTION which has a simple search screen to
search the details of the flight using the Airline-id and Flight Number.
Screen No 1: ABAP Program on Execution
2006 SAP AG
6. On successfully finishing the step 5 you can see that you have created UI Elements and Context
Elements within a single click.
2006 SAP AG
7. You can see that all the UI Elements are automatically binded to the context elements.
Screen No 5: Wizard Output Screen - 2
2006 SAP AG
1. Place your cursor in a valid position in the event handler and read the Context Attribute where
the Airline-ID is bounded using the WebDynPro Code Wizard.
Screen No: 6 Context Attribute which is binded to Airline-ID
2. Place your cursor in a valid position in the event handler and again read the Context Attribute
where the Flight Number is bounded using the WebDynPro Code Wizard.
2006 SAP AG
3. Now using these two input values, you need to write a select query to fetch the result from the
SPFLI table. This code you can get from the PAI Section of ABAP Program itself.
Screen No 8: PAI Section of SAP Module Pool Program
2006 SAP AG
).
2006 SAP AG
Result:
Congratulations, you have converted a SAP Module Pool Programs Screen into a WDA View.
Related Content
1. Screen Design Time Conversion
2. Screen Design Time Conversion - restrictions
2006 SAP AG
2006 SAP AG
10