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: 

Problem in opening word

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

try the below code.

CALL FUNCTION 'GUI_RUN'

EXPORTING

command = 'IEXPLORE.EXE'

PARAMETER = 'file path '.

reward if needful.

thanks,

Sreeram.