Application Development and Automation 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: 
Read only

RFC - Calling Function Module in a local Windows Program (.exe) on user PC

Former Member
0 Likes
1,156

Hi Gurus !

Has anyone ever tried to call a local program on the user side through RFC ? Actually, this programme should allow the use of function module from ABAP programs.

Indeed we want to use some device locally installed, here a device to pay using Credit Cards.

However, we've almost successfully filled our requirements if the destination RFC is activated as a Registered Program. But a user B tries to access device of a user A if the code and destination are the same. So we need to create as many RFC destination as users.

So, we'd like the frontGUI to call the local EXE. This EXE would be coded in VB btw. But we can't figure out how to set the program to register on SM59, using "Start on Front-End Station" option.

Has anyone any clue on how the program should look like ?

Thx in advance,

N H

3 REPLIES 3
Read only

Former Member
0 Likes
752

What you are stating is partially correct. You need to install the application on each of the user's device, but then only one RFC destination will work for you. So if you tested it out, I guess you are fine.

I have used a scale connected to local PC to weigh the shipment, and pass that to SAP, it was calling a program scale.exe from SAP on c:\drive of the machine it is connectedto, but it wouldnt work from any other machines which dont have the scale and corresponding scale.exe files installed.

However, we've almost successfully filled our requirements if the destination RFC is activated as a Registered Program. But a user B tries to access device of a user A if the code and destination are the same. So we need to create as many RFC destination as users.

Read only

0 Likes
752

Hi MxG,

I guess we're close to the solution.

So, using the .Net Connector, and declaring inside our program the Host and Server Class, we've managed to use it, as a registered Server Program. Actually our Registered Program is a Windows Service running on the local computer that the RFC Function Module refers to.

While testing this it's appeared that user B was trying to use device on User A, event thought devices and services were installed on both computers.

I guess there's something we're misunderstanding or missing when we try to convert our solution to a Front-End solution. The program is obviously incomplete, something is missing. But I can't find any example or start-up for that program. Even in SAPHelp, there's only something saying that "you can do your own program for front-end and RFC"... 😕

Well, I've just realized I've reformulated my issue, but since it's confusing for me, it's actually not easy to describe and make sure it's understandable !

Regards,

N H

Read only

0 Likes
752

Hi Gurus,

well, we've solved our problem.

Basically, the executable program contains :

- a Server / Host implementation,

- Definition of the functions that will be accessible by RFC,

- Implementation of these functions.

Some examples provided with the Connector may prove themselves very usefull to whoever will try to implement such a RFC.

One last important difference between Registered Server Program and Local External Application is that in 1st case, while instanciating the Server within your non-SAP language program, you will have to provide the connexion string to access your AS (Application Server). In the other case, know that SAP will pass implicitely as a parameter to your program a connexion string you will need to instanciate your Server / Host.

Regards,

N H