If you want to post lines with items in them to the general ledger, you must create one or more inventory posting groups and then set them up with G/L accounts.
You must first create G/L accounts and inventory posting groups.
Open the Inventory Posting Setup window.
In the Inventory Posting Setup window, fill in a line for each posting group you want to set up with a G/L account.
For Help about a specific field, click the field and press F1.
Setting Up Inventory Posting Groups
Assigning Posting Groups to Items