You are on page 1of 11

BELALA Djamel 26/01/21

SDI Process

Purpose : The Italian Gouvernement set regulations in Italian Market, to better collect VAT.

Means : Sistema Di Interscambio (SDI) has been selected to collect VAT informations on all Invoices
generated in Italian Market. As of Jan 2019, all companies invoicing in Italy will have to send and
XML file to SDI organization, get the approval before sending the final invoice to the customer.

Understanding of the SDI process at Energizer :


The SDI format seems less detailed than the EDI invoice. Therefore the recommendation from GS1 is
to continue sending current EDI to customers, along with the XML SDI File.
The SDI file has to be signed before being sent to SDI.

Below is a scheme of the SDI Process :

Description of the flows :

1) For Each Italian invoice, a PDF and IDOC are generated.


In SI, the IDoc is converted to XML file, and merged with the corresponding PDF into a Zip
file.
The Zip file is sent via SFTP to TESI provider.
2) TESI is making a check on the structure of the file. If PDF is missing also they will reject.
Reports are sent to us by mail, on every failures.
If the Zip is correct, the XML is sent to the SDI Organization
3) SDI will process and validate the file. An approval number is generated, sent back to TESI.
At the same time, a copy of the XML I sent to the customer.
4) The pdf is sent to the customer

1
BELALA Djamel 26/01/21

5) TESI is sending back a flat file called inforit, showing the status of each invoice.

SAP setup
SAP Program : ZRLB_INVOICE_ITALY
Output :
- ZSDI for SAP Idoc to be converted to XML
- ZPDI as PDF to be included to the final Zip archive

ZSDI output Condition : ZPDI output Condition :


VV33 VV33

Partner profile : EUITTESI

2
BELALA Djamel 26/01/21

Port Definition : EUIT_SDI

3
BELALA Djamel 26/01/21

Simulation of execution :

Invoice 8210063564

Pdf are written to : \\OTCSYS\ftp\sws_data\prd\file\ItalyPDF

IDOCS are written to : \\OTCSYS\ftp\sws_data\PRD\edi\eu\SDI


(Individual Idocs)

4
BELALA Djamel 26/01/21

Sterling Integrator Process

1) Getting the PDF from SAP to Sterling file system

BP : EBC_FTP_GET_OUT_PDF_FROM_SAPPRIME_EU_EUIT_SDI

From \\OTCSYS\ftp\sws_data\prd\file\ItalyPDF to \\enusev102\g\edi_out\b2b_binary_pre_SDI\


PDF\

2) Getting the Idocs from SAP to Sterling file system

BP : EBC_FTP_GET_OUT_IDOCS_FROM_SAPPRIME_EU_EUIT_SDI

From \\OTCSYS\ftp\sws_data\PRD\edi\eu\SDI to \\enusev102\f\ftp\XML_SDI\in\

5
BELALA Djamel 26/01/21

3) Translating Idocs
Schedule: Schedule_EBC_FTP_XML_IN_SDI_IT
Call BP : EBC_SAP_PRIME_SDI_OUT_IDOC_XML
Map : OB_INVOIC_TO_XML_SDI
Output folder : \\enusev102\g\edi_out\b2b_binary_pre_SDI\XML

XML files contained reference to pdf file


<Causale>ALLEGATO PDF : 8210063564.PDF</Causale>
</DatiGeneraliDocumento>

4) Merging Both PDF & XML related to same invoice :


Schedule : EBC_RUN_SCRIPT_MERGE_SDI_PDF
Perl Script called : \\enusev102\e\\edifiles\prd\bin\Merge_SDI_PDF.pl
Read files from \\enusev102\g\edi_out\b2b_binary_pre_SDI\XML
- Retrieve the record with “ALLEGATO”’ to get the invoice number
- Read files from \\enusev102\g\edi_out\b2b_binary_pre_SDI\PDF\
If filename is matching the invoice number then
Zip.exe PDF_file XML_file to \\enusev102\g\edi_out\
b2b_binary\TESI_SDI_PDF
Save a copy of the Zipfile to Archive_folder
Delete PDF / XML file

6
BELALA Djamel 26/01/21

5) Sending the ZIPfile


BP : EBC_SFTP_GIS_TO_B2B_BINARY_ZIP

Code list : EBC_B2B_BINARY_SEND

Sender code : TESI_PDF


Receiver Code : 13
Description : TESI Configuration file + PDF exchange for SDI
Text 1 : TESI_SDI_PDF_IT Text2 : data/Energizer_EU/BIN_OUT/TESI_ZIP
Text3 : legal_enr_eu_out_archive

From \\enusev102\g\edi_out\b2b_binary\TESI_SDI_PDF
To Axway folder
data/Energizer_EU/BIN_OUT/TESI_ZIP

7
BELALA Djamel 26/01/21

Axway
Sending ZipArchive to TESI

Partner in Axway : TESI SFTP


sftp://sftp.e-integrationservice.net:2222

Receiving INFORIT FROM TESI

From : TESI_SDI_XML 

AS2 Id : TESIEINT2015N
http://156.54.68.193:10080 
To AS2 ID : TESI_INFRIT

Message handler :
Consumption filenames starts with : 08992310964A
Re_route to = TESI_INFORIT_ROUTE_OK

E:/Cyclone/common/data/Energizer_EU/BIN_IN/TESI_SDI 

8
BELALA Djamel 26/01/21

9
BELALA Djamel 26/01/21

INFORIT – SDI STATUS PROCESS

When SDI approved an XML invoice sent to them, they sent back a status file.
Tesi is passing to us INFORIT file.
That file is translated into a flat file, sent to SAP Prime.

Process of SDI status in Sterling Integrator

EBC_SFTP_GET_BINARY_SDI_PRIME_EU_FROM_B2B
Ftp from Axway folder data/Energizer_EU/BIN_IN/TESI_SDI
Call the BP EBC_PRIME_EU_INBOUND_SDI_XML
Which will convert into flat file for SAP

Output folder : \\enusev102\g\inbound_data\sap_eu_prime_file


Archive folder : \\enusev102\g\ARCHIVE\inbound_data\sapeusdiprimefile\202101

BPEBC_PRIME_EU_INBOUND_SDI_XML is
Map : IB_SDI_TO_SAP

Translating all files sent by TESI as INFORIT file.


Merge then into a single file SDIstatus.dat and send the SAP folder
\\enusev11\SDI-ItalyInvoice\\

SAP Process for SDI Status

Process in SAP

SAP job : MEIT_SDI_INVOICE_STATUS_UPDATE


SAP program : ZSDR_SDI_INV_STAT_UPD
SAP parameter : SDI_INV_STATUS

SAP table : ZSD_SDI_INV_STAT

10
BELALA Djamel 26/01/21

11

You might also like