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

Function module

Former Member
0 Likes
546

Hi Friends,

How to find the length of the contents in a field. Is there any FM to find the same.

Kindly guide me.

TIA.

Regards,

Mark K

7 REPLIES 7
Read only

amit_khare
Active Contributor
0 Likes
521

you can use STRLEN command.

Regards,

Amit

Read only

0 Likes
521

Hi,

I want to know the length of the contents and not the field length.

Regards,

Read only

0 Likes
521

hi,

looks like there's some misunderstanding here.

can u please explain ur doubt once again with an example.

for one field, there can be one content only, and it was explained how to retrieve the length of this data.

Thanks,

Viji

Read only

Former Member
0 Likes
521

Hi,

y r u going for FM.U can find it using strlen( ).

Regards,

Padmam.

Read only

Former Member
0 Likes
521

u can use keyword

n = strlen( itab-matnr).

regards

Prabhu

Read only

Former Member
0 Likes
521

Hi Mark,

Try This Function Module,

STRING_LENGTH.

Thanks.

Reward If Helpful.

Read only

Former Member
0 Likes
521

hi Mark,

You can use STRLEN statement or use 'STRING_LENGTH FM

CALL FUNCTION 'STRING_LENGTH'
EXPORTING
string = lv_string
IMPORTING
LENGTH = lv_new

Regards,

Santosh