cancel
Showing results for 
Search instead for 
Did you mean: 

WD ABAP - Reading the URL Parameters for FPM application

Former Member
0 Kudos

Hi,

As per the Custom requirment,

I want to pass URL parameters for WD ABAP application (sap/bc/webdynpro/dbm/app_veh_cus_search) which uses FPM.

example: sap/bc/webdynpro/dbm/app_veh_cus_search?Customer=12345&fromExternal=true

I am facing difficulty in reading the URL parameters.

How to read/get the URL Parameters for an FPM WD ABAP application????

Observation:

I tried reading the parameter in Window --> HANDLEDEFAULT method. But could NOT read the Parameters from here for FPM application whereas if I create a Z Custom application then I could read the URL Parameters. so the issue is in reading the URL Parameters for FPM application.

Kindly support

Regards,

Hussain

Accepted Solutions (1)

Accepted Solutions (1)

amy_king
Active Contributor

Hi Hussain,

You can do this either with the methods of interface if_fpm_parameter...


DATA lo_param TYPE REF TO if_fpm_parameter.

lo_param = cl_fpm_factory=>get_instance( )->mo_app_parameter.

CALL METHOD lo_param->get_value

    EXPORTING

        iv_key   = parameter_name

    IMPORTING

        ev_value = parameter_value.

or a more generic approach using class cl_wd_runtime_services...


cl_wd_runtime_services=>get_url_parameter

Cheers,

Amy

Former Member
0 Kudos

Thanks Amy

Regards,

Hussain

0 Kudos

Thanks worked like a charm

Answers (0)