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: 

Function Module

Former Member
0 Kudos

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

former_member223537
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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>

former_member223537
Active Contributor
0 Kudos

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

0 Kudos

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 ?