Deleting via ME07 may not be the good and accepted option.
I checked the code and it is trying to match the logical system against EORD table. My EORD records don't have any logical system and that's why the code is not entering in the update loop.
Any clue on this?
Cheers!!!
Amit