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

Function Module to Insert Source Code through RFC

Hi,

I have a Requirement to Insert the Source code to Remote System. I know it is possible in local system with syntax 'INSERT REPORT' . But I want to insert source to Remote system . Is there any Function Module through which I can Insert Source through RFC ?

Regards,

Sachin

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2011 at 12:37 PM

    Hi,

    I doubt it but you can create your own RFC...

    Oh..In fact perhaps the function RFC_ABAP_INSTALL_AND_RUN would do the trick... Found this a bit dangerous altough...

    Kr,

    m.

    Edited by: Manu D'Haeyer on Sep 23, 2011 2:44 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2011 at 05:30 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 26, 2011 at 07:22 AM

    What are you actually trying to achieve? What is the business problem you are solving? Because what you are proposing is incredibly dangerous. Knowledge of the RFC user used in the connection would allow anyone to run anything on your system.

    While I'm at it, anyone reading this message, check if you have a function group ZAW0 installed. If you do, raise a message with SAP asking how this should be secured...

    (It's supplied with SAP BO Data services, in the Z space, and, if not carefully handled is very insecure).

    Edited by: Matt on Sep 26, 2011 9:22 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2011 at 09:06 AM

    Hi,

    Thanks Manu for the response.

    Well 'RFC_ABAP_INSTALL_AND_RUN' function module is not working. The Program Name is Hard code named 'Z$$$XRFC' . Even if we pass the 'PROGRAMNAME' parameter it takes the hard code value. Is there any other RFC Function module to insert the source code ?

    Regards,

    Sachin

    Add a comment
    10|10000 characters needed characters exceeded

    • Despite Mat's warning you still want to proceed?

      There's no teaching some people. If the client wants there system wide open to abuse, that's up to them. What will they do if someone uses the function module to send a program that does something like this?

      DELETE t000 WHERE mandt NE space

      So, here's some more rope, and further demonstration of the huge risk.

      You want to create a program dynamically, with a name of your choosing. Simple, send the FM the source code of a program that generates the program you want, with the fixed name. I suggest SAPMSYST as a really good one to play with.

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.