Application Development and Automation 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: 
Read only

addition for call method / methods

Former Member
0 Likes
518

hi,

i rather confused of these addition : importing, exporting, returning, changing, receiving.

can explain these addtion used in call method and methods.

thank you

4 REPLIES 4
Read only

amit_khare
Active Contributor
0 Likes
474
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
474

Basically what you are describing is the signature of the method. That is, the interface in which you may pass or receive variables. IMPORTING and CHANGING paramaters are ones that you pass to the method call, CHANGING paramters may be modified inside the method, IMPORTING parameters can not. EXPORTING paramaters and RETURNING paramters are basicially the same thing, with different syntax, you can only have one RETURNING paramter, but many EXPORTING parameters. These two are used to receive data from the method call.

Regards,

RIch Heilman

Read only

0 Likes
474

Hi Rich,

Thanks for the reply.

Declaring methods (methods) and calling a method (call method) for the parameter interface are different.

For methods, exporting and returning are basically the same but

For call method, importing and receiving are basically the same.

Correct?

Thank You.

Read only

0 Likes
474

When declaring a method, you would use the IMPORTING extension to pass parameters in, but when calling you would use the EXPORTING. This is the only confusing part.

call method o_ref->some_method
         exporting
              im_parameter  = 'Some_Value'.

Regards,

RIch Heilman