Skip to Content
0
Former Member
Jul 21, 2005 at 10:51 PM

checking for the condition types using case statement

55 Views

hi folks,

I have a lot of condition types that I have to check for and I am using case statement to do that. The code goes like this.

case wac-kschl.

when 'ZRAT' OR 'ZAGR' OR 'ZRCR' OR

'Y098' OR 'Y007' OR 'ZREW' OR 'Y106' OR 'ZTSR' OR 'Y127' OR 'Y125' OR 'Y126' OR 'Y124' OR 'Y157' OR 'Y092' OR 'Y085' OR 'Y090' OR 'ZMZD'

OR 'Y215' OR 'Y214' OR 'Y111' OR 'ZC$D' OR 'ZAUD'.

up till here it is working on errors and when I add few more condition types to the case statement it is throwing the error.

I have to check for all the condition types out here.

How can I correct it? Is there a better way to do it?

thanks

Santhosh