Skip to main content

Hi Everyone! Hoping someone can provide a formula or an idea on how to tackle the two issues below.

 

Some of our customers (most often EDI customers) order with their specific customer material numbers. Customer material numbers are entered in their CMIR table under their customer number (or payer 😵.

 

Issue 1:

Customers who have been set up on EDI for years with no issues are now having orders fail resulting in an IDOC. This is because of mass uploads to update CMIRs (several without checking duplicates first by mistake). We need a way to identify these errors and remove the duplicates without having to pull reports for hundreds of customers out of SAP one-by-one to identify the errors. Also, we need a way to monitor moving forward to avoid duplicates.

 

Issue 2:

EDI orders are failing because multiple customer material #s have been entered into the customer's CMIR table tied to only one of our part #s.

Hi Kayla,

 

In general, to find duplicates in a table within Celonis, in the Event Collection, you could use this SQL Vertica snippet (just replace with relevant Primary Keys):

 

SELECT Primary_Key_1, Primary_Key_2, Primary_Key_3, COUNT(1) AS nb

FROM table

GROUP BY 1,2,3 ORDER BY 4 DESC

 

This will show you the PKs of the table which have duplicates: those with a nb > 1

 

Of course you can adapt this to your situation with Customer Material Numbers. Maybe you will have to join 2 or more tables together to scan the duplicates, depending on your Data model.

 


Hi Kayla,

 

you could also leverage the duplicate checking script available here: https://celonis.github.io/pycelonis/data_deduplication_tutorials.html

 

You could modify this to your needs and insert the data you want to check duplicates for.

 

Best,

Kevin


Reply