cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the parameter from URL in WebDynpro

Former Member
0 Kudos

Hi,

I have added the parameter "XXX" in the WD Iview.But I am not able to read the parameter when i running the WD application.

I am using the below code for getting the parameter.

"WDProtocolAdapter.getProtocolAdapter().getRequestParameter("XXX");"

Please suggest me to solve the issue.

Regards,

Senthil S.

Accepted Solutions (0)

Answers (2)

Answers (2)

siarhei_pisarenka3
Active Contributor
0 Kudos

Hi

Check this: [Sending URL Parameters to Applications|http://help.sap.com/saphelp_nw70/helpdata/en/44/be65751c743959e10000000a1553f6/content.htm]

BR, Siarhei

p330068
Active Contributor
0 Kudos

Hi Senthil,

Please use complete code for reading the parameter from URL in WebDynpro application.

IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();

IWDRequest request = protocolAdapter.getRequestObject();

String SAPtestId = request.getParameter("SAPtestId/ Check URI for your application");

Hope this will help you.

Regards

Arun Jaiswal

Former Member
0 Kudos

if you add the parameter to the default Inbound plug of your applications windows controller, it is automatically read, so you can easily add it to your context without parsing the url yourself.