Application Development 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: 

if not it_vbak[] is initial.

Former Member
0 Kudos

Hi Friends,

I get a small doubt using for all entries..

is IF NOT IT_VBAK[] IS INITIAL and

IF IT_VBAK[] IS NOT INITIAL. ARE SAME.?

I HOPE THE FIRST ONE IS CORRECT.

BUT THE SYSTEM WONT RAISE ANY ERROR WHEN USING THE SECOND ALSO.

THEN WHT IT WOULD MEAN FOR THE SECOND.

Guru.

1 ACCEPTED SOLUTION

former_member386202
Active Contributor
0 Kudos

Hi,

Both are same

Reagrds,

Prashant

8 REPLIES 8

former_member386202
Active Contributor
0 Kudos

Hi,

Both are same

Reagrds,

Prashant

Former Member
0 Kudos

Hi guru

You can declare in both way.

Regards

karthik

former_member404244
Active Contributor
0 Kudos

Hi,

U can use both...both are same only..

Regards,

nagaraj

Former Member
0 Kudos

hi,

Mr.Gururam

see both the statements are correct but for the first one u r cheking true condition where as for the second one u r checking false condition i hope u got it if still u r problem not solved

i am here ro to u help u

my mailid mutyalasunilkumar@gmail.com

if helpful plzzzzzzz reward points

matt
Active Contributor
0 Kudos

> hi,

>

> Mr.Gururam

> see both the statements are correct but for

> the first one u r cheking true condition where as for

> the second one u r checking false condition i hope u

> got it if still u r problem not solved

>

> i am here ro to u help u

> my mailid mutyalasunilkumar@gmail.com

>

> if helpful plzzzzzzz reward points

Your answer is wrong. You didn't see the NOT in the first condition. The question is whether

IF <b>NOT</b> IT_VBAK[] IS INITIAL. is the same as IF IT_VBAK[] IS <b>NOT</b> INITIAL.

The second syntax was introduced later than the first. It is better to use IS NOT, as it is more readable. ( But the functionality is identical ).

matt

Former Member
0 Kudos

HI,

both are same.u can do either way.

rgds,

bharat.

0 Kudos

Hi guru,

Both the statements are same ... but the difference is

IF NOT .....IS INITIAL is used previously ... but now we are using

IF .............IS NOT INITIAL ... since to provide readability and compared to first one it is the latest statement used by everyone.

Former Member
0 Kudos

Both the statements serve the same purpose..