on 10-21-2010 7:59 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.