‎2008 May 21 3:34 PM
Hi ,
In unicode conversion if we face 'concatenate' statemant, How to unicode it ?
CONCATENATE hl1 hl2 '%' INTO prodhs .
thanks in advance.
kaladhar.
‎2008 May 21 3:36 PM
Hi,
can you give some wat more code.
declaration part is main.
give that part.
Regards
Sandeep Reddy
‎2008 May 21 3:42 PM
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.
‎2008 May 21 3:37 PM
Hi,
In your program go to "Attributes" and check the checkbox "Unicode checks active". It will work.
‎2008 May 21 3:42 PM
if your hl1 & hl2 & prodhs are all character data type. then you don't have problem to concatenate in unicode enviornment.
a®
‎2008 May 21 3:55 PM
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.