Friday, January 10, 2014

Webdynpro ABAP Introduction Overview for Beginners

SAP Web dynpro, ABAP Webdynpro is the SAP standard UI(User Interface) technology. ABAP Web dynpro used for developing web based business applications without knowing HTML(Hyper Text Markup Language) or Javascript

SAP Webdynpro is developed using ABAP and also Java, here in this post we are going to know about detail over view on SAP Webdynpro ABAP introduction and webdynpro tutorial. Click on read more to view this article.


SAP Webdynpro ABAP Introduction Tutorial



SAP Webdynpro ABAP, Webdynpro is the SAP standard UI(User Interface) technology used for developing web based business applications without knowing HTML(Hyper Text Markup Language) or Javascript. SAP Webdynpro is developed using ABAP and also Java here in this post we are going to know about detail over view on SAP Webdynpro ABAP.



What is Web Dynpro:

--> Webdynpro is the SAP standard UI technology used for developing web business applications without knowing HTML or Javascript

--> Strict separation between the layout and business data

--> Reuse and better maintainability through reusability

--> Automatic input checks

--> Automatic data transport using data binding

--> WYSIWYG view editor



Concept of View

Components of View Layout

Properties Tab

Context Tab

Methods Tab

Attributes Tab

Concept of Component Controller

Application

Displaying Messages

Supply Function

Cardinality Property

Singleton

Lead Selection

Hook Methods

Types of Controllers

Hook Methods Chart


View and it's Concept :
We can add different UI elements that can be nested on in the other one to create the screen.

Each view has a view controller that is automatically created for this view and each view has several tabs (Properties, Layout, Outbound Plug, Inbound Plug, Attributes, Context, Actions and Methods).

Components of View Layout:

1) UI Element Library
2) View Designer
3) Context Menu
4) UI elements properties and
5) UI element Hierarchy

1) Properties Tab:
Here we can set the lifetime of the view
1) Framework controlled – Controller by Framework
2) When Visible – Lifetime limited to its visibility. 

2) Context Tab:
The data are stored in the context and the UI elements are only objects the user interacts with.

3) Methods Tab in webdynpro:
Event Handler Methods
Hook Methods and (wddoinit, wddoexit etc)
User-defined instance methods

4) Attributes Tab in web dynpro:
i) wd_context:
It is a reference to the controller context. IF_WD_CONTEXT_NODE interface provides several methods that enable us to obtain read and write access to a context node.

ii) wd_this:
This is a self reference to local controller interface. We can use it to call user defined methods.

iii) wd_comp_controller:
It is a reference variable of IG_COMPONENT CONTROLLER type that we can use to access all the publically accessible methods of the component global generated interface of the corresponding component controller.

Concept of Component Controller in webdynpro

Data required across different views can be stored in this context
Application:
For the execution of the Web Dynpro Component.
Displaying Messages:
On the properties tab of an application we can specify how the messages are handled.
1) Show Message component on demand
2) Always display message component
Supply Function:
Each node may have a supply function defined for it and automatically called by the Web Dynpro Framework.
The scope of using a supply function is to populate a context node. In certain cases , we can use the Hook Method wddoinit instead of a supply function.

Cardinality Property:
It tells us how many elements a context node may have at runtime.
1 to 1 – Exactly one context element is instantiated
0 to 1 – Maximum one context element is instantiated
0 to n – Zero or more context element is instantiated
1 to n – One or more context element is instantiated 

Singleton:
Unlike the Cardinality of a node which describes the number of possible elements within the node the ‘Singleton’ property determines whether or not these elements are set for all the parent node (Non-Singleton) or for exactly one element of the parent node (Singleton).

Lead Selection:
At runtime, every child set as a singleton contains elements for exactly one element of the parent node. For this purpose, one element from the set of possible elements of the parent node must be highlighted.

This is achieved by initializing lead selection. For each newly created context node, lead selection is initialized automatically.

Hook Methods:
These methods cannot be deleted and represent the interface between the Framework and our application. The Hook Methods are called in a specific sequence according to a Phase Model.

Types of Controllers:
1) Component Controller
2) View Controller
3) Window Controller
4) Custom Controller

Hook Methods Chart:











1)wddoinit():
Ø This method can be considered the controller constructor. It is automatically called when the controller is initialized for the first time.

2) wddoexit():
Ø This method can be considered as the controller destructor. It is automatically called when exiting the controller, and can be used for executing closing statements.

3) wddomodifyview():
Ø This method is mostly used in the dynamic programming, it is a method used for modifying the view before rendering.(Dynamically modifying the view)

4)wddobeforeaction():
Ø We can use this method to perform our own validation before an action is triggered.Check_mandatory_attr_on_view)


5) wddocontextmenu():
Ø It is used to provide the hierarchical context menus in Web Dynpro views.
Ø We can create a context menu at design time, by using the CONTEXT_MENUS root, or dynamically, by coding the wddooncontext menu method.

