cancel
Showing results for 
Search instead for 
Did you mean: 

I wanto to remove the buttons in over view page and item assingment block in salec order in sap crm?

former_member198180
Active Participant
0 Kudos
609

HI Team,

I wan to remove the buttons in over view copy button and item assingnment block INSERT ,DELETE,MORE,ADD,MORE  in ITEM assingment block based on user groups . i have found the function module as below.Please help how to do it.

 

BAPI_USER_GET_DETAIL- table activity groups..please help

Thanks

kalpana

 


Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Kalpana,

1. To delete Copy button from OV page:

Go to Component BT115H_SLSO-> impl class of BT115H_SLSO/SOHOverView view -> enhance method IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS and write below code.


CALL METHOD super->if_bsp_wd_toolbar_callback~get_buttons

     RECEIVING

       rt_buttons = rt_buttons.


DELETE rt_buttons WHERE type eq 'COPY'.

2. To delete buttons from Items assignment block:

Go to component BT115IT_SLSO-> impl class of BT115IT_SLSO/Items view->enhance DO_PREPARE_OUTPUT method and write below code.


CALL METHOD super->do_prepare_output.

REFRESH gt_button.

Thanks,

Ritu

praveen_kumar194
Active Contributor
0 Kudos

hi,

Generally code to display button could be there in methods like DO PREPARE OUTPUT or GET TOOLBAR BUTTONS in the corresponding UI components. you can edit the code according to your requirement.