2007 Apr 28 7:26 AM
Hi Experts,
Under version 46C, I am not allowed to check if a certain data/work area/internal table has value in it or not by using 'IF data IS NOT INITIAL'. Could anyone help me out how I can achieve the same goal under 46C? Thanks
2007 Apr 28 12:31 PM
Hi
I hope there is nothing like that
you can check very well like
IF NOT ITAB[] IS INITIAL.
ENDIF.
IF NOT V_WA IS INITIAL.
ENDIF.
Check your command and its syntax?
reward if useful
regards
anji
Hi
I hope there is nothing like that
you can check very well like
IF NOT ITAB[] IS INITIAL.
ENDIF.
IF NOT V_WA IS INITIAL.
ENDIF.
Check your command and its syntax?
reward if useful
regards
anji
2007 Apr 28 12:31 PM
Hi
I hope there is nothing like that
you can check very well like
IF NOT ITAB[] IS INITIAL.
ENDIF.
IF NOT V_WA IS INITIAL.
ENDIF.
Check your command and its syntax?
reward if useful
regards
anji
2007 Apr 28 1:04 PM
Hi,
It is not related to any Version. There might be something wrong in the statement which you have written. please check again. however, below is the code how to use.
1)if not itab[] is initial. " checking internal table empty or not
endif.
2)if not itab is initial. " checking workarea is empty or not
endif.
3)if not gv_count is initial. " checking a variable is empty or not
endif.
thanks,
sksingh
2007 Apr 28 1:05 PM
Hi!
For tables you might try out the following:
DESCRIBE TABLE it_data LINES lv_lines.
IF lv_lines <> 0.
ENDIF.
For wa you might try out this:
IF wa_data <> ''.
ENDIF.
Or you might check out the key fields in it:
IF wa_data-key <> ''.
ENDIF.
Or...
IF wa_data-key <> SPACE.
ENDIF.
Regards
Tamá
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |