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

RFC to execute a program

Hi everyone.

Does anyone know if there's a ready made RFC function for executing an ABAP program.

I need to run a program on a remote system with parameters from my local system.

Any ideas?

Thanks, Nachshon.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2005 at 02:32 PM

    Hi Nachshon,

    as you will also pass some values to parameters of the program I think you have to create your own rfc-fm in the other system.

    regards

    Siggi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 25, 2005 at 03:02 PM

    Hi ,

    here's a very <b>dangerous</b> fm

    <b>RFC_ABAP_INSTALL_AND_RUN</b>

    I'd not use fm on a productive remote system !

    regards Andreas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2005 at 03:02 PM

    Hi Nachshon,

    Take a look at FM RFC_ABAP_INSTALL_AND_RUN; you will have to add a little logic to include selection parameters.

    Regards,

    John.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2005 at 03:32 PM

    Thanks for the replays.

    In order to use FM RFC_ABAP_INSTALL_AND_RUN I will have to pass the program code in the table, and that as mentioned, is not a safe thing to do.

    I guess I'll have to write a dedicated FM .

    Thanks, Nachshon.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2005 at 10:29 PM

    Also, perhaps, you can write an RFC enabled function that accepts a program name to run and a table of structure RSPARAMS. Then the function can execute the program via:

    SUBMIT rep WITH SELECTION-TABLE seltab

    This way you can run any program remotely through this one function. Other parameters could be used to set standard program execution options. See the help documentation for SUBMIT.

    The down side is that there could be security concerns with this solution. That should be considered before trying this.

    Hope this helps.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 26, 2005 at 09:32 PM

    Do you want to run online / (or) execute the program in batch.

    Thanks

    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.