Skip to Content

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

INITIAL Check on NUMC fields

Hey,

is there any nice way to make a check like "IS INITIAL" for char values on numc fields ? My problem is that there is a '000' in the numc field and so the "IS INITIAL" thinks that there are values.

Bad solution:

IF field IS NOT INITIAL AND NOT field EQ '000'.

***

ENDIF.

Greetz

Former Member
replied

A simple workaround :

DATA:
      v_numc TYPE numc3,
      v_char TYPE char3.

v_char = v_numc.

IF v_char IS NOT INITIAL.
  WRITE: / 'CHAR & NUMC do not have same initial values'.
ENDIF.

IF v_char CO '0'.
  WRITE: / 'I found a work around. Yipeee !!!'.
ENDIF.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question