Show TOC Start of Content Area

Procedure documentation Creating Instances  Locate the document in its SAP Library structure

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.

Note

In the test environment, the system automatically instantiates classes that have no static attributes or methods.

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.

 

 

End of Content Area