cancel
Showing results for 
Search instead for 
Did you mean: 

Removing blank value from drop down list in webdynpro alv

Former Member
0 Kudos

Hi,

I am displaying one webdynpro alv where few fields are having drop down.

I have used dropdown by index as I have to display different set of values in each cell of the column.

But after populating the values in dropdown one blank value is also coming, and user can select that blank value.

I don't want to display that blank value.

Suppose if there are two values in drop down 'a' & 'b', so currently it is showing blank as the default value in cell and in drop down it shows 'a' & 'b'.

But as per my requirement it should show 'a' as default value and in drop down it should also show 'b'.

Can anyone suggest how can we remove that blank value from dropdown.

Thanks,

Puneet

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Puneet Arora,

You can Check there is a Standard Webdynpro Component for such Scenario.

Sap has Provided the Webdynpro component for testing all the UI Elements.

WDR_TEST_EVENTS

In these there is a view DROPDOWNBYIDX.Kindly Check Same as Your Scenario..Let me know if any concerns..

Test the webdynpro Application WDR_TEST_EVENTS. Click on the DROPDOWNBYIDX Hyper Link

Thanks & Regards

@Surendra@

Former Member
0 Kudos

go to context node and tick the checkbox Initialization Lead Selection

Former Member
0 Kudos

Hi Arshid,

It is already checked in the context node.

but default value is coming as blank.

Thanks,

Puneet

Former Member
0 Kudos

Hi Puneet,

Did you check WDDOINIT or some other custom code which is populating the dropdown, you might find APPEND INITIAL LINE there.

Cheers,

Arshid

Former Member
0 Kudos

Hi Arshid,

Thanks for the quick reply!

I have the code to fill the drop down in the eventhandler method of a button.

And there I am using Append statements to append the drop down values in valueset table.

but there is no statement as APPEND INITIAL LINE.

Regards,

Puneet

former_member198833
Active Participant
0 Kudos

Hi Puneet,

Could you share here the code snippet of the event handler where the dropdown is being populated?

Regards,

Felipe