cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in Displaying default values in Dropdown in webdynpro

Former Member
0 Kudos

Hi Experts,

    Here Iam displaying one internal table values in a wd table.When Iam displaying

the table 1st,2nd columns are displayed successfully here the problem is with 3rd column

which is a dropdown by key.Below is sample screen.

            

      In the above, 3rd column having lt_tab(yes,no,na) but there is no default values appering either

yes or no or na.If the default value is yes then user may modified this yes and replace this yes with

no or na (which is alredy there in the itab of dropdown by key).Anyone could you give the suitable

solution for this is grately appreciated....

                      By default we need to display one value from the listed  values of dropdownby key,user

can modified this by selecting any one of the remaining values of dropdown..

Regards,

kranthi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Ramakrishna garu n naveen,

        I solved by my self sorry for the late reply

Answers (3)

Answers (3)

ramakrishnappa
Active Contributor
0 Kudos

Hi Kranthi,

Is your issue resolved? If so, please close the discussion.

Regards,

Rama

ramakrishnappa
Active Contributor
0 Kudos

Hi Kranthi,

I think you have not set the default entries to the DDBK field in your internal table

You can achieve your requirement as below

Option1:


  • When you get the data initially(first time ) into your internal table, populate the third column's default value as per your requirement
  • Now, the table data should contain the default values for third column

Option 2: ( it works for only new lines, if the data is not set to third column )


  • Go to the context attribute UserChoiceType and set the default value to "YES"
  • Now for all new lines, the system automatically populates the default value

Note: the default value should be same as the KEY not the text of drop down value

Hope this helps you.

Regards,

Rama

naveenmaaroju
Explorer
0 Kudos


Hi Kranthi,

Use the following snippet for lead selection.

 

node_name->set_attribute

(

name = 'attribute_name'

value = 'value'

)