Lesson 1: Creating a Custom Control
Use
In this lesson, you first of all create the prerequisites for integrating a control into an ABAP program. Next, you create a control for editing texts whose functions you will enhance step by step later on.
Overview: Objectives
In this lesson, you learn:
-
How to integrate a visible control into a screen.
-
How to create a control.
-
Which functions are automatically supported by the textedit control.
Basics
Controls are wrapped through ABAP Objects classes. Creating a control is consequently equivalent to instantiating an object, that is, generating an instance.
Basically, you generate objects using a Constructor that determines the initial properties of the object. Each class that allows you to generate objects has such a constructor.
When you generate an object, you do not explicitly call the constructor. Instead, you create an instance using the CREATE OBJECT statement that implicitly executes the constructor.
To Continue
Lesson 2: Event Handling describes how to catch and further process events of a control.