Message Life Cycle

SII consignment messages are displayed and maintained in the SII for ICT Sales & Purchase Consignment (lpesp2136m000) session. The initial status of a message is Created.

Messages 02, 04, 05, 06, and 08 are created manually. This is because the corresponding transactions are not related to VMI processes supported in LN.

If the required setup is in place, the other messages are generated when the corresponding transaction is completed in LN.

The life cycle of a consignment message

For example, when a consigned receipt that replenishes your warehouse is created in the Consigned Receipts (whwmd2550m000) session, message Message 09 Puesta a disposición del declarante is created.

A separate message is created for each shipment line or receipt line.

You can modify a newly created message. The status will not change.

When the message is ready to be sent, the message must be converted to XML format. Messages are converted to XML by batch in the Generate XML Files (lpesp2208m000) session. The resulting XML file is submitted to the Spanish tax authorities. Messages for which an XML file is generated receive the Generated status.

The responses from the Spanish tax authorities are received in XML format. The messages are rejected or accepted by the tax authorities.

You must process the responses in the Process XML Responses (lpesp2209m000) session.

When the responses are processed, the original messages are updated with the Accepted or the Rejected status in theSII for ICT Sales & Purchase Consignment (lpesp2136m000) session.

If a message is rejected, you must correct and resend the message. When you correct a rejected message in the SII for ICT Sales & Purchase Consignment (lpesp2136m000) session, the status changes back to Created. You can generate an XML file for the corrected message in the Generate XML Files (lpesp2208m000) session and submit it again to the Spanish tax authorities.

An accepted message cannot be updated. If updates are required, you must create a modification message.

Modification messages

Sometimes, a message needs updating after the XML file has been generated or even after the message is accepted by the Spanish tax authorities. In such cases, a follow-up message, that is, a modification message with the same registration ID must be created.

An original message that goes through its life cycle from created, generated, and accepted or rejected has communication type A0. A modification message has communication type A1. If more than one modification message is created, the communication type is A1 and the sequence number is increased for each additional modification message.

Modification messages for automatically created messages are created automatically and modification messages for manually created messages must be specified manually.

Example

Message 00001 09 A0, sequence number 1 has been created to report that the goods from the supplier have been received in the customer’s warehouse. Next, message 00001 09 A0, sequence number 1 is converted to XML and submitted to the Spanish tax authorities. The status of message 00001 09 A0, sequence number 1 is set to Generated.

To report a receipt correction to the effect that fewer goods have been received, modification message 09 A1, sequence number 1 is created. If a second receipt correction is performed, a second modification message 00001 09 A1, sequence number 2 is created.

The response from the Spanish tax authorities updates the message with the highest sequence number. The original message and the modification messages with lower sequence numbers are cancelled. If a message is cancelled, the Cancelled check box is selected in the SII for ICT Sales & Purchase Consignment (lpesp2136m000) session.

In the previous example, acceptance by the Spanish tax authorities of message 00001 09 A1, sequence number 2 will set the status to Accepted and set message 00001 09 A1, sequence number 1 and message 00001 09 A0, sequence number 1 to Cancelled.