‎2011 Feb 07 12:13 PM
Hi All,
We have upgraded our system from 4.7C to ECC 6. As a part of unicode conversion I made some changes to the program.
In 4.7C:
data: i_citilogo(25) type x occurs 0 with header line.
i_citilogo = '4749463839618F002800F7C000B7000200005543488600095C'.
append i_citilogo.
The unicode error is "The length of "I_CITILOGO" in bytes must be a multiple of the size of a Unicode character, regardless of the size of the Unicode character."
In ECC6: I made changes as, data: i_citilogo(52) type c occurs 0 with header line.
and in attributes, made unicode check active.
Now the transaction is working fine, but am not getting the background pictures,logos and terms and conditions on the output screen. where all I changed the type X to C, it is not working.
If I make the unicode active uncheck, its showing syntax error that the program is not unicode compatible.
<priority reduced by moderator>
Please somebody help me with this.
Thanks in advance.
Regards,
Tanuja.
Moderator message: please use more descriptive subject lines for your posts.
Edited by: Thomas Zloch on Feb 7, 2011 1:28 PM
‎2011 Feb 07 12:25 PM
converting type x to c will not solve the problem
data: i_citilogo(25) type x
data: i_citilogo(25) type c
you need to use Fm which takes the input as Xstring and then convert it to Type String .
HRCONVERTXSTRINGSTRING
Use this FM to serve your purpose
br,
VJ.
‎2011 Feb 07 12:56 PM
I got this FM 'HR_KR_XSTRING_TO_STRING' . Is this the right one? what are the input and output parameters I need to pass in this? I tried as below, its going to dump.
data: i_citilogo(25) type c occurs 0 with header line.
CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
EXPORTING
FROM_CODEPAGE = '8500'
in_xstring = i_citilogo
OUT_LEN =
IMPORTING
OUT_STRING = i_citilogo
Please suggest.
Thanks & Regards,
Tanuja.
‎2011 Feb 07 12:55 PM