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 c:\abc\myprogram.exe from abap

Former Member
0 Likes
807

Hi,

How to execute my executable file c:\abc\myprogram.exe from abap. And I want to make sure myprogram.exe is finished execution before continue to the next line in abap. Can paste some code sample?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
732

Use CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE.

5 REPLIES 5
Read only

Former Member
0 Likes
733

Use CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE.

Read only

0 Likes
732

Hi,

and he needs to set parameter synchronous to 'X'.

Cheers

Read only

awin_prabhu
Active Contributor
0 Likes
732

Hi friend,

Use FM 'GUI_RUN'.

Try this code:

REPORT zdemofun .

CALL FUNCTION 'GUI_RUN'

EXPORTING

command = 'c:\abc\myprogram.exe'.

This will exactly help u.

Thanks..

Read only

awin_prabhu
Active Contributor
0 Likes
732

Hi friend,

Whether it is working for you?

If not reply me.

Thanks..

Read only

0 Likes
732

Thanks mate. It is working now.