Creating Instances

Use

You instantiate a class using the ABAP statement CREATE OBJECT. The constructor is called and you also need to supply values for the parameters of the constructor if there are any.

Prerequisites

You have started the test environment.

Procedure

  1. In the test environment, choose the Instance pushbutton.

    If the relevant constructor has parameters, a dialog box appears.

  2. Enter valid values for the constructor parameters.
  3. To create an instance, choose Instance.

Result

You have created an instance (test object) for the class you want to test.