Hi Javier,
Thank you so much for your help.
I have the stored procedure to avoid GR addition when GR quantity exceeds PO open quantity (considering that there is not draft or approval process when PO is exceeded).
However, just like you said, i need a stored procedure to prevent overdraft.
I will try to work on the stored procedure provided by you.
Thank you.