Hi Aditya,
You can achieve your requirement as below
- Method B ( show popup ) is called in method A
- You need to subscribe the OK button event to your action on view
- Now, place your code which needs to be executed after confirmation inside EVENT HANDLER of OK button action.
So, after confirmation action,your required logic executes
Please go through the below link for subscribing event to buttons of popup window.
Validation on pop up window - SAP Webdynpro ABAP
Hope this helps you.
Regards,
Rama
Message was edited by: Ramakrishnappa Gangappa