cancel
Showing results for 
Search instead for 
Did you mean: 

Executing WebDynPro URL from SBWP is always asking for Login username and password. SSO not working.

0 Kudos

Hello experts,

I have developed a custom WDA, and I'm having some issues trying to get the SSO working. I tried a workaround by using the following code and it works, BUT it seems to be putting the browser in the background, since I'm calling the URL through a Workflow implementation, it looks as if it's giving the Workflow pop up priority:

DATA: viewer TYPE REF TO cl_gui_wdr_viewer.
DATA: empty_container TYPE REF TO cl_gui_container.
CREATE OBJECT viewer EXPORTING parent = empty_container.
CALL METHOD viewer->enable_sapsso
EXPORTING
enabled = 'X'
EXCEPTIONS
OTHERS= 1.

CALL METHOD viewer->detach_url_in_browser
EXPORTING
url = urlc.

cl_gui_cfw=>flush( ).

When I pass the generated WD url to the function CALL_BROWSER, it executes the default web browser in the foreground, but it asks the user to login. I'm not using Portals, we're just calling the WD directly by generating the URLs and sending parameters. All the configurations through RZ10 seem to be correct. I've searched extensively through the forums and tried different approaches but none have solved the issue. Any ideas on how to solve this?

Accepted Solutions (0)

Answers (0)