Wednesday, 28 February 2018

Lesson-2: Environment Setup



First of all we need to know, which software components we need for starting the Agentry development. They are listed below:
  •       SMP SDK
  •        SMP Server


You can live only with the server if your intention is only using an already developed Agentry application and doesn’t involve any kind of development work. Agentry server provides the platform for deploying the application and you need to have a client to access it. However, if you want to do any kind of development work you need the Agentry SDK which is a part of the SMP SDK (Software Development Kit). So as a developer you need to have both the above listed components.

Steps For Installing the Agentry Server:
You can get the Server and SDK from SAP marketplace or some other credible source. Before we start installing the Agentry server, we have to define a system DSN which will be used by the server to communicate with the back end.

Creating A Data Source Name:
DSN stands for Data Source Name. It acts as the medium through which SMP server can interact with the backend. Follow the below steps to configure a system DSN in your system:

   1.    Go to this path ‘Control Panel\All Control Panel Items\Administrative Tools
   2.    Double click on Data Sources (ODBC)
   3.    Go to System DSN
   4.    Create a new System DSN
   5.    Select the Driver applicable in you scenario. In my case it is SQL Server.
   6.    Give some relevant name e.g: SAPWMMx1 (Refer Fig.1)
   7.    Select the SQL server you want to connect from the list of available servers and       click on next. (Refer Fig.1)
   8.    For authenticating, you can select windows authentication or SQL Server             authentication (needs valid credentials of the data base), Click Next. (Refer Fig.2)
   9.    Select the default database if required. (Refer Fig.3)
  10. Click Finish and click test data Source. Once you get the message Test Completed successfully you can proceed with the SMP server installation. (Refer Fig.5)

             


                                                           


                                                        (Fig.1)


                                              
                                                        (Fig.2)



                                                          
                                                            (Fig.3)

                                                      
                                                          (Fig.4)

We will use the Agentry Server and SMP server names alternatively throughout this post as they both mean the same in our context.


Installing the SMP Server:
SMP 3.0 Service pack 14 is the latest available Agentry Server version. These steps has been performed with service pack 11.


Fig 5: Folder view of the SMP Server Installable

Fig 6 shows the components inside the SMP server installable folder. If you give a look to the address bar you can find SAPSMPRT3011_0. If you decode this you will come to know the version of the SMP server.
·         SAP stands for the name of the parent company (Systems, Applications, Products).
·         SMP stands for SAP Mobile Platform.
·         RT stands for Run Time.
·         3.0 is the SMP server version.
·         11 is the Service Pack version (SP11).
·         0 is the patch level.
You have to double click on the component highlighted in red to start installing the server. Then follow the below illustrated steps. It’s implicit to click next after each step.


                                                           (Fig.6)

                                                 
                                                        (Fig.7)

Select the path you want to use for the server.
                                                     
                                                      (Fig.8)


                                                       (Fig.9)

Select Developer Installation.


                                                          (Fig.10)


                                                          (Fig.11)

Set the key store password same as your system password.
Admin user name and Admin Password are required to access the cockpit. You can set it as you wish. Cockpit is an interface between the developer and the SMP Server. You can do all the application, user, log level configurations on this platform.


                                                  (Fig.12)

You have to create a windows account in your system with the name ‘smpServiceUser’ and use the appropriate password here.


                                                   (Fig.13)

                                                 
                                                    (Fig.14)

                                                        (Fig.15)


                                                          (Fig.16)

The server is successfully installed and you can deploy an already developed Agentry application now. You can find the server folder at C\SAP\MobilePlatform3.


Setting up the Editor:
Now as the server is ready to use, we will need the SDK to do development activity. We have to get the SMP SDK File from some valid source and it should be compatible with the server version.

                                  
                         [fig 17: Folder level view of SMP SDK 3.0 SP10]


Navigate to the path shown in figure 18. You will find the agentry plugin. Now, follow the next steps ( fig 19 and 20) to install the Agentry plugin to Eclipse Editor.


                                                  [fig.18 : Agentry Plugin] 









                                        [fig.19 : Click on the selected option]

                                [fig.20 : Navigate and select the Agentry plugin]

Restart Eclipse after installing the plugin.
Keep Learning… J

Lesson-2: Environment Setup

First of all we need to know, which software components we need for starting the Agentry development. They are listed below:       ...