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

Execute SM69 Transaction

Former Member
0 Likes
2,403

Hi,

I'm using SM69 command to run a phantomjs script , so i defined this command :

I'm trying to execute it with this FM : SXPG_COMMAND_EXECUTE :

But i'm getting this error :

It is a problem of path, because when i try AL11 transaction and i try to execute a command with any path in the AL11 it

works.

But i don't find how to get this path /sap/usr like in AL11 transaction.

Regards,

Ameni

1 ACCEPTED SOLUTION
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
1,914

I feel the best option would be to just ask your Basis admin for help.

Hi,

I'm using SM69 command to run a phantomjs script , so i defined this command :

I'm trying to execute it with this FM : SXPG_COMMAND_EXECUTE :

But i'm getting this error :

It is a problem of path, because when i try AL11 transaction and i try to execute a command with any path in the AL11 it

works.

But i don't find how to get this path /sap/usr like in AL11 transaction.

Regards,

Ameni

2 REPLIES 2
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
1,915

I feel the best option would be to just ask your Basis admin for help.

Read only

0 Likes
1,914

SM69 is used to execute command on OS of application server.

not desktop server files

if u want execute desktop file command use below FM

GUI_EXEC

OR

use method EXECUTE of class CL_GUI_FRONTEND_SERVICES