I believe you are not catching the exceptions of FM MD_PEGGING_NODIALOG which are shown when using FM pattern.
CALL FUNCTION 'MD_PEGGING_NODIALOG'
EXCEPTIONS
ERROR = 1
NO_REQUIREMENTS_FOUND = 2
ORDER_NOT_FOUND = 3
OTHERS = 4.
I believe you are not catching the exceptions of FM MD_PEGGING_NODIALOG which are shown when using FM pattern.
CALL FUNCTION 'MD_PEGGING_NODIALOG'
EXCEPTIONS
ERROR = 1
NO_REQUIREMENTS_FOUND = 2
ORDER_NOT_FOUND = 3
OTHERS = 4.