Skip to Content
Mobile Infrastructure Login PageSAP Mobile Infrastructure WebConsole Using PHP Script

Introduction

This PHP application can be used to simulate the functionalities provided by the SAP MI WebConsole. The functionalities like , delete the installed application from the mobile device, assign particular application to particular mobile device, mobile user and on all devices , create the mobile component descriptor , delete the mobile component descriptor , start role synchronization , display the client installation logs , and filter the mobile devices based on mobile device user , mobile component descriptor , application installation status and the device id have been simulated using this PHP application. Creation of mobile component descriptor is not exactly like that in the standard MI WebConsole..As this is a lengthy application, I have splitted the blog into 3 parts , moreover i could not upload the entire content as one blog.First one with the codes of used PHP pages, Second one with the details of function modules,style sheet code,and the javascript code used for this application ,and the Third one with the screen shots of the application and the how to set up guide to this application.

Prerequisites

1. System must be configured properly to support the PHPRFC(This provides an RFC interface to SAP function modules in PHP).
2. The MI server user , used to login , must have the appropriate authorizations to execute the MI related RFC enabled function modules.
3. To work with the “Display the installation logs and traces”, you should have to copy the standard Function module MEMGMT_GET_DEVICE_LOGS to your own name space in the name ZMEMGMT_GET_DEVICE_LOGS and make it remote enabled.

Versions Used

I used the Apache Server 2.0.58 , PHP 5.1.4 and the SAPRFC 1.4.1-5.1.1 as subject installations.

Application Overview

This application can be used to administer the mobile devices attached to the MI server.The main functionalities simulated using this application are mentioned below.
1  Assign new applications to Mobile Devices
2  Delete the assigned applications of the Mobile Device
3  Create Mobile Component Descriptor (MCD)(not complete)
4  Delete the Mobile Component Descriptor
5  Display installation logs and traces
6  Start role synchronization
7  Filter the mobile devices based on user , mcd , status of installation and device id.

Pages Used

Table 1.1: Pages

Page Name

Functionality

login.php To provide a generic user interface to login into the MI Server
main.php This page is to set the MI server logon credentials in the session and to display more than one page in the same browser window using frame, so that the user can easily navigate to various functionalities.For this page, I have created a horizontal frameset with two documents.The upper one is to display the links to various functionalities and the lower one is to display the details of the selected functionality.
topframe.php This is the top frame to display the links to various functionalities
F4.php This page is to provide a search help for selecting the User ID,MCD or Device ID.
displayEntries.php By default, this page will display the status of all application installations on the MI Server.Here we have the provision to filter the application installations based on the Mobile Device user, Mobile component descriptor, installed application status and the device id.We can trigger the uninstallation of particular application installation from this page itself
addApplications.php Assign new applications to Mobile Devices
addComponent.php To create mobie component descriptor.Using this, We can only add MCDs.We have to explicitly set the properties like “use default version for role sync” , “upload file” and other properties.
mobileComponent.php To display all the MCDs on the MI Server.User can delete MCDs from here.
displayLog.php To display the installation logs and traces.
WebConsole.php Class file to implement some common methods used in this application like conversion of date and and time from internal format to presentation format.

Source Code

login.php

MI Server Login Details

Server Name
System Number
Client
User
Password

main.php

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply