‎2007 Oct 18 4:30 PM
Any idea of finding the length of an XSTRING without using XSTRLEN??
‎2007 Oct 18 4:35 PM
Check this out if it helps.
The elementary data type STRING is similar to data type C and refers to a variable-length string. Accordingly, the elementary data type XSTRING is similar to data type X and refers to a variable-length byte sequence.
In contrast to a C or X field, the length of a string is not static but variable and adjusts itself to the current field content at runtime. Dynamic memory management is used internally. Strings can have any length.
The initial value of a string is an empty string with length 0. A structure containing a string is seen as deep. A deep structure cannot be used like a C field. Strings can be displayed in the ABAP Debugger and used in the ABAP Dictionary.
ashish
‎2007 Oct 18 4:40 PM
I am not sure but check the below FM's
STRING_LENGTH
SWA_STRINGLENGTH_GET
what happens if you use strlen command,when you see above fm's they use same command.
I don't know exactly if there is any other command like strlen.
Thanks
Seshu