Skip to Content
avatar image
Former Member

Value of RFC in Dropdownbykey

Dear All,

I want to fill a Dtodownbykey UI with RFC value. Pl. help me in doing so.

Regards,

Prakash

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 19, 2005 at 04:49 AM

    Hi Prakash,

    A small suggestion is to use DropDownByIndex. Then you just need to bind the 'texts' property to the required output attribute. When you call the RFC, the values will be automatically populated. You needn't write a single line of code.

    If you are particular to use DDBK, then :

    ISimpleTypeModifiable stmObj =(ISimpleTypeModifiable) wdThis.wdGetAPI().getContext().getModifiableTypeOf("<attribute bound to 'selectedKey' of DD>");

    IModifiableSimpleValueSet valueSet =(IModifiableSimpleValueSet) stmObj.getSVServices().getModifiableSimpleValueSet();

    Now loop through the ouput node of the RFC & populate the valueset. eg:

    IPrivate<view>.I<OutputNode>Element elmt;

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

    {

    elmt = wdContext.nodeOutput().getOutputElementAt(i);

    valueSet.put(elmt.get<attr>,elmt.get<attr>);

    }

    Hope this helps,

    Best Regards,

    Nibu.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 19, 2005 at 04:48 AM

    Hi Prakash,

    check following link for the same:

    http://help.sap.com/saphelp_nw04/helpdata/en/b3/f68e4ab25d7549888eb612bcb359f1/content.htm

    Regards,

    Bhavik

    Add comment
    10|10000 characters needed characters exceeded