cancel
Showing results for 
Search instead for 
Did you mean: 

f4 help display in drop down by key in place of input ui

Former Member
0 Kudos

Hello all,

i want to display f4 help values display in drop down by key in place of input ui.

is there any procdure ?

thanks

Rama

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Refer Standard Component : wdr_test_events.

View : Dropdown by key.

SAP Online help : http://help.sap.com/saphelp_nw70ehp1/helpdata/en/c5/e4884180951809e10000000a155106/content.htm

I hope it will help you.

Answers (2)

Answers (2)

Former Member
0 Kudos

hi ,

A DropDownByKey UI element provides the user with a selection list from which he or she can select no more than one entry.

As rightly said , all the values wud be present in dropdown by key , so there is no need to use the f4 help

this is how , u can populate the values in ur fropdown by key

1 declare a context node of cardinality 0..1/1..1

2 declare attribute of type string under it . The attribute name should be exactly the same as that in database table '

eg if u want to poulate values for a field ' SYS' from table , than giv the attribute name as 'SYS' in context attribute

3 declare internal table of type standard table

4 populate internal table with values

5 take the refernce of the node , u have created

6 bind it with the internal table


TYPES: BEGIN OF str_roles,
  -role TYPE z0cz_roles-role_id,
 -END OF str_roles.
 
  DATA: it_role TYPE TABLE OF str_roles,
     wa_role TYPE str_roles.
 
  DATA:          value1 TYPE wdy_key_value,
         set TYPE wdy_key_value_table.
 
 
 SELECT role_id FROM z0cz_roles INTO TABLE it_role.
 
SORT IT_ROLE DESCENDING BY ROLE.
LOOP AT it_role INTO wa_role.
 
  value1-key = sy-tabix.
  value1-value = wa_role-role.
  APPEND value1 TO set.
    ENDLOOP.
 
DATA : node_info TYPE REF TO if_wd_context_node_info.
  node_info = wd_context->get_node_info( ).
-node_info = node_info->get_child_node('CN_DROPDOWN').
  node_info->set_attribute_value_set( name = 'CA_ROLE'   value_set = set ).


regards,

amit

anand_nidamanuru
Active Participant
0 Kudos

Hi Ramakullay,

I am not sure why you need search help for a drop down by key value. All the possible values will be already present in the drop down. Users can just select from the drop down...

Thanks,

Anand