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,

I have a class method where I have an exporting parameter of type ANY. Now withing this method I have a local structure which I want to export using the export parameter. If I do a direct assignment :-

export_parameter = local_structure then I get a dump. How can I do this correctly?

Thaksn & Regards,

Saurabh

4 REPLIES 4

former_member628175
Active Participant
0 Kudos

Hi Saurabh ,

I think the reason you are getting a Dump is TYPE MISMATCH . Try to define the local structure same as you export parameter .

If it is not possible , then create another local structure and write the values into it before passing .

Hope this helps .

Thanks ,

Shounak M.

0 Kudos

Hi Shounak,

I cannot define a local structure/variable to be of type ANY. The problem here is because of the export parameter being of type ANY and some kind of type casting is required.

Thanks & Regards,

Saurabh

0 Kudos

Hi Saurabh ,

have you tried with Field Structure ?

Thanks ,

Shounak M.

0 Kudos

Hi Shounak,

I tried using field symbols but it did not work, can you provide some sample code to do this.

Thanks & Regards,

Saurabh