cancel
Showing results for 
Search instead for 
Did you mean: 

Error while trying to open Office 2007 documents from WDA

former_member182374
Active Contributor
0 Kudos

Hello Experts,

I'm trying to open Office 2007 documents by using Web Dynpro ABAP.

I'm using CL_WD_RUNTIME_SERVICES=>attach_file_to_response and I'm sending the correct mime type by using 'SDOK_MIMETYPE_GET' function.

The document is opened but I always get "file is corrupted" error message for docx, xlsx and pptx files (I confirm the message and then I can see that the file is OK).

Note 1485231 is not relevant because the file extension is correct (4 characters).

SAP_BASIS version is 7.31 SP4.

Office version is 2007.

How can I solve this issue?

Regards,

Omri

View Entire Topic
alegarciamacedo
Explorer
0 Kudos

Thank you, Omri! I had the same issue. It was solved with your tip.