‎2011 Mar 16 9:01 PM
I've created a simple RFC Server application using the RFC SDK.
I register a function "ABC" with RfcInstallFunctionExt.
I run transaction SM59 in SAPGUI
I open up TCP/IP Connections, then press the create button.
Under RFC Destination, I put the name of the installed function - "ABC"
On the Technical settings tab, I select the "Registered Server Program" radio button.
Under Program ID I put the name of the pgoram Id I supplied when calling RfcAcceptExt. In this case "Hello.World.App".
I click connection test, and my server receives an RFC_PING.
So, my question is: How do I actually call this so that the installed function "ABC" is executed? Where do I supply parameters and tables?
Thanks.
Charles.
‎2011 Mar 17 6:48 AM
Charles,
Please check the below
To create an RFC destination
Start the SAP GUI.
Go to Transaction SM59 (Display and Maintain RFC Destinations).
From the menu bar, click Create.
Enter the RFC destination, connection type, description, and then press Enter.
Select the Registered Server Program radio-button, enter the program ID, gateway host, and gateway service.
Save the RFC destination.
Thanks,
Guru
‎2011 Mar 17 3:24 PM
Umm, you just repeated back to me the steps I've already taken (and listed in my post) to create an rfc destination. What I want to know now, is HOW DO I EXECUTE my newly created rfc destination?
Charles.
‎2011 Apr 04 5:11 PM
So, I finally figured this out, and am posting this in case some other complete novice is having the same trouble finding useful answers to simple questions.
Under Object Navigator, create a new function group, and then under that function group a new function module. Both must start with "Z_" or you'll run into access key issues.
Create a new function module with the same name as the function you're installing with your RFC server ("Z_MY_TEST"). Click the "remote-enabled module" button, set up with import and export params (I created FIRSTNAME/TYPE/CHAR256 and LASTNAME/TYPE/CHAR256 for import params, and GREETING/TYPE/CHAR512 for export). Save that, then right-click on it and select "Avtivate". Then run transaction code SE37. Type in the name of the function module you just created ("Z_MY_TEST") and press Display. Then press F8. In the field RFC target sys: put the name of the RFC Destination you created. Fill the FIRSTNAME and LASTNAME params. Make sure your server is running at this point, and click the execute or debugging button. I used "John" and "Smith" as the names, and had my server app simply return the string "Good morning John Smith" in the GREETING export param.
Charles.