cancel
Showing results for 
Search instead for 
Did you mean: 

DROPDOWN by index in ALV webdynpro- the last value set entry coming double

0 Kudos

I have created ALV application with one field dropdown by index. the dropdown suppose to  have value "Yes" "No" but strange its showing me "No" "Yes" "No" (3 values in dropdown).

I have created an attribute in context named "VALUESET".

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Is your issue resolved?.If not,revert back with your observations.

Thanks

KH

Former Member
0 Kudos

Hi,

As you said, you have only two values ' Yes/No' . Create column as dropdown by key and use domain values in that.

  CREATE OBJECT lo_dropdown_by_key

            EXPORTING

              selected_key_fieldname = '<fieldname>'.

          lo_dropdown_by_key->set_selected_key_fieldname( '<fieldname>' ).



          lr_column-r_column->set_cell_editor( lo_dropdown_by_key ).

          lo_dropdown_by_key->set_state( cl_wd_abstract_input_field=>e_state-required ).

PFB the snapshot for reference.

Hope this helps you.

Thanks

KH

harsha_jalakam
Active Contributor
0 Kudos

Hi Rohit,

While binding the valueset, did you clear the structure of the valuset attribute  after appending it to  the internal tables.Sometimes this might be issue too.

Try to keep the debugger at the point of binding the valuset attribute and check the  table contents.

Below doc, might help you

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d4f5b6-fd1b-2e10-3190-823bcaff9...

Regards,

Harsha