You get this message when document type, you are using is restricted by Account type available for postings.
In document type, Document posting can be restricted to certain account types – G/L, Vendor, Customer, Asset or Material. If you need to post to certain account type, choose appropriate document type.