cancel
Showing results for 
Search instead for 
Did you mean: 

drop down by key

Former Member
0 Kudos

hi sarath,

thanks for the information that u provided .I got the result through the second sollution. My question is how will i get the same with the first type of sollution you specified, if you have any example please send me. thank you

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi bala,

u can take this code an example 2 do the drop down by key as per ur requirement.

types: begin of t_aenr,

aennr type zaenr-aennr,

end of t_aenr.

data: wa_aenr type t_aenr,

i_aenr type standard table of t_aenr.

CALL FUNCTION 'zfm_drop'

TABLES

I_AENR = i_aenr.

data: lr_node type ref to if_wd_context_node,

lr_nodeinfo type ref to if_wd_context_node_info,

lt_valueset type wdr_context_attr_value_list,

ls_valueset type wdr_context_attr_value.

lr_node = wd_context->get_child_node( 'FIRST' ).

lr_nodeinfo = lr_node->get_node_info( ).

*LOOP THE INTERNAL TABLE.

loop at i_aenr into wa_aenr.

ls_valueset-value = WA_AENR.

ls_valueset-text = wa_aenr.

append ls_valueset to lt_valueset.

endloop.

lr_nodeinfo->set_attribute_value_set(

exporting

name = 'AENNR'

value_set = lt_valueset

).

hope this solves ur query.

Regards,

Arun.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi uvendu bala ,

suppose u have a data element zdataand its domain is zdom. then go to its domin create 2 3 fixed values there.

then at attribute level in wda, give the type of the attribute as the data element zdata.

Then if u bind this attribute to a ddk, then it will list u what all fixed values u had given at the domain. thats all

Regards

Sarath