on 04-26-2007 6:08 AM
Hi Folks,
Please kindly let me know details about Creating Drop Down list for my own Data.
In that Drop Down list i wanted to display my own information.So, kindly if anyone knows reply soon.
Thanks & Regards,
NKumar
hi
good
DROP DOWN LIST->
LIST BOX
Drop down list box can be created in a dialog screen(SE51) as well as selection screen.
The sap list box allows to select a value from the list but we cannot enter our own value in the list box .The value list that will be displayed consists of two
fields TEXT field of TYPE 80(C) and internal KEY field of TYPE 40(C).
In screen painter to create a input/output field into list box we use
'L" as a value for dropdown attribute for the i/o field.
In screen painter to determine the type of method that will be used to fill the value
list we use the attribute value list.
If it is blank the value list will be filled by the first column of the input help assigned to the screen field.This input help can be defined in the ABAP Dictionary, on screen using SELECT,VALUES screen statements or in event POV (PROCESS ON VALUE-REQUEST ) and the input help that will be passed to the field should consists of 2 columns ,the key column is filled automatically by the system.SAP recommends value list field should be blank.
or
The value can be 'A' meaning that the value list will be filled in the event PBO(PROCESS BEFORE OUTPUT) or before the screen is displayed.In this method we use function module VRM_SET_VALUES to fill the values and pass it to the i/o field.
If a function code is attached to the list box the selection of a value triggers a PAI
otherwise PAI will not trigger.
http://sap.niraj.tripod.com/id38.html
thanks
mrutyun^
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1. For DropDownByIndex UI element we need to bind the text property to an attribute within a context node, which contains several elements (cardinality = 0..n). The number of elements defines the possible entries in the list. In the WDDOINIT method we can prepare an internal table with the values and bind it to the node and the lead selection defines the selected element.
2. For DropDownByKey UI element bind the SelectedKey property to an attribute within a context node. Then you must provide the fixed values (table with key value combination) in a different way and store them in the node info.
For this we need to use the interface IF_WD_CONTEXT_NODE which has a method GET_NODE_INFO, which returns meta information on the respective node. This information is of type IF_WD_CONTEXT_NODE_INFO.
Kindly refer the following code:
method WDDOINIT .
data: NODE_INFO type ref to IF_WD_CONTEXT_NODE_INFO,
NODE type ref to IF_WD_CONTEXT_NODE.
NODE = WD_CONTEXT->GET_CHILD_NODE( 'NODE1' ).
NODE_INFO = NODE->GET_NODE_INFO( ).
To be able to store the fixed values for the attribute in the node info, two
*additional variables are necessary:
data: LT_VALUESET type WDR_CONTEXT_ATTR_VALUE_LIST ,
L_VALUE type WDR_CONTEXT_ATTR_VALUE.
*WDR_CONTEXT_ATTR_VALUE is a data type defined in the DDIC. It contains *two components KEY and VALUE, both of type STRING.
*WDR_CONTEXT_ATTR_VALUE_LIST is a table type stored in the DDIC, whose *rows are of type WDR_CONTEXT_ATTR_VALUE.
*The two variables created in the source text example are used to accept the value *pairs that will later be passed to the node info.
L_VALUE-VALUE = 'V1'.
L_VALUE-TEXT = 'yesterday'.
INSERT L_VALUE into table LT_VALUESET.
L_VALUE-VALUE = 'V2'.
L_VALUE-TEXT = 'today'.
INSERT L_VALUE into table LT_VALUESET.
L_VALUE-VALUE = 'V3'.
L_VALUE-TEXT = 'tomorrow'.
INSERT L_VALUE into table LT_VALUESET.
NODE_INFO->SET_ATTRIBUTE_VALUE_SET (
NAME = 'ATTRIBUTE1'
VALUE_SET = LT_VALUESET ).
endmethod.
Hope this helps.
Best regards,
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
chk this link out
http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4884180951809e10000000a155106/frameset.htm
regards
prasy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.