Pregunta

I am trying to have two ALV in a tabstrip that editable by a buttom at toolbar. There is a nice example at following page but it is a single ALV.

If we have two ALV how how to do lcl_event_receiver part? Do we need two of them?

Note: I am able to make teo ALV in tabstrip by looking at this code

¿Fue útil?

Solución

You will either need a separate event handler for every control (or at least separate handler methods) or you add an implicit parameter named SENDER to the event handler methods. This parameter contains the reference of the control that triggered the event, so you can compare it to the two ALV grid references and decide which one triggered the event. (In my opinion, this leads to ugly code, but in the end, that's your decision.)

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top