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

error calling method


I'm trying to do that when the user clicks a cell in a table with item opens details of that item in another view, so i got 2 views and 1 controler and 2 rfcs, i'm new in webdynpros so help me with this tell me why this doesn't work and what the best way to do this.

in my first view(itens) i do this in a method that is called in the lead select...

String posnr = wdContext.nodeT_Zcrm_St_05().getT_Zcrm_St_05ElementAt(wdContext.nodeT_Zcrm_St_05().getLeadSelection()).getPosnr();
	String kunnr = wdContext.currentT_Zcrm_St_04Element().getKunnr();
	String vbeln = wdContext.currentT_Zcrm_St_04Element().getVbeln();

when i call the method executeDetItem with this Strings a Conversion error comes but when i pass values in "" it goes ok...


i already try to see if is the length but it is not... i raised the length and it goes ok with the method call above...

my method in the controller is like this

Z_Rfc_Detalhe_Item_Input inputItem = new Z_Rfc_Detalhe_Item_Input();
	}catch(Exception ex){




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 Oct 08, 2005 at 04:57 AM

    Hi Dalmo,

    why to pass parameters to methos.instead you can use binding .if you use binding it will not create problrm.

    at the same time instead of using lead selection you can also use current contest element.

    try this one and let me know



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hey, i didn't resolve this yet, i'm stuck please help...

      is there anyway of binding the cell in the table with the field that income data to the one that sends?

      I need with a table with filled data just to pass the value that i select to another rfc that will feed a new view....


  • author's profile photo Former Member
    Former Member
    Posted on Oct 10, 2005 at 09:10 PM

    What's the relation between




    T_Zcrm_St_06 and DetalheItemNode?

    Is nodeT_Zcrm_St_05 the one connected to the table?


    Do you mean: wdContext.currentT_Zcrm_St_05Element().getKunnr(); ?

    If you are going to invalidate anything, it should be DetalheItemNode i guess.

    What's the error. Do you get stack-traces?


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Löwgren,

      I have two Models, DetalheItem and DetalhePedido.

      The nodes T_Zcrm_St_03 and T_Zcrm_St_06 is subnode of output node from DetalheItemNode.

      The nodes T_Zcrm_St_04 and nodeT_Zcrm_St_05 is subnode of output node from DetalhePedidoNode.

      I have 3 views, in the first(DetPedidoCliente) i apply template of a form and have data from T_Zcrm_St_04, in the second (DetPedItem) i apply a template from a table and have data from T_Zcrm_St_05.

      i wanna click a cell in the second view and that he brings to me data in the third view... this data will come from another rfc, the DetalheItemNode, and i have to pass three values to this rfc, two from T_Zcrm_St_04 and one from T_Zcrm_St_05.

      the error is because posnr is coming with lenght 3 from the rfc in webdynpro, in SAP it is normal coming with lenght 6... so when i do this


      the error shows up, but when i just do this




      no error but no data comes from the rfc...

      But in SAP passing the same data, data comes normally...


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.