Hi Niru
Since you have already found the exit and it is getting triggered. You just to first check the status which i believe you are doing. But after that please compare the value of Priority fields coming in structure with the one stored in database table . If different display error message..where is the issue?
Nabheet