cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in displaying GOS document in Web dynpro

Former Member
0 Kudos

Hi,

Requirement is to display attached documents of business objects (PR, PO) in Web Dynpro.

I am able to do this successfully but there is an issue with Office 2007 documents. Office 2007 documents are getting corrupted.

I am using following logic for reading the attached documents:

1. Called cl_binary_relation=>read_links method to get the document list.

2. Called SO_DOCUMENT_READ_API1 to get the content and details of documents.

3. Called SCMS_BINARY_TO_XSTRING to convert document content to XString.

4. Called SDOK_MIMETYPE_GET to get mime type for document so that I can bind it with FileDownload UI element.

After doing the analysis, I found that SO_DOCUMENT_READ_API1 is not returning correct file content and extension type for Office 2007 documents. Instead of '.docx' it is returning '.doc' and also the document content is not proper as I check by hard coding the mine type for .docx.

Please let me know, is there any other FM for reading document content or am I missing something?

Regards,

Vikram Rawal

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hey Vikram Rawal,

maybe you can help me i also want to display attached documents of bussiness objects (material). When i call cl_binary=>read_links the table where the results should be is empty.

I hope you can help me.

Regards

Alexander Diring