Search
Search

# problem on logical condition ( urgent)

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' ) ) ) ).