2009 Dec 18 2:25 PM
Hi,
I have a variable of type char(8).
I want to check if this field is empty. This is the logic I use right now:
condense lv_date no-gaps.
if lv_date eq ''.
*then some default value
endif.
Is this the correct approach or there is a way to directly check for null values in a variable.
Thanks,
CD
2009 Dec 18 2:30 PM
Hello,
You have to check IS INITIAL.
condense lv_date no-gaps.
if lv_date IS INITIAL.
*then some default value
endif.BR,
Suhas
Hello,
You have to check IS INITIAL.
condense lv_date no-gaps.
if lv_date IS INITIAL.
*then some default value
endif.BR,
Suhas
2009 Dec 18 2:30 PM
Hello,
You have to check IS INITIAL.
condense lv_date no-gaps.
if lv_date IS INITIAL.
*then some default value
endif.BR,
Suhas
2009 Dec 18 2:34 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |