According to the standard ChaRM process, a change document should be created solely as a follow-up from the change request. At the same time standard views contain buttons that would allow the end user to create change document without preceding change request. That’s why we need to remove those buttons.

Buttons ‘New’ and ‘Copy’ from the Search View:How To: Delete buttons ‘New’ and ‘Copy’ from ChaRM WebUI screens using Enhancement

And button ‘Copy’ from the Overview screen:How To: Delete buttons ‘New’ and ‘Copy’ from ChaRM WebUI screens using EnhancementFirst of all find UI components for these views. Press ‘F2’ on the element on the screen.How To: Delete buttons ‘New’ and ‘Copy’ from ChaRM WebUI screens using EnhancementHow To: Delete buttons ‘New’ and ‘Copy’ from ChaRM WebUI screens using EnhancementUI components are AIC_CMCD_S and AIC_CMCD_H.

Then go to SAP GUI, open component with t-code BSP_WD_CMPWB.How To: Delete buttons ‘New’ and ‘Copy’ from ChaRM WebUI screens using Enhancement

How To: Delete buttons ‘New’ and ‘Copy’ from ChaRM WebUI screens using Enhancement
How To: Delete buttons ‘New’ and ‘Copy’ from ChaRM WebUI screens using EnhancementIn component AIC_CMCD_H find method IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS and remove COPY button using enhancement.

In component AIC_CMCD_S find method DO_PREPARE_OUTPUT and remove NEW and COPY buttons using enhancement.

First of all create Enhancement Set
How To: Delete buttons ‘New’ and ‘Copy’ from ChaRM WebUI screens using Enhancement


Then click on button ‘Enhance Component’How To: Delete buttons ‘New’ and ‘Copy’ from ChaRM WebUI screens using Enhancement
Enter the name of your enhancement. In the next dialog enter name for application (for instance, ZAIC_CMCD_S).

Then system will create BSP application and ask for a package and workbench request. Finally, you should receive the message like ‘Component AIC_CMCD_S successfully created for enhancement’.

Right click on View AIC_CMCD_S/SearchResultView and choose ‘Enhance’. Z-class will be created:
Then find ‘Request processing -> DO_PREPARE_OUTPUT, right click on it and select ‘Redefine’.
How To: Delete buttons ‘New’ and ‘Copy’ from ChaRM WebUI screens using Enhancement

Double click on DO_PREPARE_OUTPUT. Go to edit mode.
Add abap-code for deleting NEW and COPY buttons, then activate.How To: Delete buttons ‘New’ and ‘Copy’ from ChaRM WebUI screens using EnhancementThen assign your enhancement set to the client – t-code SM30, view BSPWDV_EHSET_ASG.
As the result, buttons NEW and COPY disappeared:
How To: Delete buttons ‘New’ and ‘Copy’ from ChaRM WebUI screens using EnhancementIn component AIC_CMCD_H find method IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS and remove COPY button using enhancement in the same way.

New NetWeaver Information at SAP.com

Very Helpfull

User Rating: Be the first one !