Skip to Content

Unicode and download to BIN where not compatible


I have an internal table like this from older vers. 4.6C:

*Used in the Excel macro download

data: begin of bin_tab occurs 1,

record(1000) type x,

end of bin_tab.

The old WS_DOWNLOAD has been changed to GUI_DOWNLOAD.

The new table to download to is the described one from the doc:


gs_dataline type c,

new_data_tab LIKE STANDARD TABLE OF gs_dataline.

The filetype parameter in GUI_DOWNLOAD is set to BIN.

When I want to loop the new one into the old one, I get this message:

BIN_TAB is not type-compatible with format parameter DATA_TAB.

Any good ideas ?

Any help is appreciated.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 06:36 AM

    Hi Peter ,

    Declare a workarea like this

    DATA: BEGIN OF line_bin,

    data(1024) TYPE X,

    END OF line_bin.

    DATA: data_tab_bin LIKE STANDARD TABLE OF line_bin.

    • Binary download



    FILENAME = fullpath



    FILELENGTH = length


    DATA_TAB = data_tab_bin



    NO_BATCH = 2



    Please reward if useful.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 11, 2007 at 12:21 AM

    Hello Peter

    Please note that the function module GUI_DOWNLOAD has been marked as <i>obsolete</i> (see fm documentation) because it is not unicode-enabled. Instead use the static method <b>CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD</b> (and GUI_UPLOAD).



    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.