Skip to Content
author's profile photo Former Member
Former Member

Function Module

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!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Sep 18, 2007 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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 ?

  • author's profile photo Former Member
    Former Member
    Posted on Sep 18, 2007 at 03: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>

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.