11-25-2005 11:10 AM
Hello,
I can't remember how to use specials characters in ABAP, for example if I want to put a tab in a string.
Can someone help me ?
Thanks,
Benoî
11-25-2005 11:46 AM
Hi Benoît!
Then you are probably not in an unicode system, so you can make a trick with a structure:
DATA: BEGIN OF tab_struc,
field TYPE x,
END OF tab_struc,
tab TYPE char1.
tab_struc-field = 23.
Now you can assign to the hexadecimal field any code, which is for tab maybe 11 - just try out some values below 27. Later you just use the structure tab_struc, but without specifying the field -> you get a conversion into char without changes of value, that is as much as a tab or bell or linefeed.
Regards,
Christian
11-25-2005 11:13 AM
Hi
<b>SPACE</b> is the Special character name.
concatenate 'ABC' 'DEF' into str separated by <b>space</b>.
regards
vijay
11-25-2005 11:14 AM
Hi,
You use cl_abap_char_utilities=>HORIZONTAL_TAB for this.
Eddy
11-25-2005 11:19 AM
11-25-2005 11:22 AM
Hi,
I dont know how much this helps you but in ABAP Editor (SE38), TAB moves 2 spaces...
May be you can try inserting two spaces (which I think are equivalent of a TAB) in your string..
In 4.6c ofcourse..
Sri
Message was edited by: Srikanth Pinnamaneni
11-25-2005 11:21 AM
Hi,
In SAPScript you can use tab character but in normal report transaction you cannot.You may use SPACE for getting spaces..
Regards,
Abdul
11-25-2005 11:46 AM
Hi Benoît!
Then you are probably not in an unicode system, so you can make a trick with a structure:
DATA: BEGIN OF tab_struc,
field TYPE x,
END OF tab_struc,
tab TYPE char1.
tab_struc-field = 23.
Now you can assign to the hexadecimal field any code, which is for tab maybe 11 - just try out some values below 27. Later you just use the structure tab_struc, but without specifying the field -> you get a conversion into char without changes of value, that is as much as a tab or bell or linefeed.
Regards,
Christian