Solution : https://service.sap.com/sap/support/notes/572777 (SAP Service marketplace login required)
Key words :
attached source code corrections, program flow, terms bdt_misc, aktyp reason, program error, solution implement, displaying, okcode_exit_create, okcode_exit_change, okcode_exit_display