Professional Documents
Culture Documents
Parameters Via Application PDF
Parameters Via Application PDF
Applies to:
SAP ABAP Workbench that supports Web Dynpro development. For more information, visit the Web Dynpro
ABAP homepage.
Summary
This article explains how to pass parameters via Web Dynpro Application. In general, data can be shared
via context of different controller only in the same session (i.e. in the same web page) but data cannot be
shared between two different sessions (i.e. two different web pages). So to pass the data between two
different sessions, we pass data through the web Dynpro Application (URL).
Author Bio
Sankar Gelivi is working with Incture Technologies as a Senior Net Weaver ABAP Consultant. He has over 3
years of experience in developing applications using ABAP, Web Dynpro ABAP, POWL and FPM.
Passing Parameters via Web Dynpro Application
TABLE OF CONTENTS
SUMMARY ........................................................................................................................................................ 1
AUTHOR BIO .................................................................................................................................................... 1
PRE-REQUISITES: ........................................................................................................................................... 3
REQUIREMENT: ............................................................................................................................................... 3
COMPONENT CREATION: .............................................................................................................................. 3
OUTPUT1:.. ....................................................................................................................................................... 7
OUTPUT2:.. ....................................................................................................................................................... 7
RELATED CONTENT ....................................................................................................................................... 8
COPYRIGHT ......................................................................................... ERROR! BOOKMARK NOT DEFINED.
2
Passing Parameters via Web Dynpro Application
PRE-REQUISITES:
Basic knowledge in Web Dynpro ABAP concepts like context mapping and calling the web dynpro
component using external window.
BASIC INFORMATION:
Generally, we use context mapping for sharing data between the views of same component or different
components. Data can be passed via context only in a same session but data cannot be passed or accessed
between different sessions via context mapping.
For accessing the data between the different sessions, we have to pass parameters via Web Dynpro
Application (URL).
REQUIREMENT:
Display the list of materials in the application 1 and then display the sales item details of the selected
material in the new page (new session)
COMPONENT CREATION:
1. Create a Component YSG_MATERIAL with a view and a window and embed view to the respective
window.
a. View 1 : V_Main Window 1 : W_Main
2. Create a node ‘MATERIAL’ with cardinality 0-n and design layout with a table in the MAIN view.
3. Implement logic in WDDOINIT( ) to display list of materials in the table, when the application is called
3
Passing Parameters via Web Dynpro Application
6. Create node ‘SALES’ in the component controller with the cardinality 1-1
7. Define context mapping with the node sales in V_MAIN and W_MAIN
View Window
4
Passing Parameters via Web Dynpro Application
5
Passing Parameters via Web Dynpro Application
12. Implement the logic in the onaction event of the LINK_TO_ACTION UI element of the
YSG_MATERIAL component
6
Passing Parameters via Web Dynpro Application
Output1:
Output 2:
Click on the M-16 material link
7
Passing Parameters via Web Dynpro Application
RELATED CONTENT
http://scn.sap.com/community/web-dynpro-abap
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0b01544-4ecb-2e10-30aa-
d8e1286c4022?QuickLink=index&overridelayout=true&52355651383494
8
www.sap.com
Crossgate, m@gic EDDY, B2B 360°, and B2B 360° Services are
registered trademarks of Crossgate AG in Germany and other
countries. Crossgate is an SAP company.
All other product and service names mentioned are the trademarks of
their respective companies. Data contained in this document serves
informational purposes only. National product specifications may vary.