Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

WS_DOWNLOAD problem

Former Member
0 Kudos

I am trying to download an internal table with WS_DOWNLOAD. With one table (others work) the data I am getting is garbled in some fields (see below)

{{{{{ b|{{{{{{S,{{{{{ \

The only difference I can find with the tables is that the one I am having trouble with has a few fields of type CURR and CUKY and it seems that this is where the data is bad.

Does anyone know if there a problem with these data types in version 4.6C?

Thank you,

Scott

2 REPLIES 2

Former Member
0 Kudos

I see this is your first posting so let me welcome you to this forum. You will find a lot of good information here.

Now on to your question.

CURR fields are stored as packed numbers, i.e. type P in ABAP. CUKY fields are stored as character. You will need to convert the CURR field to character format before you download it the your PC. You can use the WRITE command to accomplish this:

WRITE MY_CURR to MY_CHAR_CURR CURRENCY MY_CUKY.

You can set the character field to the output length of the CURR field. To check that, look at the domain definition of the CURR field in transaction SE11 and on the Definition tab you will see the Output Length.

Also, WS_DOWNLOAD is considered obsolete so consider using GUI_DOWNLOAD instead.

Let us know how it goes.

0 Kudos

I ment to reply earlier, but this did take care of my problem.

Thanks!