hi all,
its working but the problem is data is nt appending into body.
LOOP AT it_tab2.
SELECT * into TABLE it_rpsco
FROM rpsco
WHERE objnr = it_tab2-objnr and
lednr eq v_lednr and
gjahr eq p_year and
wrttp eq '01' and
beltp eq '1'.
IF SY-SUBRC EQ 0.
APPEND it_rpsco.
ENDIF.
ENDLOOP.
in the above code under loop am selecting data into it_rpsco,
allways it is showing current record as first record only, its body getting only 1 record(current) it is nt appending .
what is wrong in that.
Rgds,
kumar.