Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

separator of 4.6C not working in 4.7 unicode

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

andreas_mann3
Active Contributor
0 Kudos

hi,

look here:

Andreas

Former Member
0 Kudos

Try this.

DATA: TAB.

TAB = CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.

Message was edited by: Venkatesan Ganesan

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

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.

0 Kudos

hi Thomas thanks very good one,

i want to give you more points, but system don't allow me.

regards.