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: 

RFC Question

Former Member
0 Kudos

I want to do an RFC with parameters. Help (and sample code) would be greatly appreciated on how to create an RFC from outside of SAP. I have looked at the program srfctest.exe and executed it with option 4 (RFC with SAPGUI), but it does not support parameters. Thanks in advance for your help on this topic.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I have already looked at this, but it doesn't seem to explain well how to create an RFC outside of SAP. I would like to write a small application outside of SAP (a program with the extension .exe) that I can use to pass a file to a Remote Enabled FM in SAP. The example program srfctest.exe that was loaded on my local drive with the SAP GUI is close to what I need, but doesn't support parameter passing. It is also very multifunctional, so it is very dificult to decipher the code. Any further samples/suggestions anyone?

3 REPLIES 3

Former Member

Former Member
0 Kudos

I have already looked at this, but it doesn't seem to explain well how to create an RFC outside of SAP. I would like to write a small application outside of SAP (a program with the extension .exe) that I can use to pass a file to a Remote Enabled FM in SAP. The example program srfctest.exe that was loaded on my local drive with the SAP GUI is close to what I need, but doesn't support parameter passing. It is also very multifunctional, so it is very dificult to decipher the code. Any further samples/suggestions anyone?

0 Kudos

I am not sure if you can do this in ver 4.7 but earlier versions support an auto - C /VB program generation for you RFC enabled FMs.

So first you need to write a RFC enabled Function Module in ABAP and then you can generate the C code through SE38-->Utilities --> ( you need to check the exact path ).

I have written a few programs like this long time back.

If you need I can pass some code to you.

Thanks,

Ram