Skip to Content
avatar image
Former Member

Stop duplication in WDA ALV

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 18, 2016 at 12:55 PM

    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

    Add comment
    10|10000 characters needed characters exceeded