01-29-2010 6:27 AM
Hi,
Can anyone tell me how to convert the below one to avoid unicode check error.
DATA: V_G_BUFF(8008) TYPE X VALUE ''.
Thanks,
Ramya.
01-29-2010 6:33 AM
Use Class cl_abap_char_utilities in place of TYPE X.
Example is shown below for horizontal tab
DATA: l_sep type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
Before unicode the same variable was declared as under :
DATA : l_sep type x value '09'.
01-29-2010 6:36 AM
Horizontal_tab is used to convert if the value is '09'. But how to convert if the hexa decimal value is space.
01-29-2010 6:35 AM
01-29-2010 6:39 AM
Hi
Declare the Class cl_abap_char_utilities load.
data:Class cl_abap_char_utilities load.
and in the STD class we have different methods , use the Horizontal_tab method , so that it will convert it to '#'.
For example if u r downloading the excel file from non unicode it # value is going to be 09 and now for the unicode we need to use this class method .
DATA: l_sep type c value cl_abap_char_utilities=>Horizontal_tab.
Regards,
Bharani
01-29-2010 6:43 AM
01-29-2010 6:47 AM
01-29-2010 10:26 AM
Hi Ramya,
I believe that you're looking for utility class CL_ABAP_CONV_IN_CE. You can check out the [wiki|http://wiki.sdn.sap.com/wiki/display/ABAP/CL_ABAP_CONV_IN_CE] for some examples.
Cheers, harald