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: 

returning two parameters from a method

Former Member
0 Kudos

I have a method that returns two parameters. One of them is an type ref to a class and other is type char1. the coding is fine but when i activate the method it gives following error :

Type ref to type and type type cannot be specified together, any ideas what this is please ?

2 REPLIES 2

naimesh_patel
Active Contributor
0 Kudos

I am not getting that error:

This is the code generated when I have created a Method in SE24 which returns two parameters:


  methods TEST
    exporting
      !O_REF type ref to ZCL_TEST_NP_01
      !I_CHAR type CHAR1 .

Regards,

Naimesh Patel

Former Member
0 Kudos

Hello,

You cannot have two RETURNING parameters, just one. Instead use EXPORTING parameters.

Regards.