09-17-2007 10:16 PM
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!
09-18-2007 5:03 AM
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
09-18-2007 4:53 AM
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>
09-18-2007 5:03 AM
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
09-19-2007 2:49 PM
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 ?