The filter on mine is located under the hood just right of the valve cover towards the front of the engine. The filter housing is black and requires a special oil filter wrench to gain access to the filter element (inside).
RepairPal Certified shops can diagnose and repair your 1997 BMW 318i. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.