Integration of ERP and Print Management System
Total Page:16
File Type:pdf, Size:1020Kb
Masaryk University Faculty of Informatics Integration of ERP and Print Management system Master’s Thesis Bc. Michaela Bocánová Brno, Fall 2018 Masaryk University Faculty of Informatics Integration of ERP and Print Management system Master’s Thesis Bc. Michaela Bocánová Brno, Fall 2018 This is where a copy of the official signed thesis assignment and a copy ofthe Statement of an Author is located in the printed version of the document. Declaration Hereby I declare that this paper is my original authorial work, which I have worked out on my own. All sources, references, and literature used or excerpted during elaboration of this work are properly cited and listed in complete reference to the due source. Bc. Michaela Bocánová Advisor: Mgr. Juraj Michálek i Acknowledgements I would like to thank my supervisor Mgr. Juraj Michálek for giving me the opportunity to work on an interesting project that has future, and for providing me with SAP documentation. iii Abstract The thesis researches and develops solution for organisations running two different systems for submitting and processing a print job.The first part of the thesis cover theoretical background of Print Manage- ment Systems, specifically YSoft SafeQ. The second part covers theoret- ical background of Enterprise Resource Planning systems, specifically SAP and iDempiere. The last part documents implementation of the acquired knowledge. The result is successfull print job delivery from ERP to PMS. iv Keywords ERP, Enterprise Resource Planning, iDempiere, SAP, PMS, print, print management, Print Management System, IPP, Internet Printing Proto- col, SafeQ, Y Soft, YSoft v Contents Introduction 1 1 Print Management 3 1.1 YSoft SafeQ ..........................4 1.1.1 Features . .4 1.2 Printing protocol .......................5 1.2.1 SafeQ Protocol Level 4 . .5 1.2.2 IPP . .7 2 ERP 11 2.1 ERP comparison ....................... 12 2.1.1 iDempiere v5.1, Compiere source code family . 12 2.1.2 SAP . 15 2.2 iDempiere ........................... 17 2.2.1 Print . 18 2.2.2 Database access . 20 2.2.3 Ninja plugin . 20 2.3 SAP .............................. 21 2.3.1 Print . 23 2.3.2 Command Line Interface . 27 2.3.3 Database access . 29 3 Connector 31 3.1 Requirements ......................... 31 3.2 Implementation ........................ 31 3.2.1 Environment . 32 3.2.2 Overall structure . 33 3.2.3 Core Package . 33 3.2.4 Printing Protocol Package . 35 3.2.5 ERP Package . 40 3.3 Installation .......................... 47 3.3.1 iDempiere . 47 3.3.2 SAP . 47 3.4 Testing ............................. 48 3.4.1 Exception handling . 48 3.4.2 Encountered problems . 48 vii Conclusion 53 Bibliography 55 Index 57 A An appendix 59 viii List of Tables 1.1 IPP message format 7 1.2 IPP attribute group format 8 1.3 IPP attribute field format 8 1.4 IPP additional value format 9 2.1 Ninja Column set 20 2.2 Submit status 28 2.3 Device status 29 2.4 Job status 30 A.1 Class Code (Table 1) 59 A.2 Callback Report Level (Table 2) 60 A.3 Area Code (Table 3) 60 A.4 Device State Code (Table 4) 60 A.5 Job State Code (Table 5) 61 A.6 Result Code (Table 6) 61 ix List of Figures 2.1 SPAD 24 3.1 Print from toolbar button in iDempiere 44 3.2 Print settings in iDempiere menu 45 3.3 Print settings in iDempiere window 45 3.4 Job delivery to YSoft Safeq 5 49 3.5 Job delivery to YSoft Safeq 6 50 xi Introduction The goal of this thesis is to develop a tool that would connect Enterprise Resource Planning to Print Management Solution for the purpose of print job delivery. The main focus is on ERP system developed by SAP, and YSoft SafeQ Print Management System. Organizations, especially the larger ones, benefit from centralized management of their business processes and that includes processes related to printing. To support this feature, two types of systems are needed. One allows the organizations to manage day-to-day business processes, and share business related data across all the departments effectively and securely. Such system is called ERP and it stands for Enterprise Resource Planning. The other system allows the organi- zations to effectively manage a large amount of printers, and allthe print related processes. Such system is called PMS and it stands for Print Management System. The two systems work separately. Some organizations are satisfied with this solution. Some would prefer if their employees could request PMS’s print service directly from ERP’s UI. At minimum, the employee efficiency would be positively affected. The thesis researches APIs that provide developers with access to print jobs generated in the selected ERP systems, and printing protocols that are capable of delivering print jobs to YSoft SafeQ PMS. The researched ERP systems are iDempiere and SAP.They significantly differ in their printing capabilities. The first chapter starts with brief introduction to print management and follows with a summary of YSoft SafeQ’s features, and techni- cal information on printing protocols, specifically Internet Printing Protocol and YSoft SafeQ Protocol Level 4. The second chapter pro- vides brief characterization of ERP systems and follows with detailed description of print integration in system iDempiere and SAP. The third chapter describes implementation of print job delivery in both ERP systems. The chapter includes analysis of requirements, brief information on installation and results of testing. Because the thesis is realized with Y Soft corporation, a.s., the job delivery is tested with YSoft SafeQ. 1 1 Print Management Print management is implemented in Print Management Software (PMS). PMS is complex software designed for effective management, mon- itoring, and optimization of a collection of print devices, and all the processes related to printing. The management is centralized and the print devices can be either local or remote. The software incorporates drivers and programs that make the printer devices compatible with other devices such as computers, smartphones and special external terminals. The general workflow is: 1. a print client generates a print job 2. the client prints the job through a software interface 3. a print driver renders the job for printing 4. a print server receives the job and forwards it to a print device 5. the print device prints the job The print client is a device or software that can initiate communication with the print server and send a request for print. The client can be a laptop, a smartphone or any other device connected to the print server within the same network. The software interface is an interface installed on the print server. The print driver is software that translates print jobs sent by the client into language a specific print device understands. The print server is a device or software that is connected to a collection of print devices over a network. As a result, all clients can have access to this collection. After the server receives one or more print jobs from one or more clients, it sends them to a specific print device. The print devices range from small desktop printers, scanners, copiers and faxes to large MFDs. The acronym MFD stands for Multi-Function Device. MFD incorporates the functionality of multiple devices in one, and is used mainly in office environment. 3 1. Print Management PMS is capable of managing and controlling the print queues, the volume of printed documents, the print formats, the user accounts and the billing accounts, the network printer devices and so much more. An integral part of PMS is user authentication for accessing print services and printer devices. The main benefits of using PMS are reduced cost by eliminating wasteful printing and increased security by managing access to print services. The next section describes features of PMS developed by Czech company Y Soft. 1.1 YSoft SafeQ Y Soft is a software company with headquarters located in Brno, Czech Republic. It was founded in 2000 by Václav Muchna, the CEO, and Martin de Martini, the CIO. The company offers solutions suitable for large institutions, such as banks, insurance companies, hospitals, universities and schools, and offices. The main product the company offers is YSoft SafeQ. The newest version is YSoft SafeQ 6. YSoft SafeQ is designed as a software platform that supports not only print management but document capture and 3D print manage- ment too. It can be deployed on-premise, or as a private or hybrid cloud. 1.1.1 Features YSoft SafeQ offers a large variety of features and modules. The key feature is secure printing. Secure printing is enforced by the usage of the combination of print authentication and secure queue. When a print job is sent to secure queue, the spooler holds the job until the owner authorizes the print. Only the owner can print the job. YSoft SafeQ offers numerous methods for user authentication, including username and password, or ID cards. A feature that significantly decreases time consumption is print roaming combined with universal print driver. Print roaming supports printing on any printer managed by YSoft SafeQ system within the organization. The feature is enabled by the use of YSoft Universal 4 1. Print Management Print Driver. This means that the job can "follow" its owner to any such printer regardless of their physical location or vendor. A feature that further reduces time consumption is mobile print. Mobile print supports secure printing from laptops, smartphones or tablets, including secure guest printing. A cost reducing feature is credit and billing. Credit and billing in combination with YSoft Payment Machine enable users to track cost of each submitted print job and make an informed decision about the job.