08-04-2005 9:33 AM
Hello,
I am using one separator in concatenate in 4.6c, it is working fine.
But when i paste the same code in 4.7 unicode, it is giving me syntax error
"SEPARATOR" must be a charactor-type data object(data type C,N,D,T or STRING). field string).
this is coding in 4.6C
data separator type x value 09.
........
concatenate itab-first separator
itab-second separator date
separator time separator itab-third
itab-fourth itab-fifth separator
itab-sixth itab-seventh
itab-eigth into objbin-line.
.................
can some one please help me.
regards.
08-04-2005 9:47 AM
Hi Surpreet,
use this CL_ABAP_CHAR_UTILITIES==>horizontal_tab instead of the Hexadecimal variable for tab.
NB : Use the constant attributes rather than hard coding byte values.
Here is an example.
CLASS cl_abap_char_utlities definition load.
data : v_text type string.
replace CL_ABAP_CHAR_UTILITIES==>horizontal_tab with space into v_text.
Hope this one helps you.
Best Regards,
Vijay
08-04-2005 9:47 AM
Hi Surpreet,
use this CL_ABAP_CHAR_UTILITIES==>horizontal_tab instead of the Hexadecimal variable for tab.
NB : Use the constant attributes rather than hard coding byte values.
Here is an example.
CLASS cl_abap_char_utlities definition load.
data : v_text type string.
replace CL_ABAP_CHAR_UTILITIES==>horizontal_tab with space into v_text.
Hope this one helps you.
Best Regards,
Vijay
08-04-2005 9:47 AM
08-04-2005 9:50 AM
Try this.
DATA: TAB.
TAB = CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
Message was edited by: Venkatesan Ganesan
08-04-2005 9:50 AM
Try the following instead:
concatenate itab-first CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB
itab-second CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB date
CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB time CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB itab-third
itab-fourth itab-fifth CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB
itab-sixth itab-seventh
itab-eigth into objbin-line.
08-04-2005 9:58 AM
hi Thomas thanks very good one,
i want to give you more points, but system don't allow me.
regards.