Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error with Receiving Parameter

Former Member
0 Kudos

Hi,

I've created a class called ZTEST_CLASS which has a method. SET_TYPE with Importing parameters im1 and im2 and a returning parameter ret. I've created an Object of the class using CREATE OBJECT myObj. When I'm callling the method as below

CALL METHOD myInstance->set_type EXPORTING im1 = '1982' im2 = 'Field Symbol' RECEIVING car = RET.

It is giving me a syntax error saying that RET is unknown. Please help me in this regard.

Thanks,

FS

2 REPLIES 2

Former Member
0 Kudos

Have declared variable RET ? If no, it will give error.

Former Member
0 Kudos

Hi,

U need to declare RET .

Otherwise it will give error.

Regards,

Jagadish