ABAP Web Dynpro – Dynamic ALV Table – When to Bind

Home / Blog / ABAP Web Dynpro – Dynamic ALV Table – When to Bind

I just found a very subtle little thing, that has been driving me nuts for a few days.  I created a dynamic ALV table and I wanted to be able to select multiple lines.  Seemed pretty easy, I selected the correct Select option to do multiple line testing.  And no matter what I did, I couldn’t select or unselect anything.

Turned out it was a very simple fix.  You can only bind the table once.  If you bind the table more than one, it keeps resetting the selections. Since this occurs in the Modify View method, I needed to check if it was the first time it was executing.  If it was the first time, it needed to be bound, otherwise, don’t bind.  Since it was a dynamic table, for me it was just a matter of moving the bind statement within the IF statement.  Crazy simple, but like everything, little things make a big difference 🙂

Thanks for reading,

As always, thanks for reading and don't forget to check out our SAP Service Management Products at my other company JaveLLin Solutions,

Leave a Reply

Your email address will not be published. Required fields are marked *