cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass parameters to wdp url

Former Member
0 Kudos

Dear Experts,

Can anyone let me know how to pass parameters to wdp URL?

Santhosh              

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Santhosh,

    You can pass any parameter in your URL like below :-

1. http(s)://<host name>:<port>/sap/bc/webdynpro/sap/application_name?parameter=value

2.  by following code :-

DATA:

      w_url   type string,

      w_value type string.

* Get the URL of the called application

      call method cl_wd_utilities=>construct_wd_url

        exporting

        application_name              = '<Your application name>'

      importing

        out_absolute_url               = w_url.

* make the Value type compatible that has to be passed with the URL

  w_value = '<parameter value>'.

* Attach the parameters and its value with the URL

  call method cl_http_server=>append_field_url

    exporting

      name  = '<Parameter Name>

      value  = w_value

    changing

      url   = w_url.

Receive the Parameter value :-

DATA:

  lv_param type string.

* get the value for that has been send from the 1st application

lv_param = wdr_task=>client_window->get_parameter( <Parameter Name).

Regards,

Monishankar Chatterjee

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks Monishankar.Issue resolved

<Points awarded>

Santhosh