Skip to Content
Former Member
Mar 31, 2011 at 07:16 PM

Disable "Add item" and "Paste" button on item level of shopping cart



I would like to disable the "Add item" and "Paste" button on the item level when editing a shopping cart awaiting approval. I have been able to accomplish this for the buttons "Delete", "Duplicate", and "Copy" already. I have done this by adding an enhancement implementation in the class /SAPSRM/CL_PDO_DYN_MDA_IT_SC under the methods DELETE_ITEM (delete button), COPY_ITEM (duplicate button), and COPY_CLIP (copy button). This enhancement gets the shopping cart header guid, then uses the function module "BBP_PD_SC_GETDETAIL" to return the table e_status to check if the shopping cart is awaiting approval. If it is it will disable the buttons, making them equal to abap_false.

I would like to do this same thing to the "Add item" and "Paste" buttons but they are not listed in the the same class. Does anyone know what class they are called in?

I have tried looking in SPRO -> SAP Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Extensions and Field Control (Personalization) -> Control Actions -> Display Standard Metadata Tables for Actions on Item Level. I can't find the "Add item" and "Paste" buttons in here for BUS2121(shopping cart) under Edit mode. Anyone have any ideas?