How delete payroll run in 1 single step

Do you know how to delete payroll run in SAP? Seems to be easy, just open PU01 transaction and hit ‘Delete’ button. Basically, yes. But usually no.

When preDME and payroll postings were made there is no way to delete payroll run from payroll cluster. But there is a trick to do it with just one single step.

* wenn das Flag vorprogramm_dat auf ‘1’ gesetzt ist, wird eine
* Meldung mit Frage ausgegeben, alle anderen Werte für das Flag führen
* zur Ausgabe eine Fehlermeldung
DATA:  vorprogramm_dta VALUE ‘0’.

In debugger change this variable value to ‘1’ and system deletes payroll run from the cluster. Don’t forget to clean preDME and postings manually.