Sunday 28 August 2011

SAP ABAP webdynpro certification sample questions

Here are few webdynpro multiple choice questions and this covers the basics of webdynpro.
Note: These are not exact certifications questions but a sample to test your webdynpro knowledge.

1) Eliminate the Event that is not part of Webdynpro  
      a)WDDOBEFOREACTION
      b)WDDOENTRY
      c)WDDOINIT
      d)WDDOMODIFYVIEW

2) What is the Cardinality for the Node created for storing the Table

      a) 1:1
      b) 0:1
      c) n:n
      d) 0:n

3) What is the equivalent for Transaction in Webdynpro
      a) Application
      b) Component Controller   
      c) Interface Controller
      d) Plugs
      

4) The Webdynpro Programming model is based on
      a)Classic Dynpro Programming
      b)Business Server Pages(BSP)
      c)Model View Controller(MVC)
      d)Internet Transaction Server(ITS)

5) The UI Element and the Context Attributes of Webdynpro are linked. The process of doing this is called
      a) Binding
      b) Linking
      c) UI Linkage
      d) UI Link

6) A webdynpro Component consists of the below items except
      a) UI elements
      b) Component Controller
      c) Window
      d) Views

7) Identify a layout that is not part of the Webdynpro Layout types
      a) Flow Layout
      b) Row  Layout
      c) Grid Layout
      d) Tree Layout

8) Where does the Business Logic exists in the Webdynpro Component
      a) Methods of the view
      b) Methods of the Controller
      c) Assistance Class
      d) None of the above

9) How do you access the attributes declared in component controller in the method of a view
      Ex: emp_id type numc10
      a) wd_comp->emp_id
      b) wd_Comp_controller->emp_id
      c) wd_controller->emp_id
      d) wd_this->emp_id

10) which method do you use to read the contents of a internal table displayed in the webdynpro window
      a) GET_STATIC_ATTRIBUTES_TABLE
      b) GET_STATIC_TABLE
      c) GET_STATIC_ATTRIBUTES
      d) GET_SELECTED_ELEMENTS

11) Which method do you use to read the contents of a attribute attached to the context node.
      a)GET_ATT
      b)GET_ATTRIBUTE_REF
      c)GET_ATTRIBUTE
      d)GET_STATIC_ATTRIBUTES

12) Identify a Cardinality type that is not part of webdynpro.
      a) N:N
      b) 0:1
      d) 1:1
      c) 0:N

13) which data type do you use to declare a visibility attribute in webdynpro
      a) WD_VISIBILITY
      b) WDUI_VISIBILITY
      c) ABAP_TRUE
      d) BOOLEAN

14) Passing Parameters to webydnpro Application using the Applicatino URL are called_________Parameters
      a)Command Parameters
      b)Commandline Parameters
      c)Command Operators
      d)Ternary Parameters

15) A View in Webdynpro is associated with _______ in SAP GUI.
      a) View
      b) Transaction
      c) Dynpro
      d) Screen

16) Identify a Window Outbound Plug type to exit the View completely
      a) Standard Plug type
      b) Suspend Plug type
      c) Exit Plug type
      d) Inbound Plug type

17) which standard WD component is used to build ALV in Webdynpro
      a) SALV_WD_TABLE
      b) SALV_WD_TABLE_USAGE 
      c) AVL_TABLE
      d) None of the above

18) What is the right sequence of event trigger in Webdynpro
      1-WDDOINIT of Component Controller
      2-WDDOINIT of View
      3-WDDOINIT of Window
      
     a) 3 1 2
     b) 1 3 1
     c) 1 3 2
     d) 2 1 3

19) Which of the Below is not a Valid Webdynpro UI element
     a) Button
     b) Page Header
     c) Message Area
     d) Transparent View

20) Can a view container have more than one view active at a time.
     a) Yes
     b) No
     c) Depends on the Binding
     d) Depends on the Mapping

Answers:

