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: 

GUI_DOWNLOAD ignores blank in a numeric character field

Former Member
0 Kudos
99

Hi, exparts.

I found a problem about function module GUI_DOWNLOAD.

With the file type 'ASC', blanks in type N - fields disapears.

Field1(type N) = ' 1 '

Field2(type N) = ' 2 '

Download these 2 fields, then data become '12'

I hope ' 1 2 '.

I've already confimed the import parameter 'TRUNC_TRAILING_BLANKS_EOL' does not affect this problem.

Please tell me how to avoid this problem!

5 REPLIES 5

Former Member
0 Kudos
80

Hi Naomi,

Try using the File Type as 'DBF' instead of 'ASC',

what it does is it converts all the Fields to Character type and displays it.

Best Regards,

Sunil.

0 Kudos
80

To Sunil,

Thank you for your imformation!!

I tryed 'DBF' as soon as I got your reply!

But the result was not as I expected...

The download data seems to be separated by tab.

I want it to be transferred as a text like 'ASC'.

Any parameter affected?

Regard,

Naomi S

0 Kudos
80

hi,

try it out by declaring the variable in character format as it displays with the spaces also

0 Kudos
80

Hi Naomi,

while downloading data using GUI_DOWNLOAD type N Eliminates all the Spaces, so I don't think there is another option to do this,

Only Alternative left is you can move the data to a char type field and then Download it,

cuz I've faced the same problem.

Best Regards,

Sunil.

0 Kudos
80

Hi, Sunil

Thank you for your imformation.

SAP also says thet all blanks are eliminated.

In fact I could not be satisfied with it, and contacted OSS. Then I received this disappointing answer.

So I changed type from N to C.

Thank you a lot.

Naomi S.