cancel
Showing results for 
Search instead for 
Did you mean: 

Calling MS Word from ABAP Webdynpro

Former Member
0 Kudos

Hi Gurus'

I am looking for a way to open Microsoft word from ABAP webdynpro application with some data. If any of you have done, please share with me how to do it.

Regards,

Basha.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Saurav,

Thanks for the suggestion. What I intend to do is to open the content of smartform in MSWORD from a ABAP webdynpro application. Can this be achieved

Regards,

H.K.Hayath Basha

anand_nidamanuru
Active Participant
0 Kudos

Hi,

You can use the method ATTACH_FILE_TO_RESPONSE of CL_WD_RUNTIME_SERVICES to launch the MS Word document.

But for this you need to pass the data in XSTRING.

So if you can convert the smart form content into XSTRING, you can use this method to launch the Word document from within Webdynpro.

Thanks,

Anand

Former Member
0 Kudos

hi,

Kindly refer the SAP Online help on Office Control UI Element which is used to open word files in WD ABAP Application :

http://help.sap.com/saphelp_nw70/helpdata/en/d1/af8841349e1909e10000000a155106/content.htm

You can use UI element OfficeControl to add an Office document to a view. This means you can display the following Office documents within a Web Dynpro application:

● Microsoft Word documents

● Microsoft Excel documents