Hello buddies,
well, I´ll describe the situation and I´ll be really grateful is somebody could help me.
I´ve created an attribute from 'eewb' which has these two codes, basically what it does is to call a table (z006_crm) and show a picklist. But the thing is I´d like to show a default value ("en estudio" in particular), and then, once is created, be able to change, but FIRSTLY, by default.
GET_V |
---|
GET_V
method GET_V_ZZORDERADM_H0230. data: lt_ddlb type bsp_wd_dropdown_table, ls_ddlb type line of bsp_wd_dropdown_table, lt_z006_crm type table of z006_crm, ls_z006_crm type z006_crm.
case iv_mode. when 'R' or 'D'. clear: lt_ddlb[].
refresh lt_z006_crm.
select * from z006_crm into table lt_z006_crm.
loop at lt_z006_crm into ls_z006_crm. ls_ddlb-key = ls_z006_crm-estado. ls_ddlb-value = ls_z006_crm-estado_descrip. append ls_ddlb to lt_ddlb. endloop.
ls_ddlb-key = ' '. ls_ddlb-value = ' '. append ls_ddlb to lt_ddlb.
sort lt_ddlb by value.
create object gr_ddlb_zestado exporting iv_source_type = 'T'. gr_ddlb_zestado->set_selection_table( it_selection_table = lt_ddlb ).
rv_valuehelp_descriptor = gr_ddlb_zestado. endcase.
endmethod. |
GET_P |
---|
METHOD GET_P_ZZORDERADM_H0230.
case iv_property. when if_bsp_wd_model_setter_getter=>fp_fieldtype. rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist. when if_bsp_wd_model_setter_getter=>fp_server_event. rv_value = 'Z_SELECTED'. endcase.
ENDMETHOD. |
Thanks buddies!