2008 Jul 14 5:12 AM
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!
2008 Jul 14 5:26 AM
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.
2008 Jul 14 6:29 AM
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
2008 Jul 14 6:34 AM
hi,
try it out by declaring the variable in character format as it displays with the spaces also
2008 Jul 14 6:39 AM
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.
2008 Jul 31 10:18 AM
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.