Skip to Content
0
Jul 04, 2011 at 10:00 PM

Dropdown Value not getting binded to the field when selecting it in Web UI.

637 Views

Hi experts,

I need to implement a dropdown with two values on a Z fields. I manage to do that and the values are propely shown and i am able to select the values from the dropdown. But the issue is that somehow the values selected is not actually binded with the field. It is shown on the web UI but in the backend in the Get and set methods the value selected is not coming.

Please help. I have provided the code also that i have put in the V getter method.

method GET_V_ZZ_BA_TYPE.

DATA: lt_products TYPE bsp_wd_dropdown_table,

lwa_products TYPE LINE OF bsp_wd_dropdown_table.

lwa_products-key = 1.

lwa_products-value = 'OWNER'.

APPEND lwa_products TO lt_products.

lwa_products-key = 2.

lwa_products-value = 'TENANT'.

APPEND lwa_products TO lt_products.

CREATE OBJECT lr_ddlb

EXPORTING

iv_source_type = 'T'.

  • Load content if in runtime mode

CASE iv_mode.

WHEN runtime_mode.

CALL METHOD lr_ddlb->set_selection_table

EXPORTING

it_selection_table = lt_products.

ENDCASE.

  • Return cached value help

rv_valuehelp_descriptor = lr_ddlb.

endmethod.

Also the code for the P getter is as follows:

method GET_P_ZZ_BA_TYPE.

CASE iv_property.

WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.

rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.

ENDCASE.

endmethod.

Please let me know wh is this problem arising.