1) b
2) d
3) a
4) c
5) a
6) a
7) d
8) c
9) b
10)a
11)c
12)a
13)b
14)b
15)d
16)c
17)a
18)c
19)d
20)b

Wednesday 24 August 2011

SAP ABAP Webdynpro Frequently Asked Questions and answers

Questions
1) What is ABAP Webdynpro
2) What is Floorplan Manager(FPM) and its usage in webdynpro
3) How to close popup window in webdynpro ABAP
4) How to display formatted text in webdynpro ABAP
5) How to control the visibility of webdynpro UI elements
6) Controlling message area height in webdynpro ABAP
7) Coding business logic in assistance class of webdynpro component
8) Webdynpro trace tool and its usage
9) ICM Tracing for webdynpro Application
10)F4 help for inputfields in webdynpro abap
11)Messages in webdynpro abap application
********************************************************************
ABAP Webdynpro
Webdynpro ABAP is the SAP UI technology for building Web based UI's using the programming
language ABAP/ABAP OO. ABAP Webdynpro Components and Design tools can be accessed
using the ABAP workbench transaction SE80.

Advantages of ABAP Webdynpro:
->Webdynpro programming model uses MVC(Model View controller)
  design paradigm.
  -->MVC
->Clear separation between the flow logic and the business logic.
  ->Here the flow logic is written in the views,windows,components and the business
    logic is mostly written in Assistance class.
  ->Refer to the package SWDP_DEMO for sample webdynpro demos components
      and applications
->Complete integration of web  based framework into ABAP workbench.
->Reuse of the components possible
->Reuse of the existing back end programs(ex: function modules,classes)
->with EHP2 no Java stack required to run webdynpro applications
->Specific Layout frameworks are provided to use based on the requirments
  ->Example: GAF,OIF,QAF
->Most of the Layout/UI development can be done using graphical
  designer and the code wizard.
********************************************************************
Floorplan Manager and its usage in Webdynpro
Floorplan Manager is the standard UI framework provided by SAP to build web UI's in an Consistent manner so that all the SAP web UI's will have the same look and feel.

The FPM framework is available with the basis release 7.0, SP13

FPM has 3 floorplan types:
1) Object Instance floorplan(OIF). A OIF has usually the create,edit,display
   attributes and tabs to show data to the user.

2) Guided Activity floorplan(GAF): A GAF has the guided procedure to achieve
   a specific task. Ex: Start->Step1->step2->step3->Confirm to close.

3) Quick Activity floorplan(QAF): A QAF is used to quickly perform a task or
   a activity. QAF is used when a specific has to be performed by the UI.

FPM Concepts in Detail:
********************************************************************
Closing Popup windows in webdynpro ABAP
Here are the steps:
1) Create an outbound plug( ex: exit) in the window which is called as popup and add the following
    parameters to the exit plug.
    parameter1: close_window type wdy_boolean  "This is optional
    parameter2: url type string                "This is optional and
                                                           "is used to navigate to other url
    Note: Plug type should be interface and check the interface option

2) Go the view which is embedded in the window and choose properties tab.
    Press create button and add the window.
3) Go to the action(event method) on which the window should be closed and
     fire the exit plug. Assuming your window is w_win and the view is v_view.
     here is the sample piece of code to fire the exit plug.

    To close the window:

    DATA: lo_W_WIN TYPE REF TO IG_W_WIN .
              lo_W_WIN =   wd_this->get_w_win_ctr).
              lo_w_rule->fire_exit_plg(
              close_window =    abap_true ).

    To navigate to the new URL, you can use the code.

    DATA: lo_W_WIN TYPE REF TO IG_W_WIN .
              lo_W_WIN =   wd_this->get_w_win_ctr).
              lo_w_rule->fire_exit_plg(
              url =    'www.google.com'  ).

****************************************************************
Displaying formatted text in webdynpro UI
Steps:
1) Create the text in SE61 using the document class General text
    ex: my_sample_text
2) Go to view in webdynpro and add the ui element
    formatted textview (ex: ftv )
