HI Alexander,
- If I understood you correctly, you have to delete the field values of the duplicating lines, but still have to display in the table format with blank values and number field.
- What you can do that is that, you can loop through your internal table (sorted by id_num) and delete the values when the just before work area values(index - 1) duplicates with present. For that you could some thing like.
LOOP AT ITAB INTO WA_ITAB.
READ TABLE ITAB TRANSPORITNG NO FIELDS INDEX SY-INDEX - 1 ID_NUM = WA_ITAB-ID_NUM NAME = WA_ITAB-NAME. " WILL definitely FAIL FOR FIRST LOOP
IF SY-SUBRC = 0.
WA_ITAB-ID_NUM = ''.
WA_ITAB-NAME = ''.
MODIFY ITAB FROM WA_ITAB TRANSPORITNG ID_NUM NAME INDEX SY-INDEX.
ENDIF.
ENDLOOP.
Regards,
Philip.