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

Getting Error after executing SXPG_COMMAND_EXECUTE.

Former Member
4,178

After execution of Function module SXPG_COMMAND_EXECUTE following message is displayed:-

" Can't execute external program(Exec format error)

External Program terminated with exit code 1"

please suggest the cause why we are getting the message.

8 REPLIES 8
Read only

Former Member
0 Likes
2,345

Hi,

Please go to transaction ST22 and you will get a good error analysis there.

Regards,

Renjith Michael.

Read only

Former Member
0 Likes
2,345

Hi,

Did you manage to solve this error ?

If yes, can you share the solution since I'm also hitting the exact same one.

Thanks.

Read only

Former Member
0 Likes
2,345

HI Shilpa,

I am also facing same error, Will it be possible to share the information, how did you solve the progblam.

I really appreciate if you can help me on this,

Thanks

Read only

0 Likes
2,345

the solution to my problem is that the operating system command setup is wrong in SM69. Go check that.

Read only

0 Likes
2,345

Hi

In my case operating system command is not wrong. I am just giving for test mv ( to move file from one dir to other) still its giving me same error. If it works, then I can try for decripting the file.

I have tried below ways for testing in SM49. don't know what was causing the problam. Please help me in this.

Command name ZMV2

Operating system HP-UX / Windows NT / Unix / anyos

Operating system command

mv

Parameters for operating system command

Additional parameters

D:\usr\sap\DEC\DVEBMGS00\work\usra.out D:\usr\sap\DEC\DVEBMGS00\work\usra_r.out

OR


usr\sap\DEC\DVEBMGS00\work\usra.out
usr\sap\DEC\DVEBMGS00\work\usra_r.out

executin Target : selected Local

Error I am getting in SM49 : Can't exec external program (No such process) WaitForSingleObject failedwith %d (No such device or address)

It will be very greatfull, If you can help me on this.

Read only

Former Member
0 Likes
2,345

Hi All,

Me too getting same error,

Can any one guide here some solution of the problem?

"Can't exec external program (Exec format error)

External program terminated with exit code 1"

Thanks & regards

Read only

0 Likes
2,345

Hello,

in the external scipt you trying to start you shold define, which shell should by used for the command execution:

Let this be the first line of your script:

#!/usr/bin/ksh

(or any other shell)

Regards,

Roland

Read only

Former Member
0 Likes
2,345

The initial line "#!/bin/ksh" solved the problem for me.