Skip to Content
0
Former Member
Jan 11, 2008 at 10:39 PM

display * for more than 2

16 Views

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