Skip to Content
0
Former Member
Jul 01, 2007 at 09:41 AM

help with exit

10 Views

Hi all

my exit statement is not working why?

i wont thet when value true exit from loop.

LOOP AT l_fields INTO wa_l_fields.

IF wa_l_fields = 'MASSG'.

exit.

endif.

CASE wa_l_fields-fname.

WHEN 'PERSG'.

MOVE: wa_l_fields-newdt TO l_persg.

WHEN 'ORGEH'.

MOVE: wa_l_fields-newdt TO l_orgeh .

WHEN 'STELL'.

MOVE: wa_l_fields-newdt TO l_stell.

WHEN 'PLANS'.

MOVE: wa_l_fields-newdt TO l_plans.

ENDCASE.

ENDIF.

ENDLOOP.