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: 

Assignment to export parameter of type ANY

0 Kudos

Hi,

Suppose I have a class method which has an exporting parameter of type any. Now I have a local structure which I want to export through this parameter. If I write

export_variable = local_structure then this leads to runtime errors. How do I do this?

Thanks & Regards,

Saurabh

3 REPLIES 3

Former Member
0 Kudos

Hi,

In assignements both variables or parameters must have the same type always. If they have different type they give a dump.

Regards,

Mireia

LeonardoAraujo
Active Contributor
0 Kudos

Just to get this straight:

You have an Export or import parameter in your method?

If it is import you than pass an structure, If it is an export, you than receive from method.

So, if you are trying to receive from an type ANY, receive it as string and than pass from String to your local structure.

Cheers,

Leonardo De Araujo

Former Member
0 Kudos

Hi Saurabh,

Let the parameter be of TYPE REF TO data. This is generic data reference that can be handled by field symbols. I can give you the whole explanation on how to handle data references but I recommend you to refer help for GET REFERENCE or SET REFERENCE.

Regards,

Srikanth