I have an itab which has the fields kunnr, bukrs, prodgrp & amound. I have the below lines:
150 1000 adsl 10
150 1000 adsl1 15
150 1000 adsl2 20
150 8000 vdsl 25
150 8000 vdsl1 10
200 1000 adsl1 80
200 1000 adsl2 80
I want to do the following: At the end of each customer sum the amount and if it is less than the amount that put the user in selection screen, delete the lines of itab. If it is bigger leave them. This itab at the end of the program will be displayed. Any idea on how to do it in a quick way?