How to confirm Purchase Order if ‘Account code is empty or invalid’ error occurs?

Cause:
System shows error ‘Invalid account code or account code is empty’ on confirmation, when wrong Credit account is updated in the line item of Purchase order.
Remedies:
Users should delete the line items and again add it. System will pick up correct account code from item account determination master . Then Users should try to confirm the Purchase order again.