10-03-2008 1:16 PM
Hi all
I have defined a internal table
TYPES : BEGIN OF DHNS,
RECTYPE(2) TYPE C,
ORDNO(25) TYPE C,
SEQ(3) TYPE C,
INSTYPE(2) TYPE C,
INSTTEXT(255) TYPE C,
END OF DHNS.
DATA: T_DHNS TYPE STANDARD TABLE OF DHNS.
DATA: H_DHNS TYPE DHNS.
I am uploading the data into internal table.........
transfer H_DHNS TO FILEPATH length 287.
but when I check the lenght of the H_DHNS it shows 289.....I want it to be 288.......
any suggestion what could be the cause of the problem
AJ
10-03-2008 1:20 PM
10-03-2008 1:38 PM
Hi All
there is a £ sign in my standard text, when i reading through read_test FN and passing that filed to text file .DAT, its takes a extra character.
How can I resolve this problem
AJ
10-03-2008 1:44 PM
If you don't need it, remove it and perhaps shift the remaining part after that sign to the left.
10-03-2008 2:43 PM
Hi Anup,
How are you opening the dataset.
Try additions ENCODING DEFAULT,ENCODING UTF-8,ENCODING NON-UNICODE.
OPEN DATASET XXXX FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
this takes the default encoding to that perticular version.
In case of unicode version it takes as UTF-8.
Try these different encodings beore passing the data.
Thank you
10-03-2008 3:53 PM
Hi Kumar
I have tried using all, ENCODING DEFAULT,ENCODING UTF-8,ENCODING NON-UNICODE.
actully I am on ECC5 and it si unicode complaint..........
AJ
10-08-2008 10:59 AM
10-03-2008 1:52 PM
hi,
declare a constant variable and assing 288 to variable and use it.
Regards,
shankar.
10-03-2008 1:53 PM
You are right, that character gets written as unicode, so it takes up double space. So it's either don't use it or reserve extra space for it.