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

SXPG_COMMAND_EXECUTE

Former Member
0 Likes
463

I hv 1 DB instance and 2 Application Server instances for load balancing my the production environment. So physically there are 3 servers (say A,B & C), but only one SAP (client) running. From the server A, I want to call a batch file residing on B and want it to be executed on B itself & not on A. I am using FM 'SXPG_COMMAND_EXECUTE', and passing the server name of B in the parameter TARGETHOST. Since the SAP client is same, there is no RFC maintained. When I execute the FM, it says 'PROGRAM_START_ERROR'. Can anyone let me know why this errors comes and how to tackle it? Thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
441

I guess you have to still LOG-IN in server B to execute the same...

Kind Regards

Eswar

Read only

Former Member
0 Likes
441

Hello,

As there are physicall 3 server u can call the command from one server for the program which is on other server. The target host I believe it only executes on this other server but still expects the program to be in A. So I think u will have to mount file system and then only it will work.