‎2007 Jan 18 5:32 AM
Good morning all,
how can i write the below in ABAP
if ( a and b ) ne '1'.
write a.
elseif ( a and b ) = '1'.
write b.
thanks in advance.
‎2007 Jan 18 5:35 AM
Hi
Try this.
if a <> 1 and b <> 1.
write a.
elseif ( a = 1 ) and ( b = 1 ).
write b.
endif.
or
if ( a ne 1 ) and ( b ne 1 ).
write a.
elseif ( a eq 1 ) and ( b eq 1 ).
write b.
endif.
thanks
Shiva
Message was edited by:
Shivakumar Hosaganiger
‎2007 Jan 18 5:34 AM
Hi,
<b>if a ne 1 and b ne 1.
write a.
esleif a eq 1 and b eq 1.
write b.
endif.</b>
Regards,
Balavardhan.K
‎2007 Jan 18 5:35 AM
Hi
Try this.
if a <> 1 and b <> 1.
write a.
elseif ( a = 1 ) and ( b = 1 ).
write b.
endif.
or
if ( a ne 1 ) and ( b ne 1 ).
write a.
elseif ( a eq 1 ) and ( b eq 1 ).
write b.
endif.
thanks
Shiva
Message was edited by:
Shivakumar Hosaganiger
‎2007 Jan 18 5:37 AM
hi shaheen,
what u have written is absolutely right with slight modification..we follow the same thing in ABAP
if ( a ne 1 ) and ( b ne 1 ) .
write a.
elseif ( a eq '1')and ( b eq '1') .
write b.
endif.
pls reward helpful points,
siva
‎2007 Jan 18 5:49 AM
hi,
these r the following statements u need to write in ABAP.
IF a <> 1 AND b <> 1.
WRITE a.
ELSEIF a = 1 AND b = 1.
WRITE b.
ENDIF.
reward if helpful.
‎2007 Jan 18 5:57 AM
Hi
IF a NE 1 AND b NE 1.
WRITE a.
ELSEIF a EQ 1 AND b EQ 1.
WRITE b.
ENDIF.
PLZ REWARd POINTS
‎2007 Jan 18 6:07 AM