Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

xstring length

0 Likes
4,114

Any idea of finding the length of an XSTRING without using XSTRLEN??

2 REPLIES 2
Read only

Former Member
0 Likes
1,919

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

Read only

Former Member
0 Likes
1,919

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