Escolar Documentos
Profissional Documentos
Cultura Documentos
eu
http://sapuniversity.eu/procedure-to-delete-sap-ecc-customers-that-were-downloaded-into-sap-crm-by-mistake/#more-1166
For your information -these settings are only NOW active. During the first initial download the criteria sales
organization was NOT set as a filter condition. As such, a lot of customers were downloaded that were not
maintained for the defined sales organizations by mistake. In order to correct this, we had the requirement to delete
these business partners in SAP CRM.
2. Prerequisites
First you need to create a complete list of affected customers. You can obviously do this based on the (incorrect) filter
settings you made in the first place.
Check in table KNVV those customers that fall under the number range settings you initially made in
CUSTOMER_MAIN. Next, filter out those that ARE not maintained for the 2 sales organizations that were set as a
filter afterwards. This should provide you a list of customers that were probably downloaded by mistake.
Compare this output with the SAP CRM business partners in your system. They normally have the same number
ranges (although this depends on your setup of course internal versus external numbering).
3. Attention points
The purpose is to delete those customers that were downloaded by mistake. However, you cannot just start to delete
the list of customers you created in step 2.
Reasons:
Some customers might already have a relationship with another business partner in SAP CRM (e.g. has the
contact person xxx). Therefore you also want to exclude the customers from your list that already have a
relationship in table BUT050 in SAP CRM.
Make sure to use your Business Partner numbers in both fields (business partner) just to be on the safe side!
You also would like to avoid deleting customers in SAP CRM that are already used in business transactions.
Therefore it would be smart to also perform a check in table CRMD_ORDER_INDEX using the field Partner
Number
4. Deregister the Outbound Queue in SAP CRM
Why is this necessary? If you would simply delete all business partners on your list, this would trigger the creation of
an outbound Bdoc, by which these customers would also get deleted in the SAP ECC system. A fast reason to get
FIRED at your customer
Therefore we actually performed this complete action after normal working hours, a timeframe in which we
were certain that business would not be impacted.
Launch transaction code SMQ1 to call the outbound queue overview.
In the above screenshot I unflagged the fields (when performing my real deletion run):
Only system status deleted
Test run, check only
I advise you once again, to start with a small test run of lets say 10 customers. If this test went ok, proceed with the
complete list.
The test run you can perform in foreground as this will not impact performance. The complete run I would rather
schedule in background!
When executing the deletion, click YES on the above
pop-up.
When executing this action as a background job, you
can monitor this job using transaction code SM37.
Once the job is finished, you can try to look at the Spool request to see if there were any problems.
In the above screenshot you can see apparently at least 1 customer escaped the checks I mentioned during chapter
3 Attention Points.
7. Verifying the created outbound Queues in SMQ1
Once the job is finished you have to check the outbound queues in SAP CRM that have been created due to the
deletion process.
In SMQ1 you can somehow easily check the list of outbound queues that have been created using the following input
parameters:
Personally it think it would have been great if SAP would have provided a multiple selection option for the Queue
Once I get the list of relevant outbound queues, I select ALL entries (you might want to do some additional checks
here to be on the safe side) and press the DELETE button.
8. REGISTER OUTBOUND QUEUE AGAIN
We are now finished with the deletion process. We also assured that no deletion took place in SAP ECC of the
impacted business partners, by having unregistered and next deleted all triggered outbound queues.
As a final step we now must register this queue once again.
You do this by selecting the relevant Queue and next pressing the button Registration.
Cheers
Davy