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 Condition

Former Member
0 Likes
1,053

Hi Friends

I need to put a IF condition ,

if ( bsik-xblnr and bsik-augdt ) is initial.

It is showing me error what wrong in this.

Regards,

Line

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,022

hi,

this is the corretc way.

<b>

if ( bsik-xblnr is initial and bsik-augdt is initial ).

endif.

</b>

Regards

Reshma

hi,

this is the corretc way.

<b>

if ( bsik-xblnr is initial and bsik-augdt is initial ).

endif.

</b>

Regards

Reshma

9 REPLIES 9
Read only

Former Member
0 Likes
1,022

Hi,

U cant do like this.

U have to write :

if bsik-xblnr is initial and bsik-augdt is initial

Regards,

Himanshu

Read only

Former Member
0 Likes
1,022

Hi

<b>if ( bsik-xblnr is initial and bsik-augdt is initial ).</b>

Max

Read only

Former Member
0 Likes
1,022

try like this

if bsik-xblnr is initial.

and bsik-augdt is initial.

hope this is enough.

reward some points.

with regards,

suresh babu aluri.

Read only

Former Member
0 Likes
1,022

Hi,

In ABAP you have to write:

if bsik-xblnr is initial and bsik-augdt is initial.

Read only

Former Member
0 Likes
1,023

hi,

this is the corretc way.

<b>

if ( bsik-xblnr is initial and bsik-augdt is initial ).

endif.

</b>

Regards

Reshma

Read only

Former Member
0 Likes
1,022

hi ,

put condition like this

if bsik-xblnr is initial

and bsik-augdt is initial.

regards

Madhumati

***rewards poitns if helpful

Read only

Former Member
0 Likes
1,022

Hi Line,

<b>If < > is initial</b> is used for internal table.

these are indivisual fields.

Use this code :

if ( bsik-xblnr and bsik-augdt ) eq 0.

message e001.

endif.

Reward points if helpful.

Regards,

Hemant

Read only

Former Member
0 Likes
1,022

Hi Line,

Use this code inplace of that I have post in previous thread.

If (bsik-xblnr eq 0 and bsik-augdt eq 0).

do this.

Endif.

Regards,

Hemant

Read only

Former Member
0 Likes
1,022

Hi,

You cant same logical expression for diff variables in ABAP. Use:

if ( bsik-xblnr is initial and bsik-augdt is initial).

Thanks

Sandeep