CLASS lcl_report DEFINITION.

  PUBLIC SECTION.

    METHODS:

      constructor IMPORTING iv_rec TYPE i,

      select_data,

      write_data.

  PRIVATE SECTION.

    DATA: v_rec TYPE i.

ENDCLASS.

*

START-OF-SELECTION.

  DATA: lo_report TYPE REF TO lcl_report.

  CREATE OBJECT lo_report

    EXPORTING iv_rec = 5.

  lo_report->select_data( ).

*

*

CLASS lcl_report IMPLEMENTATION.

  METHOD constructor.

    WRITE: / '------'.

    WRITE: / 'New Object', iv_rec.

    v_rec = iv_rec.

  ENDMETHOD.

  METHOD select_data.

    WRITE: / '   Selecting data', v_rec.

  ENDMETHOD.

  METHOD write_data.

    WRITE: / '   Writing data', v_rec.

  ENDMETHOD.

ENDCLASS.


Serkan AKKAVAK

Computer Engineer BSc

SAP Department Deputy Manager

Contact : serkurumsal@yandex.com