Skip to Content
avatar image
Former Member

How to pass parameter to webdynpro application.

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 08, 2007 at 09:38 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • avatar image
    Former Member
    Jun 08, 2007 at 10:39 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.