I received short dump DYNPRO_MSG_IN_HELP when trying to delete SO from transaction VA02.
This is caused by MESSAGE command in USEREXIT_SAVE_DOCUMENT_PREPARE and the form is indirectly executed by module FUNKTION_AUSFUEHREN which is executed with AT EXIT COMMAND because delete command is an exit command.
This is not a problem if the deletion is performed from BAPI because the message is not executed in EXIT COMMAND.
Does it mean that I should not issue the message if the order is being deleted?
To indicate if the current order is being deleted is set a global boolean variable to true in userexit_delete_document.
If someone has better idea, please share it.
Stev