Skip to Content

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

digits

hi i have a 6 char field .

in that i have to check each character is a char or numeric .

pls help me

Tags:
Former Member
Former Member replied

Hi

declare 2 variables:

data: char(26) type c value 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',

num(9) type value '1234567890',

str(6) type c value 'ABF123'.

now use the string comparison paramters like CS,CO,CN etc and check

if str CS char or Str CO num.

.............

endif.

Regards

Anji

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