Hi Varun,
Here is the User-Exit Soultion for your Query.
I have just tested this.
You will get this error message, when user tries to change Priority value in the Notification, once the Order has been created.
Details:
User-Exit:
QQMA0014
Code you need to provide in the Include.(Tested and working well)
DATA: LV_PRIOK TYPE VIQMEL-PRIOK,
LV_AUFNR TYPE VIQMEL-AUFNR.
SELECT SINGLE AUFNR FROM VIQMEL INTO LV_AUFNR WHERE QMNUM = I_VIQMEL-QMNUM.
IF I_VIQMEL-AUFNR IS NOT INITIAL.
SELECT SINGLE PRIOK FROM VIQMEL INTO LV_PRIOK WHERE QMNUM = I_VIQMEL-QMNUM.
IF I_VIQMEL-PRIOK <> LV_PRIOK.
MESSAGE: 'Priority change is not allowed once Order has been created' TYPE 'E'.
ENDIF.
ENDIF.
Best of Luck !
Jogeswara Rao K