You have two ways to connect with SAP or any other DB via SUP/SMP. 1. Odata 2. MBOs (Mobile business objects).
Integration with Odata is the recommended method from SAP, example is here,http://scn.sap.com/docs/DOC-33704
MBO example is given by Jitendra.
Midhun VP