cancel
Showing results for 
Search instead for 
Did you mean: 

Stop duplication in WDA ALV

Former Member
0 Kudos

Hey,

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.

Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Dominic,

Before the binding of the table, you can use the SELECT to fill an internal table and then use the statement LOOP AT and then check for this product ID, if different, append a new Internal Table or modify the values already there as quantity, then you can bind the table.

Regards,

Artur