cancel
Showing results for 
Search instead for 
Did you mean: 

Prefilled values in WD ABAP page

Former Member
0 Kudos

Hi,

  We have developed a WD ABAP application. We have to send this page as a link to another user through email with pre-filled values (for example within an ID field). Request your guidance on how we can achieve this.

thanks

Accepted Solutions (1)

Accepted Solutions (1)

harsha_jalakam
Active Contributor
0 Kudos

Hi Subramanian,

You can add the url parameters to the webdynpro application and send the application as a link.

Data lv_url type string.

      call method cl_wd_utilities=>construct_wd_url

        exporting

        application_name              = 'ZAPPLICATION_NAME'

      importing

        out_absolute_url              = lv_url.

  call method cl_http_server=>append_field_url

    exporting

      name  = 'Zref_id'

      value = lv_value

    changing

      url   = lv_url.

lv_url can be sent  link through email.

lv_url will have all the ref_id which can used to populate the form in the wddoinit method where  ref_id can be read through

lv_ref = wdr_task=>client_window->get_parameter( 'Zref_id' ).

  and this can be used to pre - populate

Regards,

Harsha

Former Member
0 Kudos

Thanks  Harsha. Much appreciated!

Regards,

Ananth

Answers (0)