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 Module

Former Member
0 Likes
393

Hi,

I have a Program, which has paramters, select options and the output is an ALV Grid and a File. Now , I have to incorporate this in a Function Module which is Remotely enabled.

And also, there should be no input parameters.

Any ideas of how to do this?

Thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
364

Hi,

Ideally RFC in this case should have IMPORT parameters . It should be the fields which are on selection screen.

If the requirement is not to have ny import parameters, then you need to decide how to retrieve data i.e. based on what condition as selection screen fields would be blank.

If you get the selection screen field values, simply use SUMBIT statement.

In any case, ALV output wont be displayed, but a spool would be generated. If you wish, you can read the spool & send the output in internal table as EXPORT/TABLES.

If you dont want to get into spool etc, then simply copy paste the report program in FM.

Dont forget to enable Remote Enabled radio button in the ATTRIBUTES tab of FM.

Best regards,

Prashant

3 REPLIES 3
Read only

Former Member
0 Likes
364

Hi,

You can hard code the values and can put the same in the program. If there is no input parameters then I think this is only possible.

You can also save the variant of the program and can pass the same. The rest of the code you can put in the function module.

Thanks,

Samantak.

<b>Reward points for useful answers.</b>

Read only

Former Member
0 Likes
365

Hi,

Ideally RFC in this case should have IMPORT parameters . It should be the fields which are on selection screen.

If the requirement is not to have ny import parameters, then you need to decide how to retrieve data i.e. based on what condition as selection screen fields would be blank.

If you get the selection screen field values, simply use SUMBIT statement.

In any case, ALV output wont be displayed, but a spool would be generated. If you wish, you can read the spool & send the output in internal table as EXPORT/TABLES.

If you dont want to get into spool etc, then simply copy paste the report program in FM.

Dont forget to enable Remote Enabled radio button in the ATTRIBUTES tab of FM.

Best regards,

Prashant

Read only

0 Likes
364

The problem is when i use SUBMIT statement in the Function module which is remotely enabled, and when i click on execute in the Function module, i am able to see the selection screen of the program .....how can i avoid the selection screen ?