I created a TableView with some data from database table. This view opens in a pop-up window.
When I select any row from the pop-up, my selected value is saved into some global variable.
How can I close the pop-up window after the row is selected? How to redirect to the view from where the pop-up was triggered?
You can save your value in a data base table or in a Singelton-Object.
What type of pop-up are you using?
POPUP_TO_CONFIRM? Or a DynPro?If it's the Function Module
POPUP_TO_CONFIRMthen just implement your logic based on a if statement checking the attribute "answer" of the FM.If it's a DynPro then you need to add logic on the closing event. In a PAI Module.