3) Create a context element for formatted textview ex: text1 of the type string
4) bind the context element text1 to formatted text element ftv
5) Write the followed code to populate data in the formmated text view ftv.

*Code snippet
Data: lo_el_context_ftv type ref to if_wd_context_element,
         lv_ftv_text type string,
         lt_ftv_text TYPE STANDARD TABLE OF tline,
         ls_header TYPE thead,
         lo_format_text TYPE REF TO cl_wd_formatted_text,
         lv_doc_state TYPE dokstate,
         se61_object type dokhl-object value 'my_sample_text',
         lo_ft_text type ref to cl_wd_formatted_text.


* Get the formmated text by passing the se61 text id: my_sample_text
  CALL FUNCTION 'DOCU_GET_FOR_F1HELP'
    EXPORTING
      id         = 'TX'
      langu    = sy-langu
      object   = se61_object
    IMPORTING
      dokstate = lv_doc_state
      head       = ls_header
    TABLES
      line     = lt_ftv_text
    EXCEPTIONS
      ret_code = 1
      OTHERS   = 2.


* Format the se61 text
    CALL METHOD cl_wd_formatted_text=>create_from_sapscript
      EXPORTING
        sapscript_head  = ls_header
        sapscript_lines = lt_ftv_text
        type            = cl_wd_formatted_text=>e_type-formatted_text
      RECEIVING
        formatted_text  = lo_ft_text.
    IF lo_ft_text is not initial.
     lv_ftv_text = lo_ft_text->m_xml_text.
    ENDIF.


* Bind the text to the context
  lo_el_context_ftv = wd_context->get_element(  ).
  lo_el_context_ftv->set_attribute(
    EXPORTING
      name =  `TEXT1`
      value = lv_ftv_text ).
****************************************************************

Controlling the visibility of the webdynpro UI elements
-Every webdynpro ui lement has a visibility property with options visible and none. To dynamically
 control the visibility of the ui element refer to the below steps.

1) Create a context attribute called visibility referring to data element wdui_visibility.
   data element wdui_visibility has possible values 01 for invisible and 02 for visible.
2) bind the context attribute visibility to the webdynpro ui elements (ex: tv_textview1) property visible.
3) write code to set the value of the context attribute visibility to 01 to hide the text view ui element
    and 02 to make the text view visible.
****************************************************************
Controlling message area height in webdynpro ABAP

Create a transparent container and under that create a message area. Create a context attribute scroll_mode type WDUI_SCROLLING_MODE and bind the scrolling mode property of the transparent container to context attribute scroll_mode.

Now code to set the scroll_mode to '02' for no scroll, '01' for scroll and '00' for auto scroll.

****************************************************************
Coding business logic in assistance class of webdynpro component

-->It is advised to code the business logic of webdynpro application in an assistance
     class because it adheres to MVC design paradigm and it refers to Model part of MVC.
     it is also called Model class.
-->Coding Business logic in assistance class improves performance and also there is
     a clear separation between the flow logic and the business logic
-->For the management of the dynamic texts by creating text symbols and accessing the
     For ex: if the assistance class has the text symbol: 999, it can be accessed using 
the code:
     dyn_text = wd_assist->if_wd_component_assistance~get_text( key = '999' ).
-->The assistance class is instantiated when the webdynpro component is called
     and an assistance class is inherited from the abstract class 
    
     CL_WD_COMPONENT_ASSISTANCE, a
n object wd_assist is created after
     instantiation. No explicit instantiation is required here.
****************************************************************
Using webdynpro trace tool

-webdynpro trace tool is used to analyse the problems and issues with webdynpro application.
 the trace can be switched on in the transaction WD_TRACE_TOOL for a given user.
 Once this trace is set it is active for 30 minutes and when the application is run during that time trace is 
 recorded and that can downloaded.
-The trace tool is shown in the bottom of the webdynpro application.
-To download the trace file, choose the option trace as zip and exit.
****************************************************************
ICM Tracing for webdynpro Application

