Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

get web dynpro url

Former Member
0 Likes
701

Hi

I need to get the web dynpro url to set a parameter in the context. how may i do it?

Hi

I need to get the web dynpro url to set a parameter in the context. how may i do it?

1 REPLY 1
Read only

Former Member
0 Likes
348
      • get URL parameters

data fpm type ref to if_fpm.

data params type ref to if_fpm_parameter.

fpm = cl_fpm_factory=>get_instance( ).

params = fpm->mo_app_parameter.

if params is not initial.

params->get_value(

exporting

iv_key = 'PARAM_HERE'

importing

ev_value = URL_PARAM

).

or try the below code.

Try this code.

data :lc_webdynprourl type ref to CL_WD_UTILITIES.

data :lv_url type string.

create object lc_webdynprourl.

CALL METHOD CL_WD_UTILITIES=>CONSTRUCT_WD_URL

EXPORTING

APPLICATION_NAME = 'Test' "Your web dynpro applicaiton name

  • IN_HOST =

  • IN_PORT =

  • IN_PROTOCOL =

  • IN_PARAMETERS =

  • IN_CLIENT =

  • IN_FORWARD_ACCESSIBILITY_FLAG =

NAMESPACE = 'sap'

IMPORTING

  • OUT_HOST =

  • OUT_PORT =

  • OUT_PROTOCOL =

  • OUT_LOCAL_URL =

OUT_ABSOLUTE_URL = lv_url.

Edited by: subas Bose on Feb 19, 2010 5:59 PM