‎2006 Oct 24 3:46 PM
Hello all,
I am reading a file (stored in a DAT format on application server) with READ DATASET statement. there is one quantity field (MENGE) and Currency field (WRBTR).
When I read the file into an internal table the data record in internal table is getting appended with addition 20 like this.
Actul valueValue in internal table
WRBTR MENGE WRBTR MENGE
71.66 1 20202020071.66 2020202001.200
113.75 1 20202020113.75 2020202001.200
how to remove this additional '20'?
Has anyone faced a similar problem before?
Regards,
Anup
Message was edited by: Anup Deshpande
Message was edited by: Anup Deshpande
Message was edited by: Anup Deshpande
‎2006 Oct 24 3:48 PM
‎2006 Oct 24 3:49 PM
Hi Anup,
20 is the hexadecimal equivalent for space.
In which mode did you open the file?
Open the file in text mode. and see if the problem exists.
Regards,
Ravi
‎2006 Oct 24 3:56 PM
I think you are opening the file in binary mode and writing it.. Use text mode with encoding ... this should solve your problem
‎2006 Oct 24 4:29 PM
Hello,
I am opening the file in text mode. Still problem exists.
Regards,
Anup
‎2006 Oct 24 4:33 PM
maybe the problem is the conversion, you have set directly the value of the file into the table. Better is to read data into a char field and use MOVE to let SAP convert the value into the end-field.
Fred
‎2006 Oct 24 10:38 PM