Skip to Content
0
Former Member
Jul 02, 2007 at 12:33 PM

Problems with populating Drop Down List (WD ABAP)

29 Views

Hi,

I am trying to populate two Drop Down fields CARRID and CONNID (Type Table SPFLI) on an Adobe Interactive Form in a Web Dynpro ABAP Application.

In the WD Context I have a node "Flights" with those attributes.

In the WDDOINIT I populate the Context elements (just for test purposes with all entries of SPFLI).

[code]

DATA:

node_flights TYPE REF TO if_wd_context_node,

elem_flights TYPE REF TO if_wd_context_element,

stru_flights TYPE wd_this->element_flights,

it_flights TYPE TABLE OF spfli.

SELECT carrid connid FROM spfli INTO TABLE it_flights.

  • navigate from <CONTEXT> to <FLIGHTS> via lead selection

node_flights = wd_context->get_child_node( name = wd_this->wdctx_flights ).

node_flights->bind_table(

new_items = it_flights

set_initial_elements = ABAP_FALSE

).

[/code]

According to this

adobe-formreader-error I bound the element values property of the Enumerated Drop Down List to [code]$record.sap-vhlist.CARRID.item[*][/code], whereas <i>Object Text</i> is "Text" and <i>Object Value</i> is "Key".

Unfortunately the DDLs on the Adobe Form are not populated with the values read from the table. I debugged the application and the values are written to the Context node.

Do you have any further hints?

Best regards,

Robin

Message was edited by:

Robin Wennemuth