Change the Dr/Cr Accounts in Vendor Invoices Posting

How to change the Dr/Cr Accounts in Vendor Invoices / Customer Invoices??

Can i know why you want to change it on the invoice level ?

If you want change , then you need to create a seperate posting profile as per your accounts and change the default posting profile in the Posting profile field in the setup of purchase order and sales order ?

Yes, but what if i want to change the accounts in the Invoice before posting for a single invoice not from the setup??

You did not read my post properly .

Directly you can not change the accounts on documents level ,

If you want change , then you need to create a seperate posting profile as per your accounts and change the default posting profile in the Posting profile field in the setup tab of purchase order and sales order ?