Skip to Content
0
Former Member
Aug 13, 2008 at 07:32 AM

problem when adding button to view

177 Views

hi,

I am working in SAP CRM 2007. I am new to UI Programming.

I hav created a component through transaction BSP_WD_CMPWB. In this component ,I hav added one view .

In this View I took one field(Partner Number)

and I want to add one pushbutton. for this i JHav written following coding in DO_PREPARE_OUTPUT:

DATA ls_button TYPE crmt_thtmlb_button.

DATA lv_enabled TYPE abap_bool.

CLEAR gt_button.

CLEAR ls_button.

  • ls_button-type = cl_thtmlb_util=>gc_separator.*

ls_button-text = 'detail'. "#EC NOTEXT

ls_button-on_click = 'GET_LIST'. "#EC NOTEXT

ls_button-enabled = abap_true.

*ls_button-enabled = me->view_group_context->is_view_in_display_mode( me ).

INSERT ls_button INTO TABLE gt_button.

I think that I am missing something that's why it is not showing on UI.

So,Plz suggest me the solution.

Thanks

Hem