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

Opening MS Word Editor from ABAP Program

Former Member
0 Likes
2,484

Hi all,

My requirement is to give two options. User can open Text Editor OR MS Word Editor from screen. Text/any data entered on this will then be saved.

Can anyone help me regarding this?

Thanks a lot in advance.

Best Regards,

Prasad

Hi,

Where do you want data to be saved? In SAP or on a file server.

Regards;

Hartmut

9 REPLIES 9
Read only

Former Member
0 Likes
1,517

Hi,

Where do you want data to be saved? In SAP or on a file server.

Regards;

Hartmut

Read only

Former Member
0 Likes
1,517

Hi,

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'.

Regards,

Vimal

Read only

guilherme_frisoni
Contributor
0 Likes
1,517

Hi,

check SAPRDEMODOCUMENTCONTAINER and RSOLETT1 programs.

You can switch between word and text_editor in your code.

Frisoni

Read only

Former Member
0 Likes
1,517

refer standard report RSOLETT1 or

T.CODE DWDM in OLE

Read only

Former Member
0 Likes
1,517

USE FM GUI_RUN. (this is obsolete though) 😛 😛

u can pass command = 'WINWORD' to this FM and this will trigger word.

u can use CL_GUI_frontend_services->execute as the same routine as above

Read only

0 Likes
1,517

or design a screen with such addition.

Read only

Former Member
0 Likes
1,517

Prasad,

Pls. go through below link.

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/204d1bb8-489d-2910-d0b5-cdddb3227820]

Regards,

Read only

Former Member
0 Likes
1,517

Thanks a lot.

I am closing the thread now.

Best Regards,

Prasad

Read only

Former Member
0 Likes
1,517

Thanks a lot.

I am closing the thread now.

Best Regards,

Prasad