on 12-10-2009 4:11 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.