Application Development 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: 

Can we execute ".exe" file in desktop through ABAP programming?

Former Member
0 Kudos

Hi all,

My requirement is like this.

There is one .exe/.bat file in the presentation server (Desktop).

I need to start executing the .exe file through SAP. Is there any way where we can write a code to do that in ABAP.

Thanks,

Balaji

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use the code below and substitute the path of the application in the function call.

CALL FUNCTION 'GUI_RUN'
  EXPORTING
    command          = 'c:\folder1\app.exe'.

Regards

Karthik D

2 REPLIES 2

Former Member
0 Kudos

Hi,

Use the code below and substitute the path of the application in the function call.

CALL FUNCTION 'GUI_RUN'
  EXPORTING
    command          = 'c:\folder1\app.exe'.

Regards

Karthik D

Former Member
0 Kudos

Use gui_run function...

call function gui_run

exporting

command = <filepath.exe>