Hi Uday
1. Make use of SUM statement : SUM IN AT END OF ,
LOOP AT it_data INTO WA_data.
AT END OF date.
SUM.
APPEND WA_data TO final_tab.
ENDAT.
ENDLOOP.
https://help.sap.com/abapdocu_70/en/ABAPSUM.htm
https://scn.sap.com/thread/569788
2. Collect Statement
https://scn.sap.com/thread/538968
http://help.sap.com/abapdocu_702/en/abapcollect.htm
3. Using parallel cursor approach
SORT it_data by date descending.
it_temp = it_data-date. " A table which has all unique date
SORT it_temp deleting adjacent duplicates.
LOOP AT IT_data into wa_data .
READ TABLE it_temp with key date = wa_data-date TRANSPORTING NO FIELDS.
IF SY-SUBRC EQ 0 .
SUM the invoice with similar date
ELSE.
EXIT. "it will move to next entry in loop statement
ENDIF.
ENDLOOP.
Let me know if this helps .
Regards
Vinita