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

CALL METHOD cl_gui_frontend_services=>execute wait to end process

0 Likes
1,710

Hello,

i need to run a command from local machine. I can use this:

CALL METHOD cl_gui_frontend_services=>execute... it works fine.

It start process and the ABAP program continue in code processing but i want to wait to end of that process. How can i do it?

thank you.

Palo

Hello,

i need to run a command from local machine. I can use this:

CALL METHOD cl_gui_frontend_services=>execute... it works fine.

It start process and the ABAP program continue in code processing but i want to wait to end of that process. How can i do it?

thank you.

Palo

5 REPLIES 5
Read only

Former Member
0 Likes
1,059

Hi pavol,

1. I don't think it is possible to wait .

regards,

amit m.

Read only

Former Member
0 Likes
1,059
may be u can stop for 10 seconds and continue...

call function 'RZL_SLEEP'
       exporting
            seconds        = 10
       exceptions
            argument_error = 1
            others         = 2.
Read only

0 Likes
1,059

it realy works

parameter

SYNCHRONOUS = 'X'

PALO

Read only

0 Likes
1,059

yes., it works with SYNCHRONOUS = 'X'.

But when I upgraded my machine to Windows vista (IE7) it did not work?? any idea?

Read only

0 Likes
1,059

I had the same problem like Adel when calling the browser via cl_gui_frontend_services=>execute().

On my old school XP machine the synchronous start is doing well, but not on my colleagues W7 64 machines.

I used a registrey key to get - in my case - the path to the Internet Explorer.

(htmlfile\shell\open\command)

On W7/64Bit this key contains the path to the 32 bit Binary:

C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE

If I start this application it's not synchronous, if i hard-code the path 64 bit binary

(C:\Program File\Internet Explorer\IEXPLORE.EXE) the application runs synchronous.

A pragmatic programmer could replace the ' (x86)' in the path, which should work on most Windows platforms

Regards

Dominik