hi,
i have to check my itab if there are 20 or more blnr for one vtref.
at the checking i have to use the first 12 positions of the blnr.
i tried it with this loop but it doesn't work.
hope u can help me.
LOOP AT itab.
AT NEW vtref.
lf_merkblnr = itab-blnr.
CLEAR counter.
REFRESH wa_itab.
ENDAT.
IF itab-blnr(12) EQ lf_merkblnr(12).
+counter = counter + 1.+
APPEND itab TO wa_itab.
ENDIF.
AT LAST." vtref.
IF counter LE 20.
DELETE itab WHERE vtref = wa_itab-vtref.
ENDIF.
ENDAT.
ENDLOOP.
regards,
tobias