Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Case Statement Vs If Else statement

Former Member
0 Likes
895

Hi Experts

Can you please confirm while doing the ABAP coding which is the best practice from performance point of view.

Either to use case statment or If else statment

Thanks

Hamendra

2 REPLIES 2
Read only

Former Member
0 Likes
535

case is preferable. However if there is only one or two conditions to be checked go with IF, Endif.

But if a lot of contitions always use,

Case. Endcase. " This is good for performance.

Thanks,

Shreekant

Read only

ThomasZloch
Active Contributor
0 Likes
535

Has been asked and answered several times before, please search before posting.

Thread locked.

Thomas