There is already created an outbound interface for sending customers to legacy system through IDoc > PI > SQL.
As it was defined in DB52:
Object Table Field
DEBI KNA1 LOEVM
When users marks customer for deletion (t-code VD06 or XD02, don't know exactly how) the IDoc is generated, so the customer is deleted from the legacy system.
However, when the same user unmark the customer for deletion, the IDoc should be generated as well once the mark f, shouldn't it?
It's not being generated. Any suggestion of how to fix that?