Zaznacz stronę

SAF-T Generation based on SAP ERP system or Java solution

Check out the capabilities of the new tool. Meet the secrets of professionals.


Due to new tax regulations, since 2016, entrepreneurs are obliged to transfer regularly or on demand, all accounting documents and tax books as electronic file with specified scheme. Generating this file from an IT system often requires its modification in terms of quality of transmitted data, compliance with SAF-T (JPK) structures, and the ability to export data to a specified file format. Depending on the type of system, the scope of modifications may vary considerably – from the introduction of additional functionalities in the form of SAF-T (JPK) structure reports to the deeper redevelopment of accounting records.


There are situations where it is not possible to make changes to the source system, for example for organizational reasons, or the range of possible modifications is to some extent limited. The need to face such a challenge appeared in one of NSP’s clients. The client is a Polish division of an international corporation that has a globally implemented SAP ERP system. Due to the data security policy, it was not possible to obtain the access to the system configuration. In addition there was a time limitation for project start. The customer turned to the NSP asking for the possibility of preparing an alternative solution.






As it was not possible to implement the full JPK report structures to the SAP ERP system, NSP proposed a hybrid solution. It was based on both NSP JPK Generator for SAP ERP and NSP JPK Java Generator.

NSP JPK Generator for SAP ERP

The process of generation of JPK report in SAP ERP system is preceded by a technical phase, which is the analysis of the system and design of the target JPK report structure. In the implementation phase, development and configuration items are installed by loading the configuration transport. It is necessary to identify the relevant operations performed in the system, applied documents, tax codes, chart of accounts.
As a result, it is possible to generate a JPK report according to the criteria selected by the user and create an xml file which can then be either, uploaded directly to the Ministry of Finance servers or archived.

NSP JPK Generator based on Java

This process is divided in two steps. The first involves extracting data form the SAP ERP system into MS Excel files. In the second step, JPK reports are configured, generated and can be sent into Ministry of Finance servers through dedicated application.
This solution is an interface tool, built on the Java programming language. After extracting the data to MS Excel files, in the NSP Generator, report is configured and the key data are completed.
In addition, fields, required by the chosen JPK structure are mapped. In the next step MS Excel files are loaded, converted and the JPK report is generated.


Generated JPK report is validated, and if the validation is not successful, a proper message is being displayed, informing about the location of an error. If the validation succeeds, the message shows the information and the XML file can be downloaded and exported to the Ministry of Finance servers.


The proposed approach was accepted by the customer, and the solution was implemented in relatively short time. In the first stage, it was limited only to selected JPK Structures. Correct performance and value for many ratio, induced the customer to implement NSP Generator to remaining JPK structures as well.


Looking for the right solution for your business?
Write us and find a suitable match for your company.