Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 3667

Catch exit buttons press in WDYID tcode in abap

$
0
0

Hello all,

 

I have a simple Webdynpro application and i have 2 ways of attaching a Tcode to it. The WDA is not going to be run in a web browser.

 

1. Using standard transaction WDYID and giving application name as a parameter.

 

2. Create a Z program with a screen having custom container. Construct WD URL and show the URL  on custom container on the screen using method of class CL_GUI_HTML_VIEWER

 

The requirement is that the program should show a confirmation popup when a user presses ESCAPE (on keyboard) or EXIT / BACK / CANCEL on sap gui.

 

In the 1st version mentioned above, it doesn't seem possible to add the FM for popup anywhere.

 

In the 2nd version mentioned above, i can put the logic in my Z program and based on SY-UCOMM , show the popup. But when we call a Webdynpro application like this, it asks for user name / password. This is not acceptable . Also maintaining a common user name / pwd for this WDA application in SICF is also not an option.

 

So i don't know how do i proceed here as both the methods have their limitations. Any advice / suggestion is really appreciated.

 

BR

Nilesh


Viewing all articles
Browse latest Browse all 3667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>