Skip to Content
avatar image
Former Member

Drop down box not getting filled

Friends,

I am using a drop down list in Adobe Interactive Form for Web Dynpro ABAP.

The form is of ZCI type layout and the form interface is of XML schema-based interface type and the XML schema source is set to "Generated".

I have included the following code in WDDOINIT method of the view where the form is included as an UI element:

-


data: handle1 type ref to if_wd_context_node,

begin of zstruct,

zktokd type kna1-ktokd,

end of zstruct,

zitab type table of zsttxecr.

handle1 = wd_context->get_child_node( name = 'DATA.NODE1' ).

select ktokd from kna1 into corresponding fields of zstruct.

append zstruct to zitab.

endselect.

handle1->bind_table( new_items = zitab ).

-


In the Adobe Form Designer, i have binded the node NODE1 to the enumerated drop down list from native web dynpro library. Still the drop down box is not getting populated.

Please let me know what is missing.

Thanks and Regards.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 19, 2008 at 01:27 PM

    Hi

    Try changing

    >

    > -


    > data: handle1 type ref to if_wd_context_node,

    > begin of zstruct,

    > zktokd type kna1-ktokd,

    > end of zstruct,

    > zitab type table of zsttxecr.

    >

    > handle1 = wd_context->get_child_node( name = 'DATA.NODE1' ).

    > select ktokd from kna1 into corresponding fields of zstruct.

    > append zstruct to zitab.

    > endselect.

    >

    > handle1->bind_table( new_items = zitab ).

    > -


    >.

    to

    >

    > -


    > data: handle1 type ref to if_wd_context_node,

    > begin of zstruct,

    > zktokd type kna1-ktokd,

    > end of zstruct,

    > zitab type table of zstruct.

    >

    > handle1 = wd_context->get_child_node( name = 'DATA.NODE1' ).

    > select ktokd from kna1 into corresponding fields of zstruct.

    > append zstruct to zitab.

    > endselect.

    >

    > handle1->bind_table( new_items = zitab ).

    > -


    >.

    Also check that the cardinality of your context node is NOT 0..1

    Regards

    Thashin

    Edited by: Thoshin Naicker on Aug 19, 2008 3:28 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 28, 2008 at 03:10 AM

    Solved

    Add comment
    10|10000 characters needed characters exceeded