Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem using Drop down by index/key in table?

Hi All,

I want to display table with drop down value, i tried with dropdown by index but i am getting assertion error.

I tried with drop down by key.. it is giving output but no drop down displaying only text veiw. here is the code..

DATA : node_info TYPE REF TO if_wd_context_node_info,

value TYPE wdy_key_value,

set TYPE wdy_key_value_table.

data : it_objid type STANDARD TABLE OF if_main=>element_portal,

wa_objid like line of it_objid.

SELECT OBJID FROM HRP5007

INTO TABLE it_objid

WHERE "PLVAR = '01' and

  • ENDDA = '99991231' and

TFORM = '0017'.

loop at it_objid into wa_objid.

value-key = wa_objid.

value-value = wa_objid.

APPEND value to set.

endloop.

node_info = wd_context->get_node_info( ).

node_info = node_info->get_child_node( 'PORTAL' ).

node_info->set_attribute_value_set( name = 'DEALER_CODE' value_set = set ).

Thanks,

Venkat.

Former Member
Former Member replied

What is li_item?

Declare the variables as

data lt_elem type WDR_CONTEXT_ELEMENT_SET.

data ls_elem like line of lt_elem.

Thanks,

aditya.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question