Skip to Content
0
Former Member
Feb 18, 2010 at 03:06 PM

Getting URL-Parameters in Init-Methods

512 Views

Hallo ABAP-Developers,

I need to get the URL calling-parameters for my WDC before the HANDLEDEFAULT-Method of the Main-Window is called.

I need it in the WDDOINIT-Method.

Following Code in my WDOINIT-Method to read the param 'IM_WDC_NAME':

METHOD wddoinit.

  DATA:
    lr_http_request TYPE REF TO cl_http_request,
    l_comp TYPE string.

  CREATE OBJECT lr_http_request.
  l_comp = lr_http_request->if_http_request~get_uri_parameter( name = 'IM_WDC_NAME' ).

ENDMETHOD.

This is not working (var 'L_COMP' is empty).

Does anyone know a solution?

Thanks in advanced!

Regards,

V0id