Hi ,
im facing one issue.
for example im displaying the output for 115(order).then it's displaying totals properly.
when i go to 109(order) it's displaying the 115 total as present total.
here im clearing the table.but i didn't catch why this is happening.
where as first we see the 109 then 115 then it's no problem.
i.e: my code is
In Main window
/E HEADER_DATA
DEFINE &V_EXTPR_TOT2& = ''
In FOOTER window
/:PERFORM GET_EXTPR_TOT1 IN PROGRAM ZSP_SD_ORDCM.
/:USING &V_TOT&
/:USING &V_EXTPR_TOT2&
/:CHANGING &V_EXTPR_TOT2&
/:ENDPERFORM
In SE38
FORM get_extpr_tot1 TABLES it_input STRUCTURE itcsy it_output STRUCTURE itcsy.
DATA: v_price1 LIKE konv-kbetr,
v_extpr_tot2 LIKE konv-kbetr.
CLEAR: it_input.
Clear v_price1.
READ TABLE it_input INDEX 1.
MOVE it_input-value TO v_price1.
READ TABLE it_input INDEX 2.
MOVE it_input-value TO v_extpr_tot2.
v_extpr_tot2 = v_extpr_tot2 + v_price1.
READ TABLE it_output INDEX 1.
WRITE v_extpr_tot2 TO it_output-value LEFT-JUSTIFIED.
MODIFY it_output INDEX 1.
CLEAR it_output.
ENDFORM.
Plese help me in this.
Thanks,
Srinivas.