Hi Bkvs,
Can you please try this below code to get drop down values with out creating any zclass.
it is working fyn.
DATA : lt_domain_entries TYPE STANDARD TABLE OF dd07v,
lt_sel_table TYPE bsp_wd_dropdown_table,
ls_sel_table TYPE LINE OF bsp_wd_dropdown_table.
FIELD- SYMBOLS : <domain> TYPE dd07v.
CALL FUNCTION 'DD_DOMVALUES_GET'
EXPORTING "Here we pass domain of the field to get possible entries
domname = 'ZMODEL_NUM'
text = 'X'
langu = sy-langu
TABLES
dd07v_tab = lt_domain_entries
EXCEPTIONS
wrong_textflag = 1
OTHERS = 2. IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
APPEND INITIAL LINE TO lt_sel_table.
LOOP AT lt_domain_entries ASSIGNING <domain>.
ls_sel_table-key = <domain>-valpos.
ls_sel_table-value = <domain>-ddtext.
APPEND ls_sel_table TO lt_sel_table.
CLEAR ls_sel_table.
ENDLOOP.
* rt_result = lt_sel_table.
ENDIF.
IF NOT GR_LCSTATUS_DDLB IS BOUND.
CREATE OBJECT GR_LCSTATUS_DDLB EXPORTING iv_source_type = 'T'.
ENDIF.
GR_LCSTATUS_DDLB->set_selection_table( it_selection_table = lt_sel_table ).
rv_valuehelp_descriptor = GR_LCSTATUS_DDLB.
Declare the attribute GR_LCSTATUS_DDLB in Context Node class (Eg:btadminh context class)
GR_LCSTATUS_DDLB Instance Attribute Protected Type Ref To CL_CRM_UIU_DDLB.
Regards,
Lakshmi ![]()