Monday, December 20, 2010
This post gives the introduction of Control framework and Features. It explains different types of containers and usages.
Control Framework introduction:The application logic runs on the SAP application server (automation client), which drives the custom control (automation server) at the front end.
A Control is the application running on the front end, which is in charge to display data transmitted by the SAP system. For example, there are the following controls: ALV Grid, TextEdit, HTML Viewer, Tree, etc.
A control on the front end side can be accessed by an ABAP program through a corresponding ABAP Object class on the server side.
Steps to work with an X control:
- A classic screen must be created with a special area named "custom container" at a given position and a given size.
- During the Process Before Output event (just before the screen is displayed), once:
- A custom container control must be instantiated using ABAP Object and the name of the custom container in the screen must be transmitted to the custom container control
- The X control must then be instantiated and assigned to the custom container, and data are sent to the control through method calls
- It is also possible to ask the control to react to some events and trigger an ABAP Object Event in the ABAP program (without triggering the Process After Input event)
- In the Process After Input event (just after a function key of the screen (or the control) is pressed), or during the ABAP Object Event processing, the data from the control may be read through method calls.
Features:
- The Control Framework supports controls (ActiveX and JavaBeans) that are implemented within the SAP GUI.
- The Automation Controller is run from ABAP using the classes CL_GUI_CFW, CL_GUI_OBJECT, and CL_GUI_CONTROL. These allow you to create and destroy custom controls, set and get their attributes, and call their methods.
| 
Container type | 
Container class | 
Usage | 
| 
SAP Custom Container | 
CL_GUI_CUSTOM_CONTAINER | 
The SAP Custom Container allows you to display controls in an
  area defined on a normal screen using the Screen Painter | 
| 
SAP Dialog Box Container | 
CL_GUI_DIALOGBOX_CONTAINER | 
The SAP Dialog Box container allows you to display controls in
  an amodal dialog box or fullscreen | 
| 
SAP Docking Container | 
CL_GUI_DOCKING_CONTAINER | 
The SAP Docking Container allows you to attach a control to
  any of the four edges of a screen as a resizable screen area. You can also
  detach it so that it becomes an independent amodal dialog box | 
| 
SAP Splitter Container | 
CL_GUI_SPLITTER_CONTAINER (or CL_GUI_EASY_SPLITTER_CONTAINER) | 
The SAP Splitter Container allows you to display more than one
  control in a given area by dividing it into cells. The Easy splitter is used
  to divide the area into two cells | 
Followers
Popular Posts
- SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program
- ABAP - ALV Report example with steps
- ABAP - Step by step tutorial on Smart Forms - Template Node
- ABAP - Sending email with pdf attachment
- SAP ABAP - CL_ABAP_CHAR_UTILITIES class usage
- ABAP - Multiple value selection from F4 help for SELECT-OPTIONS
- Execute ABAP Report using SUBMIT statement
- ABAP - Select all or Deselect all in ALV or Check box handling in ALV
- SAP ABAP-PDF display in Custom Container
- Web Dynpro ABAP ALV - ON_CLICK event
 
 
 
0 comments:
Post a Comment
Your useful comments, suggestions are appreciated.Your comments are moderated.