ICM(Internet Communication Manager)
ICM is used to communicate between the SAP web application server and the outside world
using http,https protocols. ICM trace is use to analyze the behaviour of the webdynpro application on the serverside and see for any communication and performance issues.
ICM trace can be set from the transaction SMICM.
All the ICM parameters can also be used in SMICM transaction: ex: server details,
time out settings etc.Here are the steps
1) Go to transaction: SMICM
2) click on the menu option goto->trace file->Start
   there are different levels of 1 is the lowest and 3 is the highest.
   the data traffic is analysed all the highest level.
****************************************************************

F4 help for inputfields in webdynpro abap
F4 help for inputfields in webdynpro can be achieved in 3 ways:
1) F4 help based on R/3 DDIC searchhelp concept.
    if the inputfield refers to DDIC object and if it has search help, A search help is automatically
    assigned to the inputfield and shown.
2) OVS(Object Value Selection
     you can achieve f4 help by using the standard component wdr_ovs, event: ovs.
3) Freely programmable Input help.
   
    you can achieve f4 help by implementing the interface IWD_VALUE_HELP
****************************************************************   

Messages in webdynpro application
You can show messages in the webdynpro application by using the ui element message_area.
note message_area ui element is mandatory to trigger messages in webdynpro application. messages can be triggered using the code wizard and it uses the message manager interface  IF_WD_MESSAGE_MANAGER.

Here are a set of frequently used method to trigger messages.
1) report_success: report a success message on the webdynpro application
2) report_warining: report a warning message on the webdynpro application
3) report_error: report a error message on the webdynpro application
4) report_t100_message: reports a message from the t100 table.
5) clear_messages: clears the messages from the webdynpro application, however this will
   happen automatically on the next event on the ui.
6) is_empty: checks for any messages already raised.
7) report_attribute_error_message: reports an error for the context attribute

Sample code snippet to generate a t100 message.

**Get the message manager
data: lref_current_controller type ref to if_wd_controller.
data: lref_message_manager type ref to if_wd_message_manager.
data: lv_msgv1 type symsgv.
data: lv_msgv2 type symsgv.
data: lv_msgv3 type symsgv.
data: lv_msgv4 type symsgv.

lref_current_controller ?= wd_this->wd_get_api( ).

call method LREF_CURRENT_CONTROLLER->GET_MESSAGE_MANAGER
  receiving
    MESSAGE_MANAGER = LREF_MESSAGE_MANAGER.

* report t100 message
call method LREF_MESSAGE_MANAGER->REPORT_T100_MESSAGE
  exporting
    MSGID         =’ZZZZ’   "Message class
    MSGNO       =’999’    "Message Number
    MSGTY        =’E’         "Message type
    P1                 = lv_msgv1
    P2                 = lv_msgv2
    P3                 = lv_msgv3
    P4                 = lv_msgv4.
****************************************************************   

Sap abap webdynpro how to hide freely programmable f4 help for an input help

Freely Programmable F4 Helps are created to have custom F4 functionality for a webdynpro input field.
A freely programmable input field can be attached to the context attribute in the definition area.

The following code snippet explains how to hide  and unhide the f4 help if required. This function is mostly required if you have edit and display mode for your screen and you want to hide the f4 function in display mode.

  DATA lref_node_info     TYPE REF TO if_wd_context_node_info.
  DATA lo_nd_input TYPE REF TO if_wd_context_node.
  DATA ls_input TYPE wd_this->element_input.
* navigate from <CONTEXT> to <INPUT> via lead selection
  lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).

  if lo_nd_input is INITIAL.
    return.
  endif.

  CALL METHOD lo_nd_input->get_node_info
    RECEIVING
      node_info = lref_node_info.

  IF iv_active IS INITIAL. "To Deactivate the F4 Help
    CALL METHOD lref_node_info->set_attribute_value_help
      EXPORTING
        name            = 'INPUTFIELD1'    "Input field name
        value_help_mode = if_wd_context_node_info=>c_value_help_mode-deactivated
        value_help      = 'F4_HELP_NAME'. "Freely programmable F4 help name
  ELSE.
    CALL METHOD lref_node_info->set_attribute_value_help
      EXPORTING
        name            = 'INPUTFIELD1'   "Input field name
        value_help_mode = if_wd_context_node_info=>c_value_help_mode-application_defined
        value_help      = 'F4_HELP_NAME'. "Freely programmable F4 help name
  ENDIF.




