cancel
Showing results for 
Search instead for 
Did you mean: 

How to force Webdynpro URL to authenticate login always

siongchao_ng
Contributor
0 Kudos

Hi all,

I used the following methods to generate the URL to direct access to a specific webdynpro page. But the URL cannot works unless user have already login into the portal. This makes it like a 2 step process instead of 1 step as I have to give 2 links to the user. As shown in picture "The site is not secure" will output instead if the user did not login to the portal.

1. the URL link for the portal login page

2. this direct URL link generated in the code below.

So how to make my direct URL link to always prompt user for login?

Anyone knows how to always force user to login before accessing a URL link?

Thanks!

DATA lv_url   TYPE string.
DATA lv_value TYPE string.
DATA   lv_complete_url TYPE string.

*      *   Get Web Dynpro Appplication URL
CALL METHOD cl_wd_utilities=>construct_wd_url
  EXPORTING
    application_name = 'ZTDWDA0003_AUPD' "webdynpro Application Name from configuration
  IMPORTING
    out_absolute_url = lv_url.



CONCATENATE lv_url '?sap-wd-configId=ZTDWDA0003_AUPD_OIF_CC' "+application configuration ID found in package
  INTO lv_complete_url.


CALL METHOD cl_gui_frontend_services=>execute
  EXPORTING
    document = lv_complete_url.

Accepted Solutions (0)

Answers (1)

Answers (1)

matt
Active Contributor
0 Kudos

I had this problem. You need to talk to Basis. Only they can solve it. It's not an ABAP issue. (You should add the basis tag).

matt
Active Contributor
0 Kudos

I reported to moderator, and they've changed it for you. But not the right one!

siongchao_ng
Contributor
0 Kudos

I added the 2 tags regarding basis. any specific tags about basis i must add?

matt
Active Contributor
0 Kudos

They look good to me.

But really, you need to talk to you Basis department. There's some settings needed on the application server. I'm sorry I don't know what our guy did, so I can't guide you further.