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

if not it_vbak[] is initial.

Former Member
0 Likes
1,573

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

former_member386202
Active Contributor
0 Likes
1,364

Hi,

Both are same

Reagrds,

Prashant

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.

8 REPLIES 8
Read only

former_member386202
Active Contributor
0 Likes
1,365

Hi,

Both are same

Reagrds,

Prashant

Read only

Former Member
0 Likes
1,364

Hi guru

You can declare in both way.

Regards

karthik

Read only

former_member404244
Active Contributor
0 Likes
1,364

Hi,

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

Regards,

nagaraj

Read only

Former Member
0 Likes
1,364

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 [email protected]

if helpful plzzzzzzz reward points

Read only

matt
Active Contributor
0 Likes
1,364

> 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 [email protected]

>

> 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

Read only

Former Member
0 Likes
1,364

HI,

both are same.u can do either way.

rgds,

bharat.

Read only

0 Likes
1,364

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.

Read only

Former Member
0 Likes
1,364

Both the statements serve the same purpose..