Saturday 16 April 2011

SAP ABAP Webdynpro Interview Questions and Answers

1)   Types of ABAP UI Technologies
      Ans: Webdynpro for ABAP, BSP
2)   MVC Architecture Concepts and usage of the same in ABAP Webdynpro
      Ans: As per the MVC Architecture there is a clear separation between flow logic, view and the Business
              Logic. View holds all the UI elements that are visible in the UI, Controllers have the flow logic.
              Controllers are of different kind (Component Controller, View Conroller,Window Controller).
              Business logic is held in the Model which is in the form of Assistance class
              in webdynpro context.  
3)   Difference Between the View Container and the Transparent Container
      Ans: View Container holds the views, there can be multiple views assigned to the view container but only
      one view can be active(viewed) at a time. Transparent holds the webdynpro UI elements, A layout type
      can be associated  with it.
4)   What does a Model Class Consists of
      Ans: Model Class is the Assitance class in webdynpro. It contains the Business logic in the form of
      methods, Global data & Constants in the form of Class Attributes. The Model class can be accessed in
      webdynpro component using the attribute wd_assist->. Note: All the visibility properties of the
      Class are applicable when accessing the class using the object wd_assist.
5)   What is an Assistance Class and How is it Instantiated in Webdynpro
       Ans: Assistance Class is the model class which would act as the data provider  for the webdynpro
       component and it is instantiated by the webdynpro component during the run time and no explicat
       instantation is required.
6)   Design Patterns in Webdynpro(GAF,OIF,QAF Etc)
      Refer to the link:
      FPM Concepts in Webdynpro
7)   How do you debug an web based Application
      (Could be from ABAP Webdynpro, BSP or CRM Web UI)
       Ans: External break-points should be used to debug web UI's.
8)   How do you create a ALV Report/Editable ALV in Webdynpro
      Ans: ->Add the Standard ALV component to the web dynpro Component.
              ->Use Components tab: Ex: ALV_MATS  type SLV_WD_TABLE
              ->Create a context node with the table field information to be displayed
              ->Write the ALV Default Code for table display
              ->Set the read only attribute to false to switch to editable mode using
                 the method set_read_only of the interface 
                IF_SALV_WD_TABLE_SETTINGS implementing class 
                CL_SALV_WD_CONFIG_TABLE).
9)   How do you Navigate between Views in Webdynpro
       Ans: Navigation between Views is through Plugs(Inbound and Outbound),
10) Usage of Plugs in Webdynpro
       Ans: Plugs are used to Navigate between the views. Parameters can be passed using the plugs similar to
       interface parameters of function module or a class method.
11) Usage of Webdynpro Component Controller
       Ans: Component controller is used to the store the Global attributes and Methods of the component.
       Attributes/methods declared in the component controller are visible through out the component and they
       are accessed using the attribute wd_comp_controller outside of component  controller(like
       views,windows etc) All the context nodes defined in the component controller are
       visible in all the views and windows of the component.
       Ex: if a variable called gv_count is defined in the component controller, it can be accessed in the view
       using the syntax wd_comp_controller->gv_count.
12) How do you access a Context Nodes and elements Programmatically
      Code required for accessing the Context Nodes can be written using the webdynpro code wizard.
      For Ex: if there exists a Node Node1 with cardinality 1:1 and has 3 Attributes to it Att1, Att2,Att3. The
      attributes can be accessed using the below code.

      data: lo_nd_node1 type ref to if_wd_context_node.
      data: lo_el_node1 type ref to if_wd_context_element.
      data: ls_node1 type wd_this->element_node1.

      lo_nd_node1 = wd_context->get_child_node
      ( name = wd_this->wdctx_node1 ).
      lo_el_node1 = lo_nd_node1->get_element( ).

