cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass parameter to webdynpro application.

Former Member
0 Kudos

Hi Experts,

--I have on small doubt in WebDynpro.

--If we create any application in WebDynpro it will generate one url to run this application.

--My requirement is i need pass one parameter to WebDynpro application url(like how we will pass parameters in JSP/Servlets - Using getParameter we get the values) , I need to access the parameter values and get values from R/3 to cooresponding parameter values and displayed in table. For this one alternative while creating the iVew in portal we can pass the values to that , But i don't want in portal, my application is normal development.

Please help how this is possible.

Thanks,

Sunil

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sunil,

Since this is class is deprecated in the NW04s the version I am using.

Try using RequestAdapter.I think you can achieve the same with the it.

If you need any clarification regarding the request Adapter please let me know

I'll mail you the code.

Regards

Amit

Former Member
0 Kudos

Hi,

Thanks for fast reply.

It is working propely. Once agin thanks.

You gave one more option to get this(RequestAdapter). I don't know that.Please can you explain what for that and how to do with that.

Thanks,

Suni.

Former Member
0 Kudos

Hi Sunil,

You can access the parameters passed to webDynpro.If you are appending it to the webdynrp app URL.


IWDWebContextAdapter webContext = WebContextAdapter.getWebContextAdapter();
String param = webContext.getRequestParameter("key");

Regards

Amit

Former Member
0 Kudos

Hi,

Thanks for fast reply.......

If i put this code in webdynpro i am getting error like WebContextAdapter is cannot resloved. I import package also.


import com.sap.tc.webdynpro.services.sal.adapter.api.IWDWebContextAdapter;

But it is giving error...........

If u know any sloution please let me know........

Thanks,

Sunil.