Skip to Content
author's profile photo Former Member
Former Member

document download error from BDS


I am using BDS to download/upload documents into SAP using webdynpro abap. I am able to successfuly upload docs but I cannot download it .

To open the documents I am using method cl_bds_document=>display. This method is working fine if I run it directly but gives me and "unknown error" of termination type "ERROR_MESSAGE_STATE" ( see it using ST11) which I dont understand.

Same method has worked for me in other client environment in WebDynpro environment but i dont has access to that system to compare result.

The one thing i found it when I execute the method directly, the function module GUI_HAS_ACTIVEX returns X while when I run it from WD ABAP, it comes as blank. I even tried to create an iview of my application and test it from portal but no success.

If I use OAOR transaction, I can see my documents are getting uploaded successfully and I can open it also. I tried various file types but no success.

Please help.. I just cant understand how to fix it....


Vishal Kapoor

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Feb 18, 2011 at 01:42 PM

    I would be a bit suprised if you were ever able to use this method from within Web Dynpro. This class and method were designed for SAPGUI and use SAPGUI calls to display or download the content. You need to call other API methods of the BDS in order to get the attachment content back as an XSTRING. Then you could use a mechanism like the FileDownload UI element to send it to the browser.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2016 at 01:54 PM

    Good Morning!

    I have been using the "Upload document to BDS" function. Unfortunately, our plant site went to Office 365 and now the BDS function is no longer working. This functionality has only worked for me when I used excel 97. Do you have any suggestions how I can correct or work around this issue?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.