Skip to Content
0
Former Member
Feb 09, 2008 at 12:30 AM

Performance : if-endif vs case-endcase.

649 Views

Hi,

Which is better in performance ? if endif or case endcase?

I have an if endif condition in which i am checking 20 values like

if wa-var1 = '1' OR wa-var = '2' OR

............................................

...........................................

wa-var1 = '19' OR wa-var = '20'.

molga = '26'

endif.

This code is in a userexit and the std application is taking a lot of time to complete.

Would a case endcase help ?

Thanks

Pranati.