From 26afdf3e9a63eb27388b63af416510ec5d056281 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Mon, 13 Apr 2026 13:46:49 +0200 Subject: [PATCH] Oject-10438 Generate synthetic SGTIN-96 EPCs in test mode when EPCs absent Both delivery paths (HU via E1EDL37/E1EDL44 and no-HU via E1EDL24) now produce one SGTIN-96 XMLEPC per unit when EDI_DC40/TEST = 'X' and no E1EPC03 URNs are present in the message. Serials are derived from MD5(DOCNUM + SSCC+POSNR+counter) for HU items and MD5(DOCNUM + POSNR+counter) for direct items, ensuring uniqueness across positions and handling units. DeliveredQuantity in the no-HU path corrected from LGMNG to LFIMG. --- mapping/XSL_SYSPRO_DELIVERY/DELIVERY.xsl | 60 +++++++++++++++++++++--- 1 file changed, 54 insertions(+), 6 deletions(-) diff --git a/mapping/XSL_SYSPRO_DELIVERY/DELIVERY.xsl b/mapping/XSL_SYSPRO_DELIVERY/DELIVERY.xsl index c3c7b22..1d1f556 100644 --- a/mapping/XSL_SYSPRO_DELIVERY/DELIVERY.xsl +++ b/mapping/XSL_SYSPRO_DELIVERY/DELIVERY.xsl @@ -6,7 +6,8 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge" - exclude-result-prefixes="xs ns0"> + xmlns:gs1="urn:gs1:epc" + exclude-result-prefixes="xs ns0 gs1"> @@ -22,6 +23,8 @@ + + SAP IDOC Number: @@ -121,10 +124,15 @@ - + + + + + + - + @@ -138,14 +146,30 @@ - - + + + + + + + + + + + + @@ -160,6 +184,12 @@ + + + + + + @@ -168,7 +198,7 @@ - + @@ -182,6 +212,24 @@ + + + + + + + + + +