Professional Documents
Culture Documents
Web Dynpro ABAP - Floor Plan Manager PDF
Web Dynpro ABAP - Floor Plan Manager PDF
Manager
Applies to:
SAP ECC 6.0. For more information, visit the Web Dynpro ABAP homepage.
Summary
The article tells about displaying employee details using Floor Plan Manager in Web Dynpro for ABAP.
Author:
J.Jayanthi
Author Bio
J.Jayanthi is a Certified ABAP consultant with HR ABAP and Web Dynpro ABAP knowledge.
Table of Contents
Floor Plan Manager in Web Dynpro ABAP ......................................................................................................... 3
Prerequisites ....................................................................................................................................................... 3
Creating Web Dynpro ......................................................................................................................................... 3
Component Controller ......................................................................................................................................... 4
View. ........................................................................................................................................................ 5
Window. .............................................................................................................................................................. 8
Code. .................................................................................................................................................... 8
Creating Web Dynpro Application .................................................................................................................... 10
Create Configuration ......................................................................................................................................... 10
Output.. .................................................................................................................................................. 14
Related Content ................................................................................................................................................ 16
Disclaimer and Liability Notice .......................................................................................................................... 17
Prerequisites
Component
The component is the central, reusable unit of the application project. You can create any number of views in
a component and arrange them in any number of windows.
View
The view is the smallest unit of a Web Dynpro application visible for the user. The layout elements and dialog
elements - for example, tables, text fields, or buttons - required for the application are arranged in a view.
The view contains a controller and a controller context in which the application data to be processed is stored
in a hierarchical structure. This allows the linking of the graphical elements with the application data.
Window
A window is used to group multiple views and to specify the navigation between the views. A view can only
Component Controller
Create four nodes as shown below.
Set the cardinality for employee as 1:1 and rest else as 0:n.
Create attribute pernr inside employee node. Similarly from PA0002, select the fields for details nodes as
shown below.
Select fields from PA0001 for ORG_DATA and from PA0006 for ADDRESS as shown.
View
Now we are going to create four views. One for receiving the user input of employee number. Other for
holding table for Employee details, other for holding organizational data and the last one for address.
In the context tab, map the node Employee to the Main view for user input.
Design its layout as below by creating table and binding its attributes.
Similarly create another view called Details. Map the node details in its context.
Create the last view Address. Map the node as below in context and design the layout by creating table for
the mapped node and do the binding.
Window
Create four windows as below one for each view.
Code
We are going to code in Component Controller method Process Event.
Step a:
Choose the radio button Read context for the node EMPLOYEE.
Step b:
Read node details.
Step c:
Read node Org_data.
Step d:
Read node Address.
Keep the required generated code and delete the rest which is not required.
Add the logic for selecting data from database tables.
You can use appropriate types statement to fetch the required only from each table.
Create Configuration
Go to SE80 and give the package name and then choose the Web Dynpro application created. Then right
click to create configuration.
After entering the configuration name as circled for each OIF and IDR component, enter configuration name
for OIF component and then click Go to Component Configuration button.
In this, press INITIAL_SCREEN and then enter as below in INITIAL_SCREEN_UIBB. Here USER_INPUT is
the name of the window.
Then open MAINVIEW inside that and enter details as below. Here USER_INPUT is the name of the
Window.
We now need 3 other windows inside this window. So create three subviews as below.
Output
Go to SE80 once again by ending the existing session, and from package (or if it is local objects), choose the
Web Dynpro application and then click test.
Related Content
Floorplan Manager for Web Dynpro ABAP
Floorplan Manager (FPM) Web Dynpro ABAP
For more information, visit the Web Dynpro ABAP homepage.