Based on the headstamp markings, this is a 20mm cartridge case designed for the MG 151 aircraft autocannon, a weapon extensively used by the German Luftwaffe during World War II.