Skip to Content

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

How to compare several strings


I want to compare the first character of a batch number in the expression editor of an action block and check if it is an alpha to compare with all the 26 alpha characters.Is there any way to compare as we have in SQL as [A-Z].

e.g: if my batch number is F012345 or S012345,i want to exclude these. and if my batch number is 7012345 or 5012345,I want to include this.

Thanks in advance,


Former Member
Former Member replied

Hi sanjeev,

I can suggest following solution:

take one local variable suppose x=F012345

than use stringleft and number function to verify first character is string or number.

Take first character of your batch number using string function.


Check wheather it is number or not by number function


but before number function you have to check stringleft(X,1) != 0

Than I think your logic will work.


Manoj Bilthare

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