cancel
Showing results for 
Search instead for 
Did you mean: 

How to call external programs stored on the Server using RFC

Former Member
0 Kudos

Hi All,

Can anyone point me to the link defining the exact process for setting up and placing calls to external programs not on Local machine using RFC?

I have looked briefly at the ERFC Function Group but still am not sure where to start from.

Regards,

Madhur

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

if you want to call RFC on remote sever, you should add Destination XXX when call function, link as following:

http://help.sap.com/saphelp_nw04/helpdata/en/e7/07fd68ff3211d386ea0000e82011b8/frameset.htm

thanks

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Chopra,

Try this function module. It enables You to call an

external server.

A connection must exist as posted!

(TA: SM59)

CALL FUNCTION 'SXPG_CALL_SYSTEM'

EXPORTING

commandname = 'blabla.exe'

additional_parameters = 'blabla'

IMPORTING

  • status =

exitcode = ls_exit

TABLES

exec_protocol = lt_proto

EXCEPTIONS

BR

Michael

Former Member
0 Kudos

Hi Chopra,

Try this function module. It enables You to call an

external server.

A connection must exist as posted!

(TA: SM59)

CALL FUNCTION 'SXPG_CALL_SYSTEM'

EXPORTING

commandname = 'blabla.exe'

additional_parameters = 'blabla'

IMPORTING

  • status =

exitcode = ls_exit

TABLES

exec_protocol = lt_proto

EXCEPTIONS

BR

Michael

Former Member
0 Kudos

throu this FM you can call that program , by giving DESTINATION after CALL FUNCT.....

regards

Former Member
0 Kudos

use SM59 to create one link with that remote system,

under logon/security give required detail.

give connection type = 3 if R/3 server.

give desc.

i am not sure if target host is required or not.

regards

then you have to create one 'remote enabled' FM

Message was edited by: Surpreet Singh Bal