**Read Node1
      lo_el_node1->get_static_attributes(
          importing
          static_attributes = ls_node1 ).

**Write to Node1
      lo_el_node1->set_static_attributes(
          exporting
          static_attributes = ls_node1 ).

13) Message Areas in Webdynpro
      Message areas are created in views to display messages (Error,Success,Warning,Info).
      WD allows to have multiple Message errors in a view but throws an error when the view is displayed.
      Use the code wizard to get code for raising error messages. Few of the message classes and methods
      are: Interface: if_wd_message_manager.
      methods: report_t100_message.(used to report message from the  message class)
14) Concept of OTR(Online Text Repository) and its Usage
      OTR's are similar to text elements in ABAP. OTR's are created for
      UI texts and texts can be maintained in multiple language.
      OTR's can be created using the transaction: SOTR_EDIT
15) Concept of Interface Views
       If the views of a different components are need to be used in a webdynpro component mark the view as
       interface view and use it in another component. It's similar to using a include in a program.  A Interface
       view of the component can be used in any no of components. this concept supports the reusuability of
       the views.
16) Sequence of Webdynpro Events:
      Ex: WDDOINIT,WDMODIFYVIEW,WDAFTERACTION,
      WDBEFOREACTION etc
       Sequence: WDDOINIT of the component controller,
                       WDDOINIT of the Window Controller,
                       WDDOINIT of the View Controller,

      WDMODIFYVIEW(On Input/Display on any UI Element).
      WDBEFOREACTION(Method for validation of user input,
      Once the user action happens on the UI)
      WDAFTERACTION(Method for non-action specific operations
       before Navigation)
      WDDOEXIT( Exit from the View/Window/Component Controller)
      WDPOSTPROCESSING(used to perform exception handling for supply function methods)
17) Can a Component have Multiple Applications
       Yes, For a given webdynpro component any no of applications can be  created. Applications are similar
       to transactions in SAP.  You can associate different Interface views of the component to create different
       applications using the same component.
18) How do you launch a Webdynpro Application from a Transaction
      Refer to the previous blog Calling webdynpro application from a Transaction
      URL: http://sapabapwebdynpro.blogspot.com/2011/04/call-abap-webdynpro-application-from-r3.html
19) How do you Navigate between two Webdynpro Components
      You can use Interface views to navigate between components or create a navigation class and
      do a explicit call.
20) Creating a tree in Webdynpro
      Tree UI element is used to create Tree  in Webdynpro. Tree can be defined as part of the table column.
21) Usage of Exit Plug in a Webdynpro Window
      Exit plugs are outbound plugs used to close the webdynpro application.  they can be called from the view
      which are embedded in the window  Note: Exit plugs won't work in portal environment.
      Exit plugs can also be used to pass the call to another URL. Here is the sample code snippet of the exit
      plug call:
      method onexit .

        data url type string.
        data close_window type wdy_boolean.
        url = 'url_name'.
        close_window = abap_false.
        wd_this->fire_to_exit_plg( url = url
                                                 close_window = close_window ).
      endmethod.


22) why FQDN(Frequently Qualified Domain Name) is necessary for running Webdynpro Applications
      Refer to sap help:
      http://help.sap.com/saphelp_erp2005/helpdata/en/67/be9442572e1231e10000000a1550b0/content.htm
21) Standard ALV Component required to create ALV Reports in Webydnpro
      SALV_WD_TABLE
22) How do you build Select Options in Webdynpro
      Using the standard webdynpro component WDR_SELECT_OPTIONS
      You can refer to the example: WDR_TEST_SELECT_OPTIONS
23) How do you build F4 Search Help in Webdynpro
      A F4 help for an input field can be made available by attaching the search help
      to the table field. Usage of standard help component WDR_OVR.
      Creating a component for help and attaching it to the node element as Freely programmed value help
