Skip to Content
avatar image
Former Member

Getting values from Bapi and setting it to dropdown by key or index?

hi

i am getting values from BAPI which is in a table format,i want to set all the values of a field in that table to a dropdown (index or key).Please tell me hw can i do it?

Regards

Nidhideep

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 31, 2006 at 09:15 AM

    Hi Nidhi,

    for(int i = 0; i<wdContext.nodebapiNode().size(); i++){

    wdContext.nodevaluenode().addElement(wdContext.nodevaluenode().createElement());

    wdContext.nodevaluenode().currentbapinodeElement().setAtt(wdContext.nodebapinode().getbapinodeElementAt(i).getbapiatt());

    }

    bind your value node to dropdownbyindex

    Regards,

    Aparna.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 31, 2006 at 09:31 AM

    Hi,

    Get the size of the node

    int size = wdcontext.Node<output>.size();

    for (int idx = 0; idx < size; idx++) {

    IPrivate<ApplicationView>.I<outputNodeElement> val =(IPrivate<ApplicationView>.I<outputNodeelement) wdContext.nodeI<outputNode>().getElementAt(idx);

    String sval = val.getKunnr();

    val.setName1(Sval);

    this name map to your Dropdownby index or key

    }

    This might helps you, Otherwise post your issues.

    Thanks,

    Lohi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 31, 2006 at 12:00 PM

    Hi

    See this thread

    dropdownlist-box-to-display-r/3-table

    Kind Regards

    Mukesh

    Add comment
    10|10000 characters needed characters exceeded