Small refactoring towards cleaner code: keep the IF small

I want to share a small refactoring example with you. For whatever reason, I have this code: IF mv_given_cat_for_selection IS NOT INITIAL. " take what is given. r_result = VALUE #( ( sign = wmegc_sign_inclusive option = wmegc_option_eq low = mv_given_cat_for_selection ) ). ELSE. " Take cat from first/any one …

​ I want to share a small refactoring example with you. For whatever reason, I have this code: IF mv_given_cat_for_selection IS NOT INITIAL. " take what is given. r_result = VALUE #( ( sign = wmegc_sign_inclusive option = wmegc_option_eq low = mv_given_cat_for_selection ) ). ELSE. " Take cat from first/any one …   Read More Latest blog posts for ABAP Development 

Leave a Reply