on 08-17-2007 1:56 PM
hi all
please find out the problem as given below and give the solution as soon as possible.
<b><u> PROBLEM 1</u></b>
IF
WA_REGUH-RZAWE = 'R'
AND
WA_BNKA-SWIFT <> 'HSBC01INDIA' or <> 'HSBC02INDIA' or <> 'HSBCINBB' .
For the above condition, below code is correct or not? If not then give correct code for the same
IF ( ( WA_REGUH-RZAWE EQ 'R' )
AND ( ( WA_BNKA-SWIFT NE 'HSBC01INDIA' )
OR ( WA_BNKA-SWIFT NE 'HSBC02INDIA' )
OR ( WA_BNKA-SWIFT NE 'HSBCINBB' ) ) ).
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<b><u>PROBLEM 2</u></b>
IF
( WA_REGUH-RZAWE = 'R'
AND
WA_BNKA-SWIFT = 'HSBC01INDIA' or = 'HSBC02INDIA' or = 'HSBCINBB' )
OR
( WA_REGUH-RZAWE = 'N'
AND
WA_BNKA-SWIFT = 'HSBC01INDIA' or = 'HSBC02INDIA' or = 'HSBCINBB' ).
For the above condition, below code is correct or not? If not then give correct code for the same
IF ( ( ( WA_REGUH-RZAWE EQ 'R' )
AND ( ( WA_BNKA-SWIFT EQ 'HSBC01INDIA' )
OR ( WA_BNKA-SWIFT EQ 'HSBC02INDIA' )
OR ( WA_BNKA-SWIFT EQ 'HSBCINBB' ) ) )
OR ( ( WA_REGUH-RZAWE EQ 'N' )
AND ( ( WA_BNKA-BNKLZ EQ 'HSBC01INDIA' )
OR ( WA_BNKA-BNKLZ EQ 'HSBC02INDIA' )
OR ( WA_BNKA-BNKLZ EQ 'HSBCINBB' ) ) ) ).
IF ( ( WA_REGUH-RZAWE EQ 'R' )
AND ( ( WA_BNKA-SWIFT NE 'HSBC01INDIA' )
AND ( WA_BNKA-SWIFT NE 'HSBC02INDIA' )
AND ( WA_BNKA-SWIFT NE 'HSBCINBB' ) ) ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ajit,
try like this
1.IF ( ( WA_REGUH-RZAWE EQ 'R' )
AND ( ( WA_BNKA-SWIFT NE 'HSBC01INDIA' )
OR ( WA_BNKA-SWIFT NE 'HSBC02INDIA' )
OR ( WA_BNKA-SWIFT NE 'HSBCINBB' ) ) )
or
IF WA_REGUH-RZAWE EQ 'R'
AND WA_BNKA-SWIFT NE 'HSBC01INDIA'
OR WA_BNKA-SWIFT NE 'HSBC02INDIA'
OR WA_BNKA-SWIFT NE 'HSBCINBB' .
2.WA_REGUH-RZAWE = 'N'
AND
WA_BNKA-SWIFT = 'HSBC01INDIA' or = 'HSBC02INDIA' or = 'HSBCINBB'
or
(WA_REGUH-RZAWE = 'N'
AND
WA_BNKA-SWIFT = 'HSBC01INDIA' or = 'HSBC02INDIA' or = 'HSBCINBB' )
if helpful reward some points.
with regards,
Suresh Aluri.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think you need so many brackets, try this
-1
IF WA_REGUH-RZAWE EQ 'R'
AND ( WA_BNKA-SWIFT NE 'HSBC01INDIA'
OR WA_BNKA-SWIFT NE 'HSBC02INDIA'
OR WA_BNKA-SWIFT NE 'HSBCINBB' ).
-2
IF ( WA_REGUH-RZAWE EQ 'R'
AND ( WA_BNKA-SWIFT EQ 'HSBC01INDIA'
OR WA_BNKA-SWIFT EQ 'HSBC02INDIA'
OR WA_BNKA-SWIFT EQ 'HSBCINBB' ) )
OR ( WA_REGUH-RZAWE EQ 'N'
AND ( WA_BNKA-BNKLZ EQ 'HSBC01INDIA'
OR WA_BNKA-BNKLZ EQ 'HSBC02INDIA'
OR WA_BNKA-BNKLZ EQ 'HSBCINBB' ) ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
7 | |
7 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.