on 08-02-2011 7:02 AM
Hi Experts,
I need to display values for few fields either by using
dropdown by index or dropdown by key.
for example: my fields are
userid(key)
service provider id (dropdown by index or dropdown by key)
operator id (dropdown by index or dropdown by key)
location id (dropdown by index or dropdown by key)
provider description
start date
end date
service provider id,operator id,location id arey key fields in their respective
master tables.
i am not using ALV Tables.
am using Textview for fieldname and setting it property->layout data as MatrixheadData.
can anyone please help/guide me with logic.
Regards,
krrish.
Hi,
Check your requriement is fulfil with DDBK orIndex first.
By using dropdown by key... try this code..
*** FILL DROP DOWN********
DATA : node_info TYPE REF TO if_wd_context_node_info,
value TYPE wdy_key_value,
set TYPE wdy_key_value_table,
k2 type string value 'BOX',
v2 type string value 'BOX',
k3 type string value 'LOOSE',
v3 type string value 'LOOSE',
value-key = k2.
value-value = v2.
APPEND value to set.
value-key = k3.
value-value = v3.
APPEND value to set.
node_info = wd_context->get_node_info( ).
node_info = node_info->get_child_node( 'PACK_MAT' ).
node_info->set_attribute_value_set( name = 'PACK_MATERIAL'
value_set = set ).
If you use dropdown by index...
your node cardinality 0-n
coding to fill ddbi.
* To Fill Drop Down values
DATA lo_nd_importing TYPE REF TO if_wd_context_node.
DATA : lt_importing TYPE STANDARD TABLE OF if_main=>element_importing.
SELECT shtyp FROM tvtk INTO TABLE lt_importing.
DATA : nd TYPE REF TO if_wd_context_node .
DATA : nd1 TYPE REF TO if_wd_context_node_info .
nd = wd_context->get_child_node( 'ZSHIPMENT_CREATE' ).
lo_nd_importing = nd->get_child_node( 'IMPORTING' ).
lo_nd_importing->bind_table( lt_importing ).
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Go for DropDownByKey. this will reduce the number of context nodes. have a look at the below tutorial for this
http://fuller.mit.edu/web_dynpro/value_help_web_dynpro_tutorial.pdf
And also have look at the demo application DEMO_UIEL_DROPDOWN_BY_KEY
BR, Saravanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.