cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the Session Id from the URL?

Former Member
0 Kudos

Hi,

Web Dynpro Application is being called from Portal. I need to read and check the session id of the URL ( which has created from Server) in WDA- COMPONENTCONTROLLER-WDDOINIT. Do you know how to read the URL parameter session id in WDA which is being called in Portal?

...Naddy

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

See this thread and answer from Thomas Jung

[|]

Former Member
0 Kudos

The above mentioned thread is nice but not help ful...

The Web Dynpro Application is being called from Portal. There is a server which sets session id before calling the WDA(user access validation and creates session id) and URL has this session id. I need to read this session id from the current URL of browser in WDA and check/validate if it is still active in that server.

I also need to know how to check URL is valid or not? I want to check if the URL/Browser if valid. I couldnu2019t find any standard function for this. The method CL_GUI_FRONTEND_SERVICES->EXECUTE and Function module Call_Browser are only to call but it is not returning error (HTTP 400 or something like this)

Do you know any function or method to check URL/Browser?

...Naddy

Former Member
0 Kudos

I am not sure if this is a right approach , CL_GUI_FRONTEND_SERVICES is useful in case of SAP GUI and i am afraid it is not going to work in WDA.

If your quest is to get the URL parameter then you can do this on the interface window default plug. WDEVENT object has all the URL parameters. This is the earliest place where you can get this parameters.

DATA:
    ls_parameter             TYPE ihttpnvp,
    lt_parameter             TYPE tihttpnvp.
    
*--To read all URL parameters
  wdevent->get_data(
    EXPORTING
      name = if_wd_application=>all_url_parameters
    IMPORTING
      value = lt_parameter ).