2012 May 21 8:44 AM
i am making a sales report and 8 of my feilds are displaying correct.and rest all are coming correct in debugging mode but when i am executing it,rest fields are copying the values of last feild irrespective of the input.please tell me how to correct it.
2012 May 21 9:33 AM
Hi
clear the work area after appending into internal table.
if you want more info reg to this copy the code after analyzing i can say wt the error
Regards
Mahesh
2012 May 31 7:40 AM
i have make a new table same as final table named gt_temp.
loop at gt_final.
at new vbeln.
move-corresponding gt_final to gt_temp.
sum.
gt_temp-prod1 = gt_final-prod1.
gt_temp-prod2 = gt_final-prod2.
gt_temp-prod3 = gt_final-prod3.
gt_temp-prod4 = gt_final-prod4.
gt_temp-prod5 = gt_final-prod5.
gt_temp-prod6 = gt_final-prod6.
gt_temp-prod7 = gt_final-prod7.
gt_temp-prod8 = gt_final-prod8.
gt_temp-prod9 = gt_final-prod9.
gt_temp-prod10 = gt_final-prod10.
gt_temp-prod11 = gt_final-prod11.
gt_temp-prod12 = gt_final-prod12.
gt_temp-prod13 = gt_final-prod13.
gt_temp-prod14 = gt_final-prod14.
append gt_temp.
endat.
* move-corresponding gt_temp to gt_final.
endloop.
2012 May 31 7:47 AM
Query :
What is the structure of GT_TEMP (or GT_FINAL)
2012 May 31 9:23 AM
Try This.
loop at gt_final.
at new vbeln.
sum.
gt_final-vbeln = gt_final-vbeln.
gt_final-prod1 = gt_final-prod1.
gt_final-prod2 = gt_final-prod2.
gt_final-prod3 = gt_final-prod3.
gt_final-prod4 = gt_final-prod4.
gt_final-prod5 = gt_final-prod5.
gt_final-prod6 = gt_final-prod6.
gt_final-prod7 = gt_final-prod7.
gt_final-prod8 = gt_final-prod8.
gt_final-prod9 = gt_final-prod9.
gt_final-prod10 = gt_final-prod10.
gt_final-prod11 = gt_final-prod11.
gt_final-prod12 = gt_final-prod12.
gt_final-prod13 = gt_final-prod13.
gt_final-prod14 = gt_final-prod14.
endat.
modify gt_final transporting prod1 prod2 prod3 prod4 prod5 prod6 prod7 prod8 prod9 prod10 prod11 prod12 prod13 prod14 where vbeln = gt_final-vbeln.
endloop.
after that use delete adjecent duplicate from table statement.
2012 May 21 9:35 AM
2012 May 21 10:27 AM
Hi Ankan,
Have you cleared the ALV buffer using the program BCALV_BUFFER_DELETE giving your program name?
At times ALV won't display the recent fieldcatalog changes as it would be read from the buffer.
Otherwise check the ALV Consistency check screen.
Regards,
Karthik D
2012 May 22 8:50 AM
i have checked ALV consistency and it is showing error there but i am unable to correct it.
2012 May 23 9:49 AM
What is the error? Kindly show us. Also, let us know how you populate your fieldcatalog.
2012 May 23 9:19 AM
Hi Ankan,
Just a thought... after going through all the responses. If your internal table is having correct data in debugger, then do check once your field catalog.
you might have assign same fieldname to all the column ( or something like that).
Regards,
ManuB