Implemented some time ago BAdI BBP_DOC_CHECK_BADI to add warning or error message to ET_MESSAGES. This works fine so far, the messages are shown on top of the BBPSC03 transaction (from an enduser point of view).
The checks I implemented in this BAdI are based on the delivery date. Under some circumstances the user is asked to either modify the date or to delete the concerned item from the SC, else the SC can not be ordered.
The problem now is, that when a warning or error message once appeared and then you delete the concerned item from SC the message does never disappear again. As long as it is a warning message the SC can be ordered, but when it's an error message the SC can't be ordered anymore even if the SC item responsible for the message is no more in the SC!
How can I get rid of those messages? Already tried to delete all lines in ET_MESSAGES... to no avail.