Skip to Content

View binary data from application server

Hi all,

I have uploaded a document (can be any format) as binary to application server.

Now Iam trying to view the binary data content in a seperate window as a document. I have tried to convert the binary data(which is in the form of a table) to string, text, but the document continues to show in unmeaningful format.

Please suggest how do I handle this?

I have tried searching SDN and other sites, but did not get proper solution. I should only display the document.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on May 27, 2011 at 07:00 AM

    Now Iam trying to view the binary data content in a seperate window as a document

    How are you doing this? Via AL11? Not possible ... AL11 is nothing but a report which just gives a snapshot of the file, it is not the "physical file".

    You need to download it to your PC using the usual AS file download trxns viz., CG3Y, CACS_FILE_COPY, if you want to view the actual file.

    Further info on the forums.

    Add a comment
    10|10000 characters needed characters exceeded

    • Clemens Li Aiswarya Chandrasekaran

      Hi Aiswarya,

      a file in binary format must be interpreted by a software that makes the content visible and understandable.

      PDF will be interpreted and displayed by ACROBAT or any other PDF viewer.

      DOC files may be interpreted and displayed by MS Word or Open Office,

      pictures formatted as JPG, BMP or one of the many graphics formats will be interpreted and displayed by MS Paint or any other graphics software.

      SAP ABAP is very limited. You can display pictures in a picture control of class cl_gui_picture. Pure ASCII text may be shown as a LIST.

      Word, PDF, Excel etc. can not be displayed by SAP/ABAP. The only way is to provide the binary on the client (PC) side and start the software installed locally. There is OLE integration that allows you to run PC software in a GUI control so you may get the imagination as if it comes from SAP Server.

      Hope this sheds a little light on this.

      Regards,

      Clemens

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2011 at 07:31 AM

    Hi,

    If you want to open one binary file( except text file ), you need download it into local PC and open it by some program(word, pdf).

    1. Use OPEN DATASET to get file content

    2. Use GUI_DOWNLOAD to download

    3. Use OPEN_FILE to open downloaded file(You need know the application to open that file)

    Some sap standard program like 'attachment display' use this way too.

    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.