Skip to Content
author's profile photo Former Member
Former Member

Problem with RFC model importing

Hi everybody,

I created UI for dropdownbox with my own created context.Now I got the RFC for that dropdownbox.I bind the texts property of that dropdownbox to RFC model context.I got the results.But what ever the logic that had been already written, that has to be changed according to the RFC model context.Is there any other way to do this?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 09, 2008 at 10:48 AM

    Hi Rajani,

    If I understood correctly, you started development before developing RFC and now RFC is available so the context structure and names are changed, but you want to keep your code as it is:

    You can do like this:

    use wdCopyService to copy from RFC model node to your node after RFC call.

    WDCopyService.copyElements(RFCnode, yournode);

    after selection also you have to set the model node explicitly like this

    int i = wdContext.node<yournode>().getLeadSelection();
     wdContext.node<RFCnode>().setLeadSelection(i);

    It will work for you.

    But I suggest you to use model node directly and change code because it will be useful in longrun.

    regards,

    Siva

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 09, 2008 at 11:10 AM

    Hi Rajani;

    I think you are confused with the context element that to be used(bind) with the dropdown UI element. Once you have used the RFC result node in your applicaiton; you can directly bind the RFC output node to the UI element.

    If you have already bind the UI control with your own context element, then you have to assign the RFC output node to your node.

    // you can bind your node with RFC result node as described below
    wdContext.nodeMyResultNode().bind( (java.util.Collection) wdContext.nodeP_RFCResultNode());
    

    Regards

    - Vinod V

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      When i bind my own context node with rfc result node, it will gives the following error

      The initial exception that caused the request to fail, was:

      java.lang.ClassCastException: com.cgsl.testrfcapp.wdp.IPrivateTestRFCView$IT_LanNode incompatible with java.util.Collection

      at com.cgsl.testrfcapp.TestRFCView.wdDoInit(TestRFCView.java:99)

      at com.cgsl.testrfcapp.wdp.InternalTestRFCView.wdDoInit(InternalTestRFCView.java:174)

      at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)

      at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)

      at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)

      ... 32 more

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.