I got my Schengen visa from the German Embassy. I don't enter the Schengen area in Germany, but that's where my longest stay is (4 days) which is why I applied through Germany.
However, I plan to sandwich Prague (2 days) between Munich (2 days) and Berlin (2 days). This is a slight change from my itinerary which I had provided during my visa application. Is that allowed or would the border officials have a problem with that?