Abap

Páginas: 70 (17466 palabras) Publicado: 26 de febrero de 2013
ABAP Web Dynpro 

ABAP Web Dynpro
by

1

ABAP Web Dynpro 

Contents
Unit 9: Dialog Boxes (Popups)
Dialog Boxes (Popups)

Unit 10: Dynamic Modifications at Runtime
Dynamic Modifications at Runtime

Unit 11: Special Topics
Adaptation of Web Dynpro Applications SAP List Viewer for ABAP Web Dynpro Portal Integration Integrating Adobe Forms

Appendix 1: Phase Model Appendix 2:Dynamic Programming Advanced Topics Appendix 3: Value Help - Advanced Topics Appendix 4: Adaptation ofWeb Dynpro Applications – Advanced Topics Appendix 5: Portal Integration

2

ABAP Web Dynpro 

Unit 9
Overview

Dialog Boxes (Popups)
Dialog boxes are used to display concrete information or possible settings in a view popping up on top of the browser window the user clicked on. After thedialog has been exited, either the browser window underneath becomes active again or another screen may appear. There are two different types of dialog boxes: • External dialog box: An external dialog box is opened in a separate browser window and can be moved around the screen independently of the original window. External dialog boxes are generally modeless. • Modal dialog box: A modal dialog boxis opened in the current browser window. The modal dialog box may display a window of the same component, the interface view of a used component, or a confirmation dialog.

Common code section
Independent what kind of dialog box has to be created, the first part of the source code is identical. This consists of the following parts. 1. First, the reference to the component controller'sfunctionality (API) has to be determined. To do so, the method wd_get_api( ) has to be called for the controller reference WD_COMP_CONTROLLER . 2. This method call will return a reference of type IF_WD_COMPONENT. To store this reference, a corresponding reference variable has to be created ( lo_api_component ). 3. Next, the reference to the so called window manager has to be determined. This object offersfunctionality to create all kinds of dialog boxes. To do so, the method lo_api_component>get_window_manager( ) has to be called. 4. This method call will return a reference of type IF_WD_WINDOW_MAN-AGER . To store this reference, a corresponding reference variable has to be created ( lo_window_manager ). 5. Now, the different kinds of dialog boxes can be created by calling the appropriate methodof lo_window_manager. 6. Independent what kind of dialog box you created, you will receive a reference to an object

3

ABAP Web Dynpro 
representing the dialog box. This can be used to open or close (only for modal popups) the dialog box. This reference is of type IF_WD_WINDOW. A corresponding reference variable has to be created.

Figure 118: Dialog Box: Common Source Code

If you havea SAP system based on SAP NetWeaver 7.0 with a support package level < 10, then you have to create the code manually. For higher SP levels, the Web Dynpro Code Wizard will generate the complete code for sending windows as modal dialog boxes. If you want to create an external dialog box or if you want to create a confirmation dialog box, you have to replace the generated method call (step 5) bythe correct method call.

External Dialog Box
To create an external dialog box, the method create_external_window( ) of the window manager object is used. This method's parameter allow to set the window title and the URL of the object to be displayed in the dialog box. In addition there exist boolean parameters to display or hide the browser's menu bar, scroll bars, status bar, tool bar andaddress bar. Finally, the develop can decide whether the browser window should be resizeable or not.

4

ABAP Web Dynpro 
Figure 119: External Dialog Box: Example

Figure 120: External Dialog Box: Source Code

Modal Dialog Boxes

There are three different kinds of modal dialog boxes, that can be implemented with ABAP Web Dynpro: 1. Confirmation dialog box: This dialog box is used to...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Abap
  • Abap
  • Abap
  • ABAP
  • Transacciones Abap
  • La progra abap
  • Abap Oo
  • Sap abap

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS