cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in DDLB

Former Member
0 Kudos

Hi all.

I have a problem with all field types DDLB in the different views search.
the first time you select the DDLB, descriptions of the options are fully displayed, but if selected again, the desription can not be viewed in full, the window that displays the description is not extended.
then the descriptions do not show up well.

Does anyone know how I get always displayed complete descriptions of the options in the DDLB?

thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Felipe,

Could you please tell me that you did like the below code?

METHOD get_v_category.

   DATA : lr_ddlb TYPE REF TO cl_crm_uiu_ddlb.

   DATA : it_selection_table TYPE bsp_wd_dropdown_table.

   DATA : ls_selection_table TYPE bsp_wd_dropdown_line.

   DATA : lt_status TYPE  vrm_values.

   DATA : ls_status LIKE LINE OF  lt_status.

   DATA : lt_category TYPE TABLE OF  zge_category,

           ls_category LIKE LINE OF lt_category,

           lv_count TYPE i.

   CLEAR it_selection_table.

   CREATE OBJECT lr_ddlb

     EXPORTING

       iv_source_type = 'T'.

   REFRESH : lt_category,it_selection_table.

   SELECT DISTINCT * FROM  zge_category INTO TABLE lt_category.

   INSERT INITIAL LINE INTO it_selection_table INDEX 1.

   IF lt_category IS NOT INITIAL .

     LOOP AT lt_category INTO ls_category.

       ls_selection_table-key = ls_category-category_id.

       ls_selection_table-value = ls_category-category.

       APPEND ls_selection_table TO it_selection_table.

     ENDLOOP.

   ENDIF.

   IF it_selection_table IS NOT INITIAL.

     CALL METHOD lr_ddlb->set_selection_table

       EXPORTING

         it_selection_table = it_selection_table.

     rv_valuehelp_descriptor = lr_ddlb.

   ENDIF.

ENDMETHOD.

Regards,

Vishal.

Former Member
0 Kudos

Hi Vishal.

I already analyzed your code, but I think it does not solve my problem.

Regards.

Former Member
0 Kudos

Hi Felipe,

Is any event triggering, When you are clicking on DDLB content ?

Is your GET_P_<attr-name> method like ?

METHOD get_p_category.

   CASE iv_property.

     WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.

       rv_value = if_bsp_dlc_view_descriptor=>field_type_picklist.

   ENDCASE.

ENDMETHOD.

Or Is any event triggering ?

Like:

WHEN if_bsp_wd_model_setter_getter=>fp_onclick.

       rv_value = '<EVENT_NAME>'.

Regards,

Vishal.

Former Member
0 Kudos

Hi Vishal,

Thanks for your reply. I'll give more details about the problem.

Component: BT111S_OPPT

View: BT111S_OPPT/Search

Node Context: SEARCH

Atribute: SALES_OFFICE

the field is standard.

the description of the option in the DDLB is obtained completely. What happens is that the box that shows is so small that long descriptions do not show complete.

in the class: CL_BT111S_O_SEARCH_IMPL

METHOD GET_V_SALES_OFFICE.
  FIELD-SYMBOLS <ls_ddlb> TYPE objec.

  DATA lv_temp           TYPE crmt_sales_office.
  DATA lt_ddlb           TYPE hrtb_objec.
  DATA ls_ddlb_options   TYPE crms_thtmlb_search_ddlb_nvp.

  CALL METHOD cl_crm_orgman_services=>list_sales_offs
    IMPORTING
      sales_offs_text = lt_ddlb.

  LOOP AT lt_ddlb ASSIGNING <ls_ddlb>.
    lv_temp(2)                 = <ls_ddlb>-otype.
    lv_temp+2(12)              = <ls_ddlb>-objid.
    ls_ddlb_options-key        = lv_temp.
    ls_ddlb_options-value      = <ls_ddlb>-stext.
    INSERT ls_ddlb_options INTO TABLE cs_result-ddlb_options.
  ENDLOOP.

  IF sy-subrc IS INITIAL.
    insert initial LINE into cs_result-ddlb_options index 1.
  ENDIF.
ENDMETHOD.

you have any idea that can be?

I need the description of DDLB fully display whenever you select

Thanks