Cramer enlisted in the United States Army for World War I and completed officer training in 1917. He served in France during World War I, primarily with the 310th Infantry Regiment, a unit of the 78th Infantry Division. His service included combat during the St. Mihiel and Meuse-Argonne campaigns, and he was wounded and taken prisoner. He recuperated in a German hospital, and was released at the end of the war.