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

UNICODE CONVERSION

Former Member
0 Likes
680

Hi ,

In unicode conversion if we face 'concatenate' statemant, How to unicode it ?

CONCATENATE hl1 hl2 '%' INTO prodhs .

thanks in advance.

kaladhar.

5 REPLIES 5
Read only

Former Member
0 Likes
657

Hi,

can you give some wat more code.

declaration part is main.

give that part.

Regards

Sandeep Reddy

Read only

0 Likes
657

CASE p_level.

WHEN 1.

level = 1.

prodhs = '%'.

WHEN 2.

level = 2.

CONCATENATE hl1 '%' INTO prodhs .

WHEN 3.

level = 3.

CONCATENATE hl1 hl2 '%' INTO prodhs .

WHEN 4.

level = 4.

CONCATENATE hl1 hl2 hl3 '%' INTO prodhs .

WHEN 5.

level = 5.

CONCATENATE hl1 hl2 hl3 hl4 '%' INTO prodhs .

WHEN 6.

level = 6.

CONCATENATE hl1 hl2 hl3 hl4 hl5 '%' INTO prodhs .

WHEN 7.

level = 1.

prodhs = '%'.

WHEN 8.

level = 2.

CONCATENATE hl11 '%' INTO prodhs .

WHEN 9.

level = 3.

CONCATENATE hl11 hl21 '%' INTO prodhs .

WHEN 10.

level = 4.

CONCATENATE hl11 hl21 hl31 '%' INTO prodhs .

WHEN 11.

level = 5.

CONCATENATE hl11 hl21 hl31 hl41 '%' INTO prodhs .

WHEN 12.

level = 6.

CONCATENATE hl11 hl21 hl31 hl41 hl51 '%' INTO prodhs .

ENDCASE.

Read only

Former Member
0 Likes
657

Hi,

In your program go to "Attributes" and check the checkbox "Unicode checks active". It will work.

Read only

former_member194669
Active Contributor
0 Likes
657

if your hl1 & hl2 & prodhs are all character data type. then you don't have problem to concatenate in unicode enviornment.

a®

Read only

Former Member
0 Likes
657

hi,

give the declaration part for hl1, hl2, prodhs.

are they type X.

if , yes you need to follow this logic.

old code:

constants: begin of c_tab,

hex(1) type x value '09', "(hex code for Tab)

end of c_tab.

replaced code :

DATA: C_TAB(1) TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.

Instead of hex(1), you need to use C_TAB.

Here, for 09 value, i took HORIZONTAL_TAB.

So, according to ur value you need to take respective attribute from class CL_ABAP_CHAR_UTILITIES.

Tell me the value for them.

So, that i will give respective code.

Regards

Sandeep Reddy.