You are on page 1of 3

Global class (z745class2): Methods with

importing parameters
Attributes Tab :

Methods tab :

Parameters for method M1 :

Implementation for method M1 :


method m1.
empno = i_x.
ename = i_y.
call method m2.
endmethod.

Implementation for method M2 :


method m2.
write :/ empno,ename.
endmethod.

Executable program : Access Global class


methods with parameters
report

z745oops6.

data ob type ref to z745class2.


create object ob.
parameters : p_x type i,
p_y(20) type c.

call method ob->m1


exporting
i_x
= p_x
i_y
= p_y.

You might also like