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

Function paramater as Class type

Former Member
0 Likes
629

Hi,

I am using a function where there is an import parameter which is type to one of the class and i don't know i how you pass the values to function.

Can any one help and if you have any document regarding this pl. send it to me.

Thanks

Atul

3 REPLIES 3
Read only

h_senden2
Active Contributor
0 Likes
593

What you can do is create a variable with reference to the class, and use this variable as import parameter.

DATA: L_VAR type ref to CL_<yourclass>.

Fill L_VAR with appropiate data.

Call function module with import parameter L_VAR.

regards,

Hans

Please reward all helpful answers !!!!!

Read only

Former Member
0 Likes
593

Hi,

Function module where i want to pass values is "REBD_API_MEASUREMENT_CRE". can any one explain me how to pass the valuse to this.

Thanks,

Atul

Read only

0 Likes
593

in the import parameter enter a variable name and choose "type ref to" and then enter your class name.

while calling the fm , to this variable you have to pass instantiated class variable of the same type

Raja