In the General Posting Setup and in the VAT Posting Setup the configuration must be made for the product posting group entered in the general ledger setup.