During the Japanese occupation of the Dutch East Indies (1942–1945) and subsequent revolution, Soeman—though he remained a teacher—became active in politics, serving first on a representatives' council and then as part of the Indonesian National Committee for Pasir Pengaraian in Pekanbaru. Following the Netherlands' recognition of Indonesia's independence in 1949, Soeman was made the head of the regional department of education, working to rebuild damaged infrastructure and to establish new schools, including the first senior high school in Riau and the . He remained active in education until his death.