Congruence of GDP as calculated by production and by consumption
The GDP expenditure approach is the sum of consumption, private investment, government spending, and the difference between exports and imports. I have not dug into the German Statistisches Bundesamt but unsold goods should be accounted for in the expenditure approach under "change in private inventories" or "inventory investment" (grouped with private investment).