cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to add new button to web ui view?

Former Member
0 Kudos
4,664

Hello!

I'm working with CRM7.0 and now i have the requirement to run report from quotation view in web UI. For this purpose i need to create new button which will call my report. I've found that button can be created via BSP Component Workbench.

Who can guide me with creating?

Thanks in advance!

View Entire Topic
Former Member
0 Kudos

Hi,

you can create a button in do_prepare_output of the view

DATA: ls_button  TYPE crmt_thtmlb_button.

 IF gt_button IS INITIAL.

    ls_button-text     = 'TEST BUTTON'.
    ls_button-on_click = 'NEW'.
    ls_button-enabled = abap_true.
*    ls_button-tooltip = 'TEST BUTTON'
    APPEND ls_button TO gt_button.
    CLEAR ls_button.

  ENDIF.

I hope it will help you.

Regards,

Kamesh Bathla