05-08-2009 7:46 PM
I have a custom program developed on Non Unicode system, that is using CL_ABAP_TYPEDESCR -> DESCRIBE_BY_DATA to get field lengths of the fields in a structure. The code works perfectly file on Non Unicode system where it is developed, However when the same code is imported on a UNICODE system the field lengths of the fields in the same structure are exactly doubled. Anybody has any idea, why this may be happening?
05-12-2009 1:46 PM
> However when the same code is imported on a UNICODE system the field lengths of the fields in the same structure are exactly doubled. Anybody has any idea, why this may be happening?
Yes - because Unicode uses two bytes to represent ONE character.
Markus
03-08-2010 8:22 PM
Hello,
Anybody has a solution how to devide each component length by 2...?
I would appreciate it, because then I can use the right length of the field.
thx
03-09-2010 6:59 AM
Hi,
please use CL_ABAP_ELEMDESCR with the attribute OUTPUT_LENGTH in order to get the number of characters.
Best regards,
Nils Buerckel
SAP AG