Skip to Content
0
Dec 31, 2022 at 06:14 PM

Need help to sum up total amount

89 Views

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