Stop duplication in WDA ALV
In my WDA I got a ALV for all the products that are in the cart.
If the user clicks two times on the same product there shouldn't be to entries in the alv. The quantity of this product should be raised by one.
So therefore I tried to get the table data from the alv to check for the same product id.
But how can I get the table which is displayed in the alv?
Actually it would be enough to get the product ID but I can't manage to get these.
I tried to approaches.
1) Get the product IDs from the context nodes which they are binded to.
2) Bind a DB-table to the alv and check the datatable for the product IDs.