Skip to Content
0
Former Member
Nov 12, 2007 at 03:38 AM

How do I do a data type check?

33 Views

Hi.

I was trying to do a hashtotal for a table column. It is necessary that the table column only contains numeric values. Is there a way to do a data type check, before I compute the hashtotal value? Thanks.

******************************************

LOOP AT itab INTO hash_value.

IF hash_value = NUMC. " (==> Cannot)

hash_total = hash_total + hash_value.

ENDIF.