Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

counting string length

i want the count of the number of integers used in the string '1,2,10,22,3,5' leaving commas.

plz help.

Former Member
Former Member replied

Hi,

If the string has only integers and commas you can use:

FIND ALL OCCURRENCES OF ',' IN string MATCH COUNT mcnt.

The number of integers is mcnt + 1.

Regards.

Sandra Marques

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question