24) How are Plugs(Inbound/Outbound) bounded in the Window
      Plugs are created in the view and bounded in the window by using the drag drop option in the window
      view.
25) How do you Control the visibility of the Webdynpro UI elements Programmatically.
      Create a context element of type wdui_visibility and bind to the visibility property of the UI element.
26) What is the use of Interface views/nodes in Webdynpro.
       Interfaces nodes and views are created to use them in other webdynpro components.
27) How do you navigate between different Webdynpro applications
      Create a navigation class and trigger the target application to be called.
28) What are the webdynpro init  events and what is the sequence of trigger

       Sequence: WDDOINIT of the component controller,
                       WDDOINIT of the Window Controller,
                       WDDOINIT of the View Controller,

29) How are Error messages created and handled in webdynpro
      Create a message UI element in the view and trigger the message required(Error,warning,status) using the
      code generation wizard.
30) What is an OTR and mention its usage in Webdynpro
       Online Text Repository is the central storage for texts for webdynpro
       applications. An otr can be fetched in the program using the below mentioned code.
       data: lv_string type string.
        lv_string = cl_wd_utilities=>get_otr_text_by_alias(  alias =    
              'PACKAGE/OTR_NAME' ).

31) Can text elements be used in webdynpro, if yes how?
       Yes text elements can be used in webdynpro.
       Refer to the below code snippet.
        data: lv_string type string.
        lv_string = wd_assist->if_wd_component_assistance~get_text(  '025' ).     
32) What is the use of Road Map UI element
       Roadmap UI element is used to display step-by-step workflows. It can used to clearly define a process.
33) What are exit plugs?How are they created?
      Exit plugs are used to exit from the webdynpro page or an webdynpro window.
      Exit plugs are created in the window.
34) Is it possible to hide F4 function for an Input element programmatically?
      Yes it is possible to hide F4 function attached to an input field.Use the interface
      if_wd_context_node_info and the method set_attribute_value_help
35) How do Webydnpro Upload and download functions work, Explain.
      Fileupload UI element is used upload files from desktop the application.
      There is also restriction on the max data volumes that can be uploaded.
      Filedownload UI element is used to download files to the client.
36) Explain the concept of Road Map UI element in Webdynpro.
      Refer to the link: Road map UI element webdynpro for abap
37) How to create popups in webdynpro.
      Create a view and embed the view in the window and call the window to trigger the popup.
38) Explain the concept of OVS and its usage
      WDR_OVS is the standard webdynpro component to generate F4 helps
      for the input field. OVS refers to Object value selector.
39) Using Radio Buttons/Checkboxes/Dropdown lists in webdynpro
      Radio buttons/Checkboxes are used for objective selection similar to what is available in SAP GUI. An
      event is associated with each UI element for onclick action.
40) FPM Concept and its usage in webdynpro.->>>>Refer to the link

41) what is internationalization in webdynpro abap application?
      Internalization refers to creation of texts used in webdynpro application in a specific language and
      providing option to translate to multiple languages if necessary. This is achieved by using OTR's or text
      elements for static texts and performing translation when required.
42) What is Cardinality of a context node in webdynpro
       Cardinality refers to no of elements a node can accomodate during run time. When a node is created the
       cardinality is assigned to it. Cardinality is of the following kinds:
       0:1 -->At run time, no element or maximum one element can be instantiated
       0:n -->At run time, no element or maximum of n elements can be instantiated
       1:n -->At run time, minimum one element or maximum of n elements can be instantiated
       1:1 -->At run time, only one element should always be instantiated
       if you try violating the cardinality there would be a short dump saying Number of elements of the
       collection of node node_name violates the cardinality
 43) what is Personalization in abap webdynpro application
        Personalization refers to changing the properities of UI elements at runtime. Personalization settings are
        user specific. Configuration controller is used for personalization function.
        ex: Changing the order of columns in a table display.
 44) what are the controller types in webdynpro ABAP
        -Component Controller->Component Controller is global part of the component and each component
          has only one component controller. Global Attributes and  methods required by the component can be
          defined here.
        -Custom Controllers->Custom controllers are defined during design time and  these are optional. The
          visibility Custom controllers is in the entire component and has the life time equal to life time of the
          component. Custom controllers are used if a set of views have to be grouped to perform
          a special function or hold a set of data.
         -View Controller->Flow logic of the views are in view controller and a view can  have only one view
           controller. The visibility of View controller is specific to view only.
         -Configuration Controller->Configuration controller is used achieve personalization function.
         -Window Controller->A window controller exists for each window and can also have methods
           to write coding logic. Every window will have the default method and it is used to  receive
           parameters. The windows controllers are visible in entire component and also in the custom         
           controller.
