Application Development and Automation 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: 
Read only

Conncatenate problem

Former Member
0 Likes
381

Hi all,

DATA: l_char type X value '0D0A',

l_string(255).

I am unable to concatenate due to l_char should be in (C,D,N, or sting).

If this is X then only my problem resolve.

please suggest me.

Regards

Raj

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
365

See if you have an attribute in the class CL_ABAP_CHAR_UTILITIES and then use that in your concatenate statement. For instance to concatenate two fields separated by a tab, you can use the following statement.

CONCATENATE field1 field2 SEPARATED BY cl_abap_char_utilities-->horizontal_tab.

2 REPLIES 2
Read only

Former Member
0 Likes
365

you can move l_char value into another variable lv_temp type string.

concatenate l_string with lv_temp into lv_temp.

move lv_temp to l_char.

Hope it helps.

Lokesh

Read only

Former Member
0 Likes
366

See if you have an attribute in the class CL_ABAP_CHAR_UTILITIES and then use that in your concatenate statement. For instance to concatenate two fields separated by a tab, you can use the following statement.

CONCATENATE field1 field2 SEPARATED BY cl_abap_char_utilities-->horizontal_tab.