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: 

Count character in query

0 Kudos

SELECT DISTINCT equz~hequi ,equz~equnr FROM equz
INTO CORRESPONDING FIELDS OF TABLE @it_sequip.

How can i count the vaule per character in EQUZ~HEQUI?

1 ACCEPTED SOLUTION
4 REPLIES 4

0 Kudos

thank you!

Sandra_Rossi
Active Contributor

If you want to use it inside the ABAP SQL query, use the following ABAP SQL String Function:

SELECT ... LENGTH( column/expression ) FROM ...

or after the query, use the ABAP statement "strlen":

length = strlen( variable ).

raghug
Active Contributor
0 Kudos

inside the ABAP SQL query

Always learning something new! Thank you.