Professional Documents
Culture Documents
Calling A Web Dynpro Application From Another Web Dynpro Application
Calling A Web Dynpro Application From Another Web Dynpro Application
Applies to:
SAP NetWeaver 2004s. For more information, visit the Web Dynpro Java
Summary
This Document explains step by step procedure to call one Webdynpro application from another Webdynpro
application. We will develop two applications one is to show flight details ZDEMO_FLIGHTS and the other
one is to show booking details ZDEMO_BOOKINGS, on click of lead selection of a table FLIGHTS in
ZDEMO_FLIGHTS it will call another application ZDEMO_BOOKINGS.
Author:
Author Bio
Suman Kumar is a Consultant for YASH Technologies, Pvt., and Ltd. Based in India. He has 2 years of IT
experience. He has good knowledge of ABAP, BSP and Web Dynpro for ABAP.
Table of Contents
Create Web Dynpro Applications .......................................................................................................................3
Application One:..............................................................................................................................................3
Application Two:..............................................................................................................................................7
Call Second Application ..................................................................................................................................9
Test Application ................................................................................................................................................10
Result of second Application......................................................................................................................................11
Related Content................................................................................................................................................12
Disclaimer and Liability Notice..........................................................................................................................13
Node Name
c. Create an Action to the Table (when user clicks on lead selection it will call another application).
Give event name is CLICK.
Go to the properties of table FLIGHTS click onLeadSelect to create action to the table.
Now it will generate a method (ONACTIONCLICK) to handle the Event. Later we will implement the
Method.
4. Populate table FLIGHTS with flights details.
a. Go to methods tab of view FLIGHTS and implement DOINIT method to get Flight details from table
SFLIGHT.
5. Assign view FLIGHTS to window, activate the component and then create an application.
Application Two:
Repeat steps from 1 to 5 for second application ZDEMO_BOOKINGS.
1. Create a Webdynpro component with name ZDEMO_BOOKINGS.
2. Create view BOOKINGS.
a. Create Context Bookings and add required attributes from SBOOK to the node.
3. Insert an element table (BOOKINGS) to the Layout.
a. Create binding to the table with Context node.
The resulted view looks like.
5. Assign view BOOKINGS to the window, activate the component and create the application.
Test Application
Test the Application ZDEMO_FLIGHTS, click on lead selection of FLIGHTS table. You will see the second
application in other window.
Click on lead
Selection
Related Content
Please include at least three references to SDN documents or web pages.
Webdynpro for ABAP : Tutorials for Beginners
For more information, visit the User Interface Technology homepage.
For more information, visit the Web Dynpro Java