To get this visa you must be traveling to another country within 72 hours of your arrival in Beijing. You can't just leave Beijing and go somewhere else in China, and can't make a round trip to your point of origin.
Soul>Beijing>Bangkok is ok, but Seoul>Beijing>Shanghai is not, and neither is Seoul>Beijing>Seoul.