Check out my document on how to analyze ABAP code flow using ST12 trace.
You can find my document in the below link,
http://scn.sap.com/docs/DOC-44143