cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding the Password in web URL

Former Member
0 Kudos

Hi Guru's,

I need to make my password invisible using ****** in my URL web page. How is it possible to do?

Regards.

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Meenkshi,

Hope, you are launching WDA application on click on any action.

You can hide the URL parameters by using POST method while launching application.

Please refer the below code


  "------------------------------------------------
  "Data declarations
  "------------------------------------------------
  DATA: lo_window_manager      TYPE REF TO if_wd_window_manager,
        lo_api_component       TYPE REF TO if_wd_component,
        lo_window              TYPE REF TO if_wd_window,
        lt_parameters          TYPE tihttpnvp,
        ls_parameters          LIKE LINE OF lt_parameters,
        lv_url                 TYPE string.
  "----------------------------------------------------
  "get view contoller, window manager
  lo_api_component           = wd_this->wd_get_api( ).
  lo_window_manager          = lo_api_component->get_window_manager( ).

  " Return if window manager is not bound
  "----------------------------------------------------
  IF lo_window_manager IS NOT BOUND.
    RETURN.
  ENDIF.
  "----------------------------------------------------
  " Prepare parameter table
  "----------------------------------------------------
  CLEAR: lt_parameters,
         ls_parameters.
  ls_parameters-name = 'MY_PASSWORD'.
  ls_parameters-value = 'asdf1234'.
  APPEND ls_parameters TO lt_parameters.

  "----------------------------------------------------
  " Construct url for your application
  "----------------------------------------------------
  cl_wd_utilities=>construct_wd_url(
    EXPORTING
      application_name              = 'ZWD_TEST' " this is your WD application name
      in_parameters                 =  lt_parameters
    IMPORTING
      out_absolute_url              =   lv_url
  ).

  lo_window_manager->create_external_window(
    EXPORTING
      url            = lv_url
      use_post       = abap_true
    RECEIVING
      window         = lo_window
  ).
  IF lo_window IS BOUND.
    lo_window->open( ).
  ENDIF.

Hope this helps you.

Regards,

Rama

Former Member
0 Kudos

Hi Rama,

Thanks for ur reply. This is the ans i was expecting.

regards,

meenakshi.

ramakrishnappa
Active Contributor
0 Kudos

Welcome Meenakshi..

Please close the discussion if your issue is resolved.

Regards,

Rama

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

Hi,

You cannot hide URL parameters( if not calling via external window); If it is a static url, you can create an alias in SICF. If it is dynamic, check the work around mentioned in this discussion:

Regards,

Kiran