input field with results in table
This is my first Web Dynpro ABAP application. I have an input field with input help from fixed values for domains. Depending on user selection, the results should be displayed in a table in the same view. I defined two nodes in the view context.
INPUT_NODE with attribute country
DISPLAY_NODE with attributes country and state
When I select a country and hit the Submit button, the following error shows up.
The following error text was processed in the system DSS : Attribut MAINVIEW.1.INPUT_NODE.1.IN1 konnte nicht gefunden werden
This is the code I wrote in the method of the view context.
data: inputnode type ref to if_wd_context_node,
displaynode type ref to if_wd_context_node,
value type string,
itab_state type standard table of zstate.
inputnode = wd_context->get_child_node( name = 'INPUT_NODE' ).
inputnode->get_attribute( exporting name = 'IN1' importing value = value ).
select * from zstate into table itab_state
where zzst = value.
displaynode = wd_context->get_child_node( name = 'DISPLAY_NODE' ).
displaynode->bind_elements( itab_state ).
Any help appreciated. Thanks in advance.