6) wddoafteraction():
Ø This method is called for all visible views at the time an action is executed.
Ø Here functions can be placed that are carried out equally for all associated event handlers.
Ø This avoids any unnecessary multiple programming in the event handlers.

7) wddoonopen() & wddoonclose()
There are two methods are only processed when a window is opened or closed as a dialog box.
Since the opening of dialog box does not involve any navigation, no inbound plug is called and therefore no event handler method is processed.
The wddoonopen method can therrefore be used to implement initializations.

8) wddodobeforenavigation():
It can be used to perform an additional validation of those controller contexts that are required in the application but have not been validated in the request/response cycle yet.

This is important for more complex Web Dynpro applications in particular. This method is used for the component assigned to the phase model instance and all embedded components.

9) wddopostprocessing():
This method is called in the process step before rendering. Therrefore it allows you to add application specific clean-up processes.

10) Wddoapplicationstatechange():
This method replaces the ‘WDDOEXIT’ method in the phase model.


"You found the information helpful and want to say thanks? Your donation is enough to inspire us to do more. Thanks a bunch!"

2 comments:

Black said...

Looking for Webdynpro abap questions?

vijaykumar chowdary said...

very useful

Post a Comment

Note: Only a member of this blog may post a comment.

Categories

ABAP (1) ABAP Interview Questions (112) ABAP Open SQL Statements (1) ABAP Syntax Rules (6) ABAP WORKBENCH (2) ABAP-Interview-Questions (52) ALE IDOC (6) ALE IDOC Interview Questions (6) ale-idoc (6) ALE-IDOC-Interview-Questions (19) ALV Interview Questions (5) ALV-Interview-Questions (22) BADI (2) BAPI (1) BAPI Interview Questions (1) BAPI-Interview-Questions (14) BDC (6) BDC Interview Questions (6) BDC-Interview-Questions (9) big data (2) big data interview questions (1) Classical Reports Interview Question (3) Classical-Reports-Interview-Questions (22) Conditional Statements (1) Cross Applications (3) Cross-Applications (14) Data Dictionary (22) Data Type Questins (1) Data types (1) Data-Dictionary (48) Data-Type-Questins (6) Dialog programming (5) Dialog Programming Interview Questions (4) Dialog-Programming (30) DOMAIN Interview Questions (1) Domain-Interview-Questions (8) Function Module (2) hadoop (2) hadoop interview questions (2) hdfs (1) IDoc Tutorials (6) Interactive Report Interview Questions (4) Interactive-Reports-Interview-Questions (22) Internal Tables (1) interview questions (1) Lock Object Interview Questions (1) Lock-Objects-Interview-Questions (10) Logical Database (1) Modularization Interview Questions (4) Modularization-Interview-Questions (25) Module Pool Programming (5) Module-Pool-Programming (39) modules in sap (1) Object Oriented ABAP (19) Object Oriented ABAP Interview Questions (15) object-oriented-abap (2) Object-Oriented-ABAP-Interview-Questions (34) OOABAP (9) Reports (14) Reports Interview Questions (9) Reports-Interview-Questions (19) RFC (1) RFC Interview Questions (1) RFC-Interview-Questions (14) RICEF (1) RICEF Objects (1) SAP (4) SAP ABAP (4) SAP ABAP Interview Questions (42) SAP ABAP Introduction (46) SAP ABAP Message Types (2) SAP BADI Interview Questions (2) SAP Basics (71) SAP Books (2) SAP Certification (1) SAP CONSULTANTS (5) SAP CRM (1) SAP ENHANCEMENTS (3) SAP EXITS (2) SAP EXITS ( SAP ENHANCEMENTS ) Interview Questions (1) SAP Free Books (1) SAP HR (2) SAP Lock Object (1) sap modules (2) SAP Open SQL Statements (1) SAP R/3 Architecture (4) SAP Search help (1) SAP Smartforms (1) SAP Smartforms Interview Questions (2) SAP Tables (5) SAP Tcodes (10) SAP Views (1) SAP Webdynpro ABAP (12) SAP Work Processors (2) SAP Workflow (3) SAP-BADI-Interview-Questions (11) SAP-Enhancements (39) SAP-Exits (39) SAP-Exits-Enhancements-Interview Questions (3) SAP-HANA (1) SAP-HANA-Interview-Questions (1) SAP-Smartforms-Interview-Questions (2) SAP-Workflow (3) Scripts (3) Scripts Interview Questions (2) Scripts-Interview-Questions (32) Search Help Interview Questions (1) Search-Help-Interview-Questions (9) Smartforms (1) Table Maintenance Generator (1) Table-Maintenance-Generator (4) Tables in SAP (2) Tables Interview Questions (3) Tables-Interview-Questions (3) Type Group Interview Questions (1) Type-Group-Interview-Questions (7) Variable Declaration (1) Views Interview Questions (1) Views-Interview-Questions (5) Webdynpro (12) what is big data (1)

Protected Blog

 
This blog is not affiliated to SAP AG |SAP is trademark of SAP AG |The information collected from various sources use information with your own risk.