Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

WD ABAP - Reading the URL Parameters for FPM application

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

Former Member
replied

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

2 View this answer in context
Not what you were looking for? View more on this topic or Ask a question