If you are using your own code to send SMS and automate the process and you are also looking forward to using dynamic fields in the SMS text, you would need an additional bunch of code to resolve the merge fields before sending the SMS.

Check this for more details: http://www.screen-magic.com/resolve-templates/