hey,
I have to display * if the material contains more than one aggrement(ebeln) i used
LOOP AT i_ebeln INTO wa_ebeln
where matnr = wa_newinput-matnr.
IF sy-tabix GE 2.
wa_displaylog-mover = '*'.
EXIT.
ENDIF.
ENDLOOP.
READ TABLE i_ebeln INTO wa_ebeln
with key matnr = wa_newinput-matnr.
IF sy-subrc EQ 0.
wa_displaylog-ebeln = wa_ebeln-ebeln.
wa_displaylog-netpr = wa_ebeln-netpr.
ENDIF.
but it is displaying * for every material that has one aggrement also