cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a web dynpro application via portal using SSO

Former Member
0 Kudos

Hello Expert,

i have a requirement where i need to call a web dnpro application via portal.

But it is asking for user name and password.

i want to call using single sign on.

Can u please suggest a way.

i did the coding like this:-

CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = l_c_appl_name
IMPORTING
out_absolute_url = l_v_gv_url_string.

l_v_icf_url = l_c_icf_url_val.                     
"#EC SYNTCHAR
CALL METHOD cl_icf_tree=>if_icf_tree~service_from_url
EXPORTING
url             = l_v_icf_url
hostnumber      = l_c_0
authority_check = space
IMPORTING
icfactive       = l_v_m_sso_active.

IF l_v_m_sso_active = l_c_x .
CREATE OBJECT o_viewer
EXPORTING
parent = o_empty_co.
CALL METHOD o_viewer->enable_sapsso
EXPORTING
enabled = l_c_x
EXCEPTIONS
OTHERS  = 0.
l_v_gv_url_c = l_v_gv_url_string .

CONCATENATE l_v_gv_url_c l_c_url_string p0022-pernr INTO l_v_gv_url_c.

CALL METHOD o_viewer->detach_url_in_browser
EXPORTING
url        = l_v_gv_url_c
EXCEPTIONS
cntl_error =
1
OTHERS     = 2.

IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING error_occured.
ENDIF.
cl_gui_cfw=>flush( ).
ENDIF.


but it is not working

thanks

Mahesh

Accepted Solutions (1)

Accepted Solutions (1)

former_member197475
Active Contributor
0 Kudos

Hello Mahesh,

Can you please detail your error???What type of error you are getting????

Also check in debugging that l_v_gv_url_c has value before calling the method o_viewer->detach_url_in_browser.

BR,

RAM.


Former Member
0 Kudos

Hello Ram,

Thanks.

The error which i am getting is :-asking for login name and password.

Yes the variable has the value.

former_member197475
Active Contributor
0 Kudos

Mahesh,

So I guess, SSO Configuration has to be done in portal side.

BR,

RAM.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Mahesh,

You need to setup a Single Sign On between SAP Portal and ECC system where yoy are doing the development.

Ask basis team to setup the single sign on and usually this is the job done by Basis teams. Refer the below link to get some idea on SSO setup:

http://scn.sap.com/community/enterprise-portal/blog/2013/12/15/sso-configuration-between-sap-portal-...

Thanks

Krishna