Application Development 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: 

highest STRLEN of all lines in internal table

Former Member
0 Kudos
213

Hi,

i need the highest STRLEN of each record of en internal table.

I do it like this:


LOOP AT IT_LIST INTO WA_LIST.
  IF STRLEN( WA_LIST ) > ENDX.
    ENDX = STRLEN( WA_LIST ).
  ENDIF.
ENDLOOP.

Question: is there a way to do it in one command, similar as describe table itab ...

thanks.

regards, Dieter

1 ACCEPTED SOLUTION

matt
Active Contributor
0 Kudos
46

Not that I am aware of.

matt

2 REPLIES 2

matt
Active Contributor
0 Kudos
47

Not that I am aware of.

matt

Former Member
0 Kudos
46

as i see it you aint have another chance.

What you could do is: make a routine which gets triggered when data is entered into your table, and which writes the STRLEN of your desired field in another appended field of that table.

then you could do a select MAX().