Skip to Content
avatar image
Former Member

Prefilled values in WD ABAP page

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 18, 2015 at 08:00 AM

    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

    Add comment
    10|10000 characters needed characters exceeded