CLASS lcl_sel DEFINITION.

  PUBLIC SECTION.

    DATA: v_rec TYPE i.

    METHODS:

      constructor.

 

ENDCLASS.

*

CLASS lcl_report_new_1 DEFINITION.

  PUBLIC SECTION.

    METHODS:

      constructor IMPORTING iv_num TYPE i.

ENDCLASS.

*

START-OF-SELECTION.

  DATA: lo_rep_n_o TYPE REF TO lcl_report_new_1.

  DATA: lo_sel_n_o TYPE REF TO lcl_Sel.

  CREATE OBJECT lo_sel_n_o.

  CREATE OBJECT lo_rep_n_o

    EXPORTING

      iv_num = lo_sel_n_o->v_rec.

*

CLASS lcl_report_new_1 IMPLEMENTATION.

  METHOD constructor.

    WRITE: / 'IV_NUM', iv_num.

  ENDMETHOD.

ENDCLASS.

*

CLASS lcl_sel IMPLEMENTATION.

  METHOD constructor.

    v_rec = 100.

  ENDMETHOD.

ENDCLASS.


Serkan AKKAVAK

Computer Engineer BSc

SAP Department Deputy Manager

Contact : serkurumsal@yandex.com