Mobile ITS For Beginners With Steps
Mobile ITS For Beginners With Steps
view
What is ITSMobile ?
ITSMobile (Internet Transaction Server for Mobile) is part of SAP NetWeaver, which helps to create web-enabled SAP applications for accessing them from browser based Handheld devices. Is a Technology introduced by SAP in 2007 ITSMobile is based on the ITS Engine integrated into the SAP Netweaver Web Application Server. ITSMobile features HTML generation of SAP Screens through its Template Generator Generated HTML acts as 'Templates' for further customization The Application design tools required for developing a Mobile ITS application are : ABAP development workbench. Web application Builder which has 2 components : 1)Internet Service creator. Parts of Internet Service : Service Parameters Theme / Topic HTML Templates 2)HTML Template Generator. The Run time Components are : ICM Status -shoul be in Running status(Needs to be checked in Transaction SMICM). HTTP Service - should be Active(In transaction SMICM,GOTO-->Services) Published Internet Service(In transactions SE80 and SICF) ITS own Services Architecture of Mobile ITS. " Steps to create Mobile ITS application:
1)Create the Application(that needs to dispalyed in handheld device) in ABAP development workbench in SE80. 2) From "SE80", create an Internet Service, assign the Transaction code and save it in a Package 3)Generate HTML Mobile template for all the screens of the ABAP application from "SE80" 4)Publish the Internet Service from "SE80" 5)Creating an ICF Service with the same name (as in Step-2) from Transaction "SICF" under the folder: "default_host/sap/bc/gui/sap/its" 6)Activate the service created from "SICF". The service can be tested from the context menu of the Service Development Guidelines for Mobile Applications: 1)Keep the UI simple by design 2)Keep in mind the limited screen sizes of handheld devices 3)It is recommended to limit the UI elements to: "Text Box", "I/O Fields", "Checkboxes", "Radio Buttons" and "Pushbuttons" Refer Supported Screen Elements for more details Frames, Tab strips, Table Controls are not supported 4)GUI Status not to include any Buttons. Instead include it on the Screens Error/Warning/Status/Information messages should be handled on an output field. That means, "Message" statement or calling a Function Module to show a popup message / confirmation prompt, should not be used Steps to create Internet service in SE80. 1)In SE80 choose Internet service from the dropdown and give an internet sevice name. " 2)Give the transaction name of the program. " 3)Create template by right clicking on the internet service CREATE->TEMPLATE.Give the theme as 99,enter the screen no for which template needs to created and the generating style should be Mobile Gerate. " 4)Double click on the Internet service name.In the parameters section give ~transaction = transaction name of the program and ~generateddynpro = 1.
" 5)Save the service.Right click on the Internet service select PULISH->COMPLETE SERVICE.You should get a success message like this. Steps to create Service in SICF transaction. 1)In SICF transaction,execute the report to get into the second screen.Navigate to the path default_host/sap/bc/gui/sap/its and right click and select New sub element. 2)Give the same Internet service name as given in SE80.In the service tab for GUI LINK drop down select YES.In the GUI configuration tab give the following parameters. 3)In the Logon Data tab choose Procedure as Alternative logon procedure. Delete other types of logon procedures retaining only Fields Authentication. 4)In the Handler list tab give the class name as CL_HTTP_EXT_ITS. 5)In the error pages tab choose the last radio button system login. Click the configuration button. Click the check boxes : System ID,client,Language,system messages. Give the user specific class as 'CL_MOBILE_SYSTEM_LOGIN'. 6)save the internet service,right click and activate it.Then right click and Test Service. It will open a webpage and will display the application as seen in handheld device.
II. Configuration Steps: a) Generating an Internet Service and Templates. b) Create an ICF service. c) Test ICF service. Now we will see in details .. A) Generating an Internet Service and Templates First we need to generate the corresponding internet service and relevant template. Goto SE80, select the package in which you want to create the internet service and create the internet service as below
2. Enter a service name and transaction code that is to be linked to the service.
3. Create a transaction code by creating module program with required fields using SE80.
Once saves a theme 99 folder is created for the service at the same time as the service.
5. In SE80, select all the screens in your program for which you want to create a template , and choose Template from context menu
6. Enter name of the previously created service and a theme (99) and selection Mobile Devices as the generation style
Now we have now see generated an ITS template for every selected screen.
7. Now we need to publish the service as below Publish by pressing service file first
Once published , we can see the success message saying 'Object published successfully. Site: INTERNAL. This completes the generation of the service and the templates. So that you can call your service using the browser. Now we need to create an ICF service that links previously created internet service with an HTTP access path. B) Create an ICF Service 1. First we need to test and generate default ICF services like itsmobile00 and itsmobile01 are active and executable in SICF transaction. 2. In SICF , create a new service by clicking new sub element.
3. Give a service name as ZDEMO and make type of service node as Independent service.
C) Test results Test the ICF service. 1. Test the service using SE80 , the browser should start with your service.
The browser having our custom screen developed in ABAP has been generated.
Test is completed. Now we have successfully created an ICF service that links the Internet service ( Which created in Step A ) with an HTTP access path.
Now we can call our Internet service using the browser of the mobile device. That HTML templates generated with Steps A and B are based on two standard services delivered by SAP (ITSMOBILE and ITSGENMOBILE). If the templates generated by the standard services do not fulfill your requirements, you can adjust them. Reference : SAP Library - SAP ITS in SAP NetWeaver Application Server
Double Click on Internet Service Name and in the Parameter do the below settings Parameter Name FRAMESET_OFF ~GENERATEDYNPRO ~ITSMOBILE ~ITSMOBILEMSGSOUND ~LANGUAGE ~LOGIN ~PASSWORD ~POPUPS ~STYLE ~THEME ~TIMEOUT ~TRANSACTION 1 DHTML 99 5 LM01 Value 0 1 1 1
Right Click on HTML Templates and click create. Give the Program Name and Screen Number and generate style as Mobile Devices (Without HTML Tables) and click Save.
Have to create the HTML Template for all the Screens of the Program.
Right Click on the Internet Service Name -> Publish -> Complete Service Go to Transaction SICF
Click Execute Right Click on default host and give service name
In Service Data Tab, set GUI Link as Yes and Click GUI Configuration In the GUI Configuration set the Service Parameters as below
Value 1 99 LM01
In Handler List Tab, set Handler List (In Order of Execution) as CL_HTTP_EXT_ITS
In System Logon Configuration, Check Define Service-Specific Settings In Select Display, check System ID, Client and Language In Action During Logon, set protocol as Do Not Switch and check Do Not Display Warnings and Deactivate Login XSRF Protection In Logon Layout and Procedure, check Custom Implementation and give ABAP Class Name as CL_MOBILE_SYSTEM_LOGIN.
Click Save and click back Right Click on the Service Name and Click Activate Service. And Click Test Service
Now this Service Name will be configured by the external client in there ITS Mobile Device.