Skip to Content
0
Former Member
Jan 15, 2008 at 04:56 PM

has to check the validity

16 Views

hi,

i have to check the validate aggrements for each material and has to display * if there are more than 1 valid aggrement for a particular material .

v_count = 1.

LOOP AT i_ebeln INTO wa_ebeln

WHERE matnr = wa_displaylog-matnr and matnr ne space.

IF v_count > 1.

wa_displaylog2-mover = '*'.

EXIT.

ENDIF.

wa_displaylog2-mover = space.

wa_displaylog2-ebeln = wa_ebeln-ebeln.

wa_displaylog2-netpr = wa_ebeln-netpr.

v_count = 2.

ENDLOOP.

when i used this code and changes the test file it is displaying only one aggrement number(ebeln) and no * .when i excute again its working .what was the problem

i used my select stmt as

SELECT ekpoebeln matnr ekponetpr

INTO CORRESPONDING FIELDS OF TABLE i_ebeln

FROM ekpo INNER JOIN ekko

ON ekkoebeln = ekpoebeln

WHERE ekkokdate >= sy-datum AND ekkoloekz NE 'L' AND ekpo~loekz NE 'L' AND

( ekkoebeln LIKE '46%' OR ekkoebeln LIKE '56%' ).

Plz suggest the appropriate answer .

Thanks

Edited by: sukruthi raj on Jan 15, 2008 6:54 PM