Listing 6.1  Codefragment zur Definition und Verwendung von Klassen und Objekten
REPORT  z_product_configurator .

* Class definition
CLASS lcl_product DEFINITION.
  PUBLIC SECTION.
    METHODS:
      set_price IMPORTING _price TYPE f.
    DATA:
      price TYPE f.
ENDCLASS.                    "lcl_product DEFINITION

* Main program start ***
DATA:
  l_rcl_product TYPE REF TO lcl_product.

CREATE OBJECT l_rcl_product.
CALL METHOD l_rcl_product->set_price						
  EXPORTING
    _price = '123'.
* Main program end ***

* Class implementation
CLASS lcl_product IMPLEMENTATION.
  METHOD set_price.
    price = _price.
  ENDMETHOD.                "lcl_product
ENDCLASS.                   "lcl_product IMPLEMENTATION