Make sure that routine "Entry" exists in your "Z" program. Better option is to copy the standard program "RLB_INVOICE" into a z- program and call your smartform through it. Please check the following link as well:
http://scn.sap.com/thread/2021737
Regards