SAP Control Framework
Control Framework Architecture
Event Handling
Registering and Processing Events
Context Menu
Drag and Drop
Process Flow of a Drag and Drop Operation
Drag and Drop Events
Example of Drag and Drop Programming
Drag and Drop in WAN Environments
Lifetime Management
Automation Queue
Synchronizing the Automation Queue
Error Handling in Synchronization
Automation Queue Services
Using Controls in a WAN
Creating a Control: SAP Picture Example
Methods of the OO Control Framework
Controls Tutorial
Component Integration: Controls Tutorial
Notes to the User
Prerequisites
System Configuration
Architecture
Lesson 1: Creating a Custom Control
Introduction
Exercise 1: Reserving an Area for a Control
Exercise 2: Creating a Control and its Container
Exercise 3: Calling Methods of the Control
Summary
Lesson 2: Event Handling
Introduction
Exercise 1: Writing an Event Handler Method
Exercise 2: Registering an Application Event
Exercise 3: Registering a System Event
Exercise 4: Responding to an Event
Summary
Lesson 3: Flush Optimization
Introduction
Exercise 1: Using Imported Values
Exercise 2: Value Passing Between Methods
Exercise 3: Control Methods in Subroutines
Exercise 4: Using Multiple Controls
Summary
Lesson 4: Testing and Error Handling
Introduction
Exercise 1: Activating the Trace Mode
Exercise 2: Synchronous Method Processing
Summary
Additional Sources of Information
ALV Grid Control
Instance for ALV Grid Control
Working with the ALV Grid Control
First Steps
Application-Specific Programming
Layouts
Saving Layouts
Integration of Self-Defined Functions
Changing Standard Functions
Defining GUI Elements in the Toolbar
Defining a Context Menu
Defining a Menu in the Toolbar
Special Aspects for Menus with a Default Button
Hiding Standard Functions
Drag & Drop With the ALV Grid Control
D&D Behavior for all Rows/Columns
D&D Behavior for Special Columns
D&D Behavior for Special Rows/Cells
Elements in the Grid
Output of Exceptions
Coloring Rows
Coloring Cells
Displaying Cells as Pushbuttons
Including Hyperlinks
Grouping Fields for Field Selection
Using the Conversion Exit
Using the ALV Grid Control in WANs
The Field Catalog
Generating the Field Catalog
Generating the Field Catalog Automatically
Generating the Field Catalog Manually
Generating the Field Catalog Semi-Automatically
Fields of the Field Catalog
Reference to the Output Table
Reference to the Data Dictionary
Value Display with Currency/Quantity Unit
Output Options of Columns
Formatting Column Contents
Identifying Rows in the ALV Grid Control
Texts
Texts in the Field Catalog
Parameters for Fields Without DDIC Reference
Other Fields
Fields of the Sort Table
The Layout Structure
Properties of the ALV Grid Control
Exceptions
Colors
Totals Options
Interaction Control
The Print Structure
The Consistency Check
SAP Container
Displaying and Relinking Containers
SAP Custom Container
SAP Dialog Box Container
SAP Docking Container
SAP Splitter Container
SAP Easy Splitter Container
SAP Calendar Control
Instance for the SAP Calendar Control
Creating a Control: SAP Picture Example
Working with the SAP Calendar Control
Registering and Processing Events
Events of the SAP Calender Control
SAP HTML Viewer
Instance for the SAP HTML Viewer
Working with the SAP HTML Viewer
Registering and Processing Events
Using Controls in a WAN
Special Considerations for the SAP HTML Viewer
SAP Picture
Instance for the SAP Picture
Creating a Control: SAP Picture Example
Working with the SAP Picture
Registering and Processing Events
Using Controls in a WAN
Special Considerations for the SAP Picture
SAP TextEdit
Using Controls in a WAN
Special Considerations for the SAP Textedit
Overview of GUI Dependencies
Functional Sorting of Some Methods
Setting and Getting Text
Setting and Getting Text Positions
Highlighting and Protecting Text
Finding and Replacing Text
Keyboard and Mouse Control in the Editor Window
SAP Toolbar
Using the SAP Toolbar Control
Using Static Dropdown Menus
Events of the SAP Toolbar Control
Registering and Handling Events
Coding Example
Using Controls in a WAN
Special Considerations for the SAP Toolbar
SAP Tree and Tree Model
The Tree Controls in SAPGUI for HTML
SAP Tree
Programming the SAP Tree
Overview of SAP Tree Classes
The Inheritance Hierarchy
Troubleshooting
Important Notes
Example Programs
Using Controls in a WAN
Special Considerations for the SAP Tree
Incremental Tree Construction
The Simple Tree
Creating a Control: SAP Picture Example
Using the Simple Tree
Changing the Attributes of the Control
Finding Out the Attributes of the Control
Registering and Processing Events
Drag and Drop
Process Flow of a Drag and Drop Operation
Drag and Drop Events
Defining Drag and Drop Events in the SAP Tree
Example of Drag and Drop Programming
The Column Tree
Creating a Control: SAP Picture Example
Using the Column Tree
Changing the Attributes of the Control
Finding Out the Attributes of the Control
Registering and Processing Events
Drag and Drop
Process Flow of a Drag and Drop Operation
Drag and Drop Events
Defining Drag and Drop Events in the SAP Tree
Example of Drag and Drop Programming
The List Tree
Creating a Control: SAP Picture Example
Using the List Tree
Changing the Attributes of the Control
Finding Out the Attributes of the Control
Registering and Processing Events
Drag and Drop
Process Flow of a Drag and Drop Operation
Drag and Drop Events
Defining Drag and Drop Events in the SAP Tree
Example of Drag and Drop Programming
SAP Tree Model
Overview of SAP Tree Model Classes
The Inheritance Hierarchy
Troubleshooting
Important Notes
Example Programs
Using Controls in a WAN
The Simple Tree Model
Getting Started with the Simple Tree Model
Searching in the Simple Tree Model
The Column Tree Model
Getting Started with the Column Tree Model
Reloading Items
The List Tree Model
Getting Started with the List Tree Model
Reloading Items
Processing Events in the Tree Model
Important Data Structures
Structure TREEMSNODT
Structure TREEMSUNO
Structures for Headings of Item Trees
Structure TREEMLNODT
Structure TREEMLITEM
Structure TREEMCITEM
Structure TREEMCNODT
Structure TREEMSNOD
SAP Data Provider
Description of Functions
Function Modules
DataProvider Object
Desktop Office Integration
Desktop Office Integration - Architecture
Instances for SAP Desktop Office Integration
Office Integration Programming
Using Controls in a WAN
Special Considerations for Desktop Office Integration
Error Handling after Calling a Method
Error Messages and Their Meanings
raise_message
get_message
SAP Document Container
Generic Parameters
Documents
Processing Office Application Events
Event Handling Using Static Methods
Event Handling Using Instance Methods
Exchanging Data Between the SAP System and the Desktop Application
Link Server
Strategies for Working with the Link Server
Table Collection
Working with the Word Processor Interface
The Form Interface
Working with the Form Interface
Mail Merge Interface
Using the Script Collection
Using the Spreadsheet Interface
Important Table Structures
Using the Pivot Interface
Important Table Structures
Test Tools for Desktop Office Integration
DOI Installation Test Using a Standalone Executable Program
DOI Installation Test Within Word
DOI Installation Test Within Excel
Test for the TableFactory OCX
The Document Viewer
Using the Document Viewer
Coding Example
Dynamic Documents
Dynamic Document
Creating Dynamic Documents
Performance Note
Filling Dynamic Documents
Adding Simple Elements to a Dynamic Document
Setting Links
Adding Complex Elements to a Dynamic Document
Creating a Form
Using Pushbuttons
Using Input Fields
Using Dropdown List Boxes
Tables
Creating Standard Tables
Creating a Quick Table
Displaying a Dynamic Document
Printing a Dynamic Document
Hierarchy of Involved Classes
Type Group SDYDO: Frequently-Used Types