Skip to Content
0
Jul 13, 2011 at 08:14 AM

ABAP interesting patterns in standard

47 Views

Hello, ladies and gentlemen,

I am reading through some standard function modules and find things I would never write myself. So I thought I could ask you about your opinions on these patterns.

First one is:

LOOP AT LM_T030B WHERE KTOSL = I_KTOSL.
    EXIT.
  ENDLOOP.

  IF NOT SY-SUBRC IS INITIAL.

Is there any special performance reason for this? a dirty side effect? I don`t think so, but I am asking just in case I am missing. Maybe we can learn something here:))

Cheers Otto