cancel
Showing results for 
Search instead for 
Did you mean: 

Calling web dynpro from Function module

Former Member
0 Kudos

Hello Experts,

I am trying to call the ABAP web dynpro application from one function module and used PRGN_GENER_EXECUTE_URL to call the url of web dynpro application.

its calling the application but now i want to pass some values from FM to this web dynpro application while calling.

Can anyone has come acrossed with this?

Regards,

Kunaal

Accepted Solutions (0)

Answers (2)

Answers (2)

aaron_morden2
Contributor
0 Kudos

You can use the class CL_WD_UTILITES to generate the URL with your parameters. See code below:


  DATA: lv_url TYPE string.
  DATA: host TYPE string,
        port TYPE string,
        out_protocol TYPE string.

  DATA: in_parameters TYPE tihttpnvp,
        wa_params LIKE LINE OF in_parameters.

  wa_params-name = 'PERNR'.
  wa_params-value = '123456'.
  APPEND wa_params TO in_parameters.

CALL METHOD cl_http_server=>if_http_server~get_location
    IMPORTING
      host         = host
      port         = port
      out_protocol = out_protocol.

  CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
      application_name = 'Z_WDA_TEST_APP'
      in_host          = host
      in_port          = port
      in_protocol      = out_protocol
      in_parameters    = in_parameters
      namespace        = 'sap'
    IMPORTING
      out_absolute_url = lv_url.

Former Member
0 Kudos

Hi,

you can pass these values as url parameters....

here is the link to help you with that....

http://help.sap.com/saphelp_erp2005/helpdata/EN/7b/fb57412df8091de10000000a155106/content.htm

Thanks...

AS...