cancel
Showing results for 
Search instead for 
Did you mean: 

If Statement in SAP Scripts

Former Member
0 Kudos

Hi All,

I have written the below If statement in SAP scripts but when i execute the same the controll doent check the second line entries. If firtst line doesnot satisfy it goes to the else part. Kindly suggest what is wrong in this..

/: IF &T156T-BWART& = '321' OR &T156T-BWART& = '322' OR

/: &T156T-BWART& = '349' OR &T156T-BWART& = '350' OR

/: &T156T-BWART& = '312' OR &T156T-BWART& = '326' OR

/: &T156T-BWART& = '343' OR &T156T-BWART& = '344'.

/: ELSE

/: ENDIF.

View Entire Topic
Former Member
0 Kudos

Hi,

Please ignore my above comment and try with the following code

Extended command is /=

/: IF &T156T-BWART& = '321' OR &T156T-BWART& = '322' OR
/= &T156T-BWART& = '349' OR &T156T-BWART& = '350' OR
/= &T156T-BWART& = '312' OR &T156T-BWART& = '326' OR
/= &T156T-BWART& = '343' OR &T156T-BWART& = '344'.

/: ELSE

/: ENDIF.

Hope this helsp you.

Regards,

Rajani