For a particular PO suppose 3100000180 it has 3 line items in EKPO table, the deletion indicator LOEKZ values are L,null,null for 3 line items..now I want to display all line items of that PO ..and condition is if LOEKZ = L then make NETWR = 0.00 if not it should take the value which has in NETWR field. And I kept one variable(V_NETWR) where it store all line item NETWR(i.e, sum of all 3 line item NETWR) it should not take L items NETWR but it should add all the LOEKZ = null values.
Given below is the code ..but all conditions are not populated can anyone help me out
Loop at lt_ekpo where ebeln = lt_ekpo-ebeln.
v_netwr = lt_ekpo-netwr.
IF lt_ekpo-loekz = 'L'.
move '0.00' to v_netwr.
endif.
SHIFT v_netwr LEFT DELETING LEADING space.
v_total1 = v_total1 + lt_ekpo-netwr.
MOVE v_total1 TO v_total.
SHIFT v_total LEFT DELETING LEADING space.
Endloop.