Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

INITIAL Check Under 46C

Former Member
0 Likes
683

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
641

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 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

3 REPLIES 3
Read only

Former Member
0 Likes
642

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

Read only

Former Member
0 Likes
641

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

Read only

Former Member
0 Likes
641

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á