SAP Appbuilder is built for SMP 3, so it may not work with lower versions of SMP 3 (I had tried and failed once). If you are trying to register the app with SMP 3 its very easy, you can use the kapsel Logon plugins to do it without writing any code.
Midhun VP