Skip to Content
0
Former Member
Mar 15, 2007 at 11:58 PM

ABAP OOP / Calling Method ...Help

7323 Views

Trying out few oop codes....

While calling class instance methods and passing parameters, when to use the following syntax.

data: cvar type ref to class1.

cvar->method( exporting variable1 = value )

(or) some time i see sample codes with out key word 'exporting'

cvar->method( variable1 = value ) .

(or)

cvar->method( value ) .

(or) some times with key word CALL METHOD

CREATE OBJECT cvar

CALL METHOD cvar->method

EXPORTING

variable1 = value.

Tried out a uniform way of calling ,but getting errors.Any inputs please..

Thanks,

Bvan