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

Problem in opening word

Former Member
0 Likes
513

I am trying to open Ms Word with FM "Gui_run". The problem is when the name has a space it can't open it .

Is any way to pass this problem ?

Thanks in advance !!!!

Points will be rewarded !!!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
443

You can use the method execute in CL_FRONTEND_SERVICES, and just pass the file name to the parameter document.

call method cl_gui_frontend_services=>execute

exporting

document = 'c:\test.doc'.

Albert

2 REPLIES 2
Read only

Former Member
0 Likes
444

You can use the method execute in CL_FRONTEND_SERVICES, and just pass the file name to the parameter document.

call method cl_gui_frontend_services=>execute

exporting

document = 'c:\test.doc'.

Albert

Read only

Former Member
0 Likes
443

Hi,

try the below code.

CALL FUNCTION 'GUI_RUN'

EXPORTING

command = 'IEXPLORE.EXE'

PARAMETER = 'file path '.

reward if needful.

thanks,

Sreeram.