I am new to ABAP.
Please help me to write a code for smartform where net value, quantity, unit price should be added based on new ebeln and sfir Id inside a loop at t_final to into w_final where t_final has multiple values with some same ebeln and sfir_id and different values also...
eg.
EBELN. SFIR_ID. Unit Price
450360. 66100582. 55
450360. 66100582. 65
450363. 66100583. 55
450363. 66100583. 45
450363. 66100583. 66
I need to add these and in output it should show only 2 lines at output in smartform.
450360. 66100582. 120
450363. 66100583. 166