How to Delete SAP CRM Product ? – a step by step SAP Tutorials guide how to delete a SAP Customer Relationship Management Product .
Find the different steps to delete Product in CRM. In addition, if you want to go further, an easy guide to enhance/ customize the SAP standard tools to delete a SAP CRM Product based on additional criteria.?
Delete SAP CRM Product Step by step
Enable SAP CRM Product Deletion
As there is no authorization check for the SAP CRM Product Deletion Transaction code, you must enable this tcode directly using SE16.
Follow these steps to allow COM_PRODUCT_DELETE_SINGLE :
- Execute Transaction SE11 to display SAP DDIC
- Choose Database Table = COMC_PR_TOOL_REG. ?This table is for?Registration for Auxiliary/Correction/Reset Programs
- Click on Display Button to displace table content .
- Click on Utilities -> Table Contents -> Create Entries.
- Add a new entries with the following data:
- Program Name = COM_PRODUCT_DELETE_SINGLE
- User Name = “your SAP User”
- Exec Date = Current Date.
- Click on Save Button
- The Program COM_PRODUCT_DELETE_SINGLE is now registred for SAP CRM Producgt Deletion
Execute SAP CRM Product Deletion Report
One the above entry is added to the COMC_PR_TOOL_REG SAP Table, you can delete the SAP Customer Relationship Product.
Follow these simple Step to delete SAP CRM Product:
- Go to transaction SE38 for SAP ABAP Report Tcode.
- Enter the standard report COM_PRODUCT_DELETE_SINGLE.
- Click on Execute Button (F8) to run the previous report .
- Enter the following details of the products that you want to delete and then click on Execute Button.
- Product ID =?“Put your Product Id”
- Product Type = 01 ( for example 01 for Material type )?
- Logical System = “Choose your Logical System … you can use the help search”
- Product Family ( not mandatory )
- Simulation – No Deletion = ‘Unchecked’ ( checked for testing)?
-> The Product is deleted !
Delete all SAP CRM Product
If your requirement is to delete all the products in SAP CRM ( Customer Relationship Management ), you should replace
COM_PRODUCT_DELETE_SINGLE by COM_PRODUCT_DELETE_ALL.
CAUTION: This will delete all CRM PRODUCT, So Make sure what are doing before running this report.
- How to Update SAP Product Hierarchy Category on SAP CRM with full ABAP Code
- SAP CRM Marketing Attributes , Segmentation and Campain Creation
- CRM Data Model Diagram in PDF and JPG
- SAP CRM Product Catalog Main Tables
- and?SAP CRM Resources: Books and Courses
How to run COM_PRODUCT_DELETE_ALL in Background
Delete SAP CRM Products may take a longtime to run. So you may consider to run the COMM_PRODUCT_DELETE_ALL in Background.
In order to perform that, you have to create a custom ABAP Report based on the standard one and remove the dialog ‘Confirmation PopUp’ Perform.
To read more on how Pop Ups are handled in ABAP, go to?ABAP PopUp: Types and Samples codes?,?Display Popup Window in WebDynpro Abap?and?Step by Step Guide how to Debug Popup Screen in SAP ABAP.
Here the step by step tutorial how to run COM_PRODUCT_DELETE_ALL in background:
- Copy the report COM_PRODUCT_DELETE_ALL into a Z report?e.g. ZOM_PRODUCT_DELETE_ALL.
- Change the Constant gc_program on Line 17 to ZOM_PRODUCT_DELETE_ALL.
- Comment the code ‘PERFORM confirmation_popup’ on line 85.
- Register the report ZOM_PRODUCT_DELETE_ALL in COMC_PR_TOOL_REG.
- Schedule the report ZOM_PRODUCT_DELETE_ALL to run in background.
Enhancement for SAP CRM Product?Deletion
If you make a filter to delete only SAP CRM Products based on some specific criteria or based on some extra authorizations check.
Copy the standard delete SAP CRM Product Report COM_PRODUCT_DELETE*.
Replace in the first section, the COM_PRODUCT_DELETE* by your custom ABAP Report.