SAP Message >2626 - Program error: Event &1 for format &2 in appl. &3 not defined

Diagnosis
You have the option of changing payment medium lines with a functionmodule. The lines are released for changing before the appendstructure; the changed lines are copied over prior to being written.
To change payment medium lines, you have to enter a suitable functionmodule in Customizing, which was not done in this case.