'How to bring popup to foreground?

I have a dynpro which creates a popup ALV (using a dialog container). A button on the popup will display another popup in the same way. My problem is that the last popup goes into the background, the selection going back to the first popup. Is there any way to fix/control this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source