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

convert class-methods parameters to function module parameter?

former_member391265
Participant
0 Likes
1,726

HI all, I need to convert class-methods parameters to FM parameters. I have zclass with zmethod. which has 3 importing parameters and 2 changing parameters.  Now i need to replace this method with FM  along with parameters . So i used 3 importing parameters in FM import parameters. Now where do i need to put method's 2 changing parameters in FM? Do i need to put in Changing parameter or tables parameters.? Thanks

5 REPLIES 5
Read only

former_member184158
Active Contributor
0 Likes
1,451

Hello KSRCM,

of course in chaning parameter, you can add it without any problem,

and if you face any problem by code or something like this, just let us to know

Ps. if you have tables in changing parameter, you can alos, do it in Tables, as you want.
But if you dont have ITAB, so you don't need to add it in TABLES,
By the way, Chaning accepts ITAB or another parameter like strucure or something else.

Regards

Ibr

Read only

Former Member
0 Likes
1,451

You should use the changing option and not the TABLES option. The tables option is obsolete now.

You can read more about the same here.

V.

Read only

rosenberg_eitan
Active Contributor
0 Likes
1,451

Hi,

       

Just curious why not you use the class ?

Why go back in time ?

Regards.

Read only

raphael_almeida
Active Contributor
0 Likes
1,451

Hello,

I also do the same question, why do you want to create a function? This method is local? If not, I see no reason for you to turn it into a function, now, if it is local, what are the impacts of transforming this class / method as global?


Warm regards,


Raphael Pacheco.

Read only

former_member184158
Active Contributor
0 Likes
1,451

HI,

yes this is a good quesion, why you need to create a funciton

if this class-method global, so you can access by Class name.

Class_name=>class-method. Thats all., 

so why you need to create a funciton

Regards,

Ibrahim