SOLUCIÓN DE MOVILIDAD SOBRE SAPUI5 PARA EL MÓDULO DE SAP HCM Autor: Gil Cárdenas, María Director: Pajares Gutiérrez, Roberto Entidad Colaboradora: everis Spain S.L. RESUMEN DEL PROYECTO En la sociedad empresarial actual queda patente la necesidad de aplicaciones móviles de fácil uso para mejorar los procesos de negocio. A día de hoy, no hay duda de que en los próximos años las aplicaciones Fiori serán la forma unánime de interacción con los sistemas SAP. Es por eso que en este proyecto hemos implementado nueva funcionalidad en una solución móvil de interfaz Fiori. Los nuevos procesos SAP implementados están en relación con el módulo de recursos humanos o HCM (en inglés Human Capital Management). A través de esta nueva solución móvil se permite acceder e interaccionar con los datos del personal de RRHH de una organización. Palabras clave: Sap, Fiori, R/3, NetWeaver Gateway, SAPUI5, RFC 1. INTRODUCCIÓN Este proyecto se va a desarrollar en colaboración con la empresa multinacional de consultoría EVERIS, de origen español. Desde hace tiempo, everis mantiene una alianza con la empresa SAP AG, que le permite implantar, desarrollar e investigar con sistemas SAP ERP. La implantación de un sistema ERP (un sistema integrado de Planificación de Recursos Empresariales) en una organización, permite la integración global y sencilla de los procesos de negocio, creando un entorno de trabajo más eficiente y dotando a sus usuarios de información en tiempo real, reduciendo la posibilidad de errores e información redundante. i
En este proyecto se van a implantar algunos procesos del módulo HCM a una organización ficticia, para posteriormente movilizarlos y hacerlos accesibles desde una aplicación. El trabajo se ha llevado a cabo haciendo uso de uno de los laboratorios de desarrollo SAP en everis y con el apoyo del equipo de soluciones móviles y del equipo de SAP HCM de dicha empresa. 2. TECNOLOGÍAS Las tecnologías que se han utilizado para la consecución de este proyecto son: SAP R/3: es un entorno ERP donde se desarrolla la estructura organizativa de una empresa llamada SES (nombre tomado del sector Sap&Enterprise Solutions de everis). EL R/3 es la plataforma de parametrización, para crear, almacenar y gestionar los datos. SAP NetWeaver Gateway: es una plataforma de tecnología integrada que actúa de pasarela entre la información que hay en el SAP R/3 y el framework de desarrollo SAPUI5. Es un sistema intermedio necesario para que el interfaz de usuario pueda acceder a los datos en el back-end del sistema. Como se muestra en la Ilustración 1, la conexión entre el Gateway y el SAPUI5 se realiza vía HTTP, a través del protocolo OData; mientras que en la conexión entre el R/3 y el Gateway hace uso de funciones RFC (Remote Function Call), programadas en lenguaje ABAP/4 y encargadas de recoger los datos del sistema para servírselos al servicio de gateway. SAPUI5: es el entorno de desarrollo de aplicaciones SAP en HTML5. Se trata de un User Interface Add-on para el Sap NetWeaver. Se hará uso del SAP Development Kit UI para HTML5, instalado como un plugin del IDE Eclipse Juno. Es una tecnología de interfaz de usuario que se utiliza para construir y adaptar las aplicaciones cliente basadas en SAP NetWeaver. En la siguiente figura vemos un esquema de la arquitectura completa de la solución y de cómo se produce la transmisión de datos entre bloques. ii
Ilustración 1: Diagrama del flujo de datos en el sistema 3. OBJETIVOS En la siguiente tabla se muestran los objetivos principales de este proyecto. Cada uno de ellos a su vez se dividirá en fases y tareas a realizar para la consecución del objetivo completo. ID OBJ-1 OBJ-2 OBJ-3 OBJ-4 OBJ-5 OBJ-6 OBJ-7 OBJETIVO Estudio del sistema SAP R/3 y del módulo de SAP HCM Diseño de una estructura organizativa modelo. Parametrización en el sistema de los módulos necesarios Análisis y diseño de la solución móvil Programación de las RFCs con ABAP Configuración del Sap NetWeaver Gateway Programación de la solución móvil con SAPUI5 Tabla 1: Objetivos iii
4. DESCRIPCIÓN DEL TRABAJO REALIZADO Este proyecto consiste en parametrizar la información de los empleados de una organización dentro del área SAP, en el sistema SAP HCM (en inglés Human Capital Management) y posteriormente en movilizar algunos de los procesos de este módulo (los considerados interesantes desde el punto de vista de recursos humanos para una aplicación móvil) mediante soluciones SAP innovadoras, como son SAP Fiori y SAPUI5. Se ha realizado en primer lugar un estudio del sistema SAP R/3 y del módulo de SAP HCM, realizando diversas pruebas y demos dentro del laboratorio de desarrollo de everis. Después se ha hecho una parametrización en el sistema del módulo HCM a una compañía ficticia. Para ello, se ha elaborado un plan de organización en el sistema SAP R/3. Un plan de organización proporciona un modelo completo del entorno personal y de la estructura organizativa con jerarquías y organigramas. Posteriormente, se ha hecho un estudio acerca de los procesos del SAP R/3 que se pueden movilizar a la aplicación. Estos procesos, que se corresponden con el alcance de la solución móvil final son: - Visualización de datos de empleados - Buscar empleados - Modificar datos personales - Consultar cualificaciones - Buscar empleados que posean una cualificación - Consultar cursos formativos Después se ha efectuado un estudio y configuración acerca de la herramienta SAP NetWeaver Gateway, que sirve de pasarela para transferir los datos desde el sistema R/3 al front-end de la aplicación. Este proceso se realiza a través de RFCs, que ha sido necesario desarrollar en lenguaje ABAP/4. Finalmente, se ha programado en la plataforma SAPUI5 la aplicación móvil que pueda acceder a los datos del sistema y ejecutar acciones sobre ellos. iv
5. RESULTADOS La solución móvil que hemos diseñado tiene la siguiente apariencia. Al arrancar la aplicación se muestran los tres iconos de acceso rápido a la funcionalidad: Datos de empleados, Cualificaciones y Cursos Formativos: Al hacer click en el primero de los iconos se navega hasta la vista de visualización de datos de empleados. En la figura de la izquierda se observa la vista principal. Dentro de esta figura, a la izquierda aparece una lista con todos los empleados de la compañía SES con una muy breve descripción, nombre, apellidos y número de empleado; y a la derecha aparece el detalle de cada empleado: resumen en la parte superior y tres sub-iconos que agrupan el resto de datos: cada uno de ellos corresponde a datos personales, asignación organizativa y cualificaciones personales. En la figura de la derecha vemos el formulario de actualización de datos personales de un empleado. Este formulario aparece cuando se selecciona el botón Editar datos. Una vez relleno se enviaría al sistema pulsando el botón Update. v
En la figura de la izquierda se observa la navegación del segundo de los iconos de acceso rápido. Se trata del resumen de cualificaciones y empleados que las satisfacen. En la parte superior se encuentra la barra de búsqueda. La figura de la derecha muestra la navegación hacia la vista de cursos formativos. En la columna izquierda se muestran los nombres de los cursos disponibles y a la derecha un resumen de las habilidades que se adquieren al realizar dicho curso. 6. CONCLUSIONES Con este proyecto, se ha conseguido una nueva aplicación Fiori con una funcionalidad que no existía hasta el momento. La aplicación es simple, porque todas las aplicaciones Fiori lo deben ser. El valor de las aplicaciones Fiori radica en su sencillez en cuanto a funcionalidad y presentación. El producto Fiori fue lanzado hace poco menos de un año, y en este tiempo ha tenido una enorme evolución. Se estima que en los próximos tres años será la forma unánime de acceso a los sistemas SAP de back-end. Si agrupamos la funcionalidad de nuestro desarrollo móvil final, encontramos que está compuesto por tres nuevas aplicaciones Fiori: Visualización y actualización de datos personales. Vista de cualificaciones y búsqueda de empleados por cualificación. Consulta de cursos formativos disponibles. vi
7. REFERENCIAS Las principales referencias y fuentes de consulta utilizadas durante la realización de este proyecto son: [SAPAG] Documentación oficial de SAP AG. Obtenida a través del partnership establecido con la empresa everis, entidad colaboradora de este proyecto. [WWW01] SAP A.G. Comunidad SAP. Última visita: 18 de mayo de 2014. http://scn.sap.com/ [WWW02] SAP A.G. Sap Help Portal Última visita: 18 de mayo de 2014. http://help.sap.com/ vii
MOVILITY SOLUTION OVER SAPUI5 FOCUSING ON THE SAP HCM MODULE Author: Gil Cárdenas, María Supervisor: Pajares Gutiérrez, Roberto Collaborating Entity: everis ABSTRACT In today's business society the need for mobile applications used in an easy way is demonstrated to improve business processes. Today, there is no doubt that in the coming years the Fiori applications will unanimously be the way of interaction with SAP systems. That's why in this project we have implemented new functionality in a mobile solution with Fiori interface. The new SAP processes which are implemented are focused on the HCM SAP s module (Human Capital Management). Through this new mobile solution access and interaction with HR staff data is allowed. Keywords: Sap, Fiori, R/3, NetWeaver Gateway, SAPUI5, RFC 1. INTRODUCTION This project will be developed in collaboration with the multinational consulting company EVERIS, of Spanish origin. For some time EVERIS has a partnership with SAP AG, which allows to implement, develop and research with SAP ERP systems. The implementation of an ERP system in an organization (an integrated Enterprise Resource Planning system) allows an easy integration of global business processes, creating a more efficient work environment and providing information to users in realtime, while reducing the possibility of errors and redundant information. viii
In this project we are going to implement some processes of the HCM module to a simulated organization, then they will be mobilized and made accessible from an application. The work has been carried out using one of the SAP development laboratories and with the support of the everis mobile solutions team and the SAP HCM team. 2. TECHNOLOGIES The technologies that have been used to achieve this project are: SAP R/3: is an ERP environment where the organizational structure of the simulated company called 'SES' (name taken from the everis sector called Sap & Enterprise Solutions ) is developed. The R/3 is the platform for customizing, creating, storing and managing data. SAP NetWeaver Gateway: is an integrated technology platform that acts as a bridge between the information that is in the SAP R/3 and the SAPUI5 framework. It is necessary for the user interface to access the data in the back-end system. As shown in Figure 1, the connection between the Gateway and SAPUI5 is via HTTP, thought the OData protocol; while the connection between R/3 and the Gateway uses functions called RFCs (Remote Function Calls) which are programmed in ABAP/4 and are in charge of collecting data from the system to serve them to the service gateway. SAPUI5: is the development environment of SAP applications in HTML5. This is a User Interface Add-on for SAP NetWeaver. In this project will use the SAP Development Kit for HTML5 UI, installed as a plugin to Juno Eclipse IDE. It is a UI technology that is used to build and adapt client applications based on SAP NetWeaver. The following figure shows a diagram of the overall architecture of the solution and how the data transmission between blocks is produced. ix
Ilustración 2: Data flow diagram 3. GOALS The following table lists the main objectives in this project. In turn, each one is divided into phases and tasks to achieve the overall objective. ID OBJ-1 OBJ-2 OBJ-3 OBJ-4 OBJ-5 OBJ-6 OBJ-7 OBJECTIVE Studing SAP R / 3 system and its SAP HCM module Designing an organizational structure as a model. Customizing the system required modules Analysing and designing the mobile solution Programming the RFCs with ABAP Configuring Sap NetWeaver Gateway Programming the mobile solution over SAPUI5 x
4. DESCRIPTION OF WORK This project consists in customizing the company s employees data within the SAP area, in the SAP HCM module, and then to mobilize some of the processes of this module (the ones considered interesting from the HR point of view for a mobile application) through innovative SAP solutions such as SAP Fiori and SAPUI5. Firstly, a study of the SAP R/3 and SAP HCM module was made, performing various tests and demos in the development lab in everis. Then it was made the customizing of the HCM module to a fictitious company. To do this, an organizational plan in the SAP R/3 system must be developed. An organizational plan provides a complete model of the personal environment and the organizational structure and organizational hierarchies. Subsequently, we made a study of the processes of the SAP R/3 that can be mobilized to the application. These processes correspond to the final reach of the complete solution: - Display employee data - Search for employees - Update personal data - Check qualifications - Find employees who possess a qualification - Check training courses After that, a study about the SAP NetWeaver Gateway tool has been made. This tool performs as a gateway to transfer the data from the R/3 system to the front-end application. This process is performed through RFCs, which had to be developed in ABAP/4 language. Finally, we have programmed the mobile application over the SAPUI5 platform. This application can access system data and perform actions on them. xi
5. RESULTS The mobile solution we designed looks like this. When starting the application the three icons for quick access to functionality are shown: Employee Data, Qualifications and Training Courses: When clicking on the first icon, it navigates to view display employee data. In the left figure the main view is observed. Within this figure: in the left it shows a list with all SES employees with a very brief description, name and employee number; and in the right: it is the detail of each employee: short on top, and three subicons that group the remaining data: each one of them corresponds to personal data, organizational assignment and personal qualifications. The figure at the right shows the form for updating the employee personal data. This form appears when the 'Editar datos' button is selected. When the form is filled, it will be sent to the system by pressing the Update button. xii
In the figure at the left it is shown the navigation of the second shortcut icon. This is a summary of qualifications and all the employees that satisfy them. At the top is the search bar. The right figure shows the navigation to the training courses view. In the left column are the names of the courses available and in the right one it is a summary of the skills that are acquired by taking this course. 6. CONCLUSIONS This project has achieved a new Fiori application with functionality that did not exist so far. The application is simple, because all applications Fiori should be. The value of Fiori applications is about its simplicity in terms of functionality and presentation. The Fiori product was launched for a little less than a year, and in that time has had an enormous evolution. It is estimated that over the next three years will be the unanimous way of accessing to SAP backend systems. If we group the functionality of our mobile development, at the end, we found that it consists of three new Fiori applications: View and update personal information. View and search skills of employees by qualification. Consultation of training courses available. xiii
7. REFERENCES The main references and sources used during this project are: [SAPAG] Oficial SAP AG documentation. Obtained through the partnership with the everis company, colaborating entity of this project. [WWW01] SAP A.G. SAP Community. Last visit: 18 May, 2014. http://scn.sap.com/ [WWW02] SAP A.G. Sap Help Portal Last visit: 18 May, 2014. http://help.sap.com/ xiv