Skip to Content

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

How to identify contents of a character field.

Hi,

I have a field type c and length 5.

I want to check if the contents of this field are number or not, how do i achieve it.

Ex: if that field has 2000, then I want to identify it...

Please help me with the logic,

Thanks,

CD..

Tags:
replied
IF LV_VAR CA '0123456789'.
* this has numbers
ENDIF.

You can use other operators aswell like CO - Contains Only etc etc

-Aman

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