45)what are Layout types in Webdynpro and its usage
         ->Flow Layout  : Used for sequential display of WD UI elements.
         ->Row Layout  : here each ui element is displayed on its own column and the width differs from row to
             row.Rowheaddata is used to insert a break.
         ->Grid Layout  : Ui elements are arranged based the no of columns. line breaks  are inserted based on
             the size.
         ->Matrix Layout: Matrix layout arranges ui elements in columns. Matrixheaddata is used to insert a line
            break.
            Usage of the appropriate layout to build a webdynpro application is determined during the UI
            design.
 46)what is supply function method in SAP
         ->Supply function method is used to populate the context node or to default values to the context
             node elements. supply function method is called before the node is accessed for first read.
         ->Using supply function method is optional
47)what is singleton property of context node
         ->Singleton property is one of the attributes of the context node if this is set there can be only one
             instance of the respective context node at runtime.
48)How to default a value to the context attribute
     In the context attribute there is a property to set the default value. Use the same, However the
     default value can be overwritten using the set_attribute method of the interface if_wd_context_element.
49)Is it possible to pass parameters to webdynpro URL?
     yes you can pass parameters to webdynpro URL and it is passed as below.
     for ex: your url is http://server.com/wd_url_name?sap-system-login-basic_auth=X&sap-client=800&sap-
     language=E
     Here the parameter values are passed for sap-system-login-basic_auth,sap-client and sap-language.
    ***********************More to Come********************

Call ABAP Webdynpro Application from a R/3 Transaction

Please find the Code Snippets to Call a Webdynpro ABAP Application from a R/3 Transaction
Create a ABAP Program from SE38 and associate a transaction to it and Call the same.

REPORT  ZWD1.

***data declarations
DATA:gv_url_string TYPE string,
     gv_url_c(250) TYPE c.

CONSTANTS:gc_login_auth TYPE string VALUE '?sap-system-login-basic_auth=X',
          gc_client     TYPE string VALUE '&sap-client=',
          gc_lang       TYPE string VALUE '&sap-language='.

***Get the Url of Webdynpro Applicaion with HTTPS Protocol
CALL METHOD cl_wd_utilities=>construct_wd_url
  EXPORTING
    application_name = 'WDR_TEST_NAVIGATION'
    in_protocol      = 'HTTPS'
  IMPORTING
    out_absolute_url = gv_url_string.

***If the server and port have not got added, try without HTTPS Protocol
IF gv_url_string CS '//:/'.
  CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
      application_name = 'WDR_TEST_NAVIGATION'
    IMPORTING
      out_absolute_url = gv_url_string.

***If server and port have still not got added
  IF gv_url_string CS '//:/'.
**Raise a Error Message
  ENDIF.
ENDIF.

***Build the URL
CONCATENATE gv_url_string
            gc_login_auth
            gc_client sy-mandt
            gc_lang   sy-langu
  INTO gv_url_c.

***Call the Browser
CALL FUNCTION 'CALL_BROWSER'
  EXPORTING
    url                    = gv_url_c
  EXCEPTIONS
    frontend_not_supported = 1
    frontend_error         = 2
    prog_not_found         = 3
    no_batch               = 4
    unspecified_error      = 5
    OTHERS                 = 6.