cancel
Showing results for 
Search instead for 
Did you mean: 

application parameters

Former Member
0 Kudos

Hi,

i have an WD application which uses FPM. i have a parameter in my application.

i pass some value in the parameter from the url and i am catching the parameter in my HANDELDEFAULT method of the window. but the value of the parameter is null.

can you please tell me why?

how do i get the values of the parameter.

please reply soon.

Thanks & Regards,

Ritwik.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi

if u r using FPM u can catch the parameters in the any one of the FPM standard methods based on ur requirement.

here is the code how u get the values

DATA: lo_fpm_parameter TYPE REF TO if_fpm_parameter.

data lo_idr type ref to if_fpm_idr.

data lo_fpm type ref to if_fpm.

data chk type string.

lo_fpm = cl_fpm_factory=>get_instance( ).

lo_idr ?= lo_fpm->get_service( cl_fpm_service_manager=>gc_key_idr ).

wd_this->gl_fpm_parameter = wd_this->gl_fpm->mo_app_parameter.

CALL METHOD wd_this->gl_fpm_parameter->get_value

EXPORTING

iv_key = 'CHECK'

IMPORTING

ev_value = chk

  • er_value =

.

CHECK is the parameter iam passing.

Former Member
0 Kudos

hi chythanya,

I have used the code that u have suggested, but i am getting a null exception when in the following lines

1. lo_fpm = cl_fpm_factory=>get_instance( ).

lo_idr ?= lo_fpm->get_service( cl_fpm_service_manager=>gc_key_idr ).

2. wd_this->gl_fpm_parameter = wd_this->gl_fpm->mo_app_parameter.

Do you have any solution for this?

Former Member
0 Kudos

Well,

in order to catch URL parameters, consider the following:

-URL parameter can only be caught in HANDLEDEFAULT of you default Window.

-URL parameters should be of type STRING

-name of variable must be identical to URL parameter name

-variable is inbound parameter of default plug.

-variable must be set ás

-default plug must be set as "startup" and "interface"