2007 Oct 24 9:21 AM
Guys!!help me on this...
Im downloading a file w/c has a short text field.
Some short text field has this kind of character w/c I dont know.
sample: "File□string".
Did you notice that square symbol?I dont know how would I delete that.
Furthermore , everytime I debug my program that square symbols turns into a "#" symbol..so what I did was I used the "replace all occurrences of "#" in field with space".
But nothing happens , the "#" symbol is not replace by space.
Hope you could help me on how to solve this.
and also when I copy and paste the text with square symbol in ms word the square symbol doesnt exist..I find it so weird....
Please do help me experts....
Guys!!help me on this...
Im downloading a file w/c has a short text field.
Some short text field has this kind of character w/c I dont know.
sample: "File□string".
Did you notice that square symbol?I dont know how would I delete that.
Furthermore , everytime I debug my program that square symbols turns into a "#" symbol..so what I did was I used the "replace all occurrences of "#" in field with space".
But nothing happens , the "#" symbol is not replace by space.
Hope you could help me on how to solve this.
and also when I copy and paste the text with square symbol in ms word the square symbol doesnt exist..I find it so weird....
Please do help me experts....
2007 Oct 24 9:24 AM
check the hexadeicmal value of that character, when SAP can't display a special character it outputs # Yiou can click the plus icon in debugging to find out the hexadecimal value
regards, Rob.
2007 Oct 24 9:31 AM
Hi Rob,
I check the hexadecimal of that "#" symbol and I found out that the equivalent hexadecimal of "#" is 000A. What should I do next?
2007 Oct 24 9:33 AM
Hi Salma,
From where are you donloading the file ? Is the file downloaded from SAP ?
Regards,
sandipan.
2007 Oct 24 9:37 AM
Yes , its from sap..in the table where that text is maintained it has this "□" symbol but when I debug the program the "□" symbols became "#".My problem is everytime the text has this kind of character the next text after that character proceeds to the next line of the excel.I did use gui_download...the only way for me to solve this problem is to delete that "□" symbol w/c I dont know how..any idea expert???
Thanks..
2007 Oct 24 9:43 AM
btw , the file is downloaded from SAP to EXCEL..
Please help experts...
2007 Oct 24 2:33 PM
Hi Salma,
I was just wondering how the "□" appeared in the database table. Is it a custom table or SAP table ?
Make sure the file name ends with .XLS also specify the delimited file and set write_field_separator = 'X' ,
Also, what language the text is written ?
Regards
Sandipan
Message was edited by:
Sandipan Choudhuri
2007 Nov 19 8:13 AM
Hi,
data: c_htab value CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
replace all occurrences of c_htab in ltext-tdline with space.
Try this out.
Suganya