Skip to Content
0
Former Member
Mar 30, 2015 at 10:40 AM

how to change the previous records

13 Views

Hi all

sale no doc no type amount

10004386 4900006963 WA 0 (1425) 10004386 4900006963 WA 0 (1425) 10004386 5000011439 WE 2,850.00

here i have taken the average of the WE = 2850 / 2 = 1425 this value has needs to be added in 1st two rows in amount column how to do this for this part i dont know how to do can any one help?

loop at t_output.
** Begin of changes - Maha - GP RPT
if ( t_output-blart NE 'WE' and t_output-blart NE 'RE').
if t_output-blart EQ 'RV'.
temp = temp + 1 .
fin = temp .
endif.

if t_output-blart EQ 'WL'.
Test = test + 1 .
fin = test.
endif.

if t_output-blart EQ 'WA'.
te = te + 1.
fin = te.
endif.
ENDIF.
if t_output-blart EQ 'WE' and t_output-freight is not INITIAL.
data: res type dmbtr.
res = t_output-freight / fin.
i_final-freight = res .
clear t_output-freight.
clear: fin,te,test,temp,res.
endif.
append i_final.
clear : i_final." ,temp.
** end of changes - Maha - GP RPT.
ENDLOOP.


With thnks,

Maha.