Enter the Transaction code SPRO in the SAP Command Field and Press Enter
In the next screen Select SAP reference IMG
In next screen-"Display IMG" navigate the following menu path :
SAP Customizing Implementation Guide -> Financial Accounting -> General Ledger Accounting ->Business Transactions -> G/L Account Posting -> Make and Check Document Settings ->Assign Company Code to Field Status Variant