Added old logic again for Non-HU IDocs
This commit is contained in:
@@ -50,3 +50,4 @@ Thumbs.db
|
||||
|
||||
test0001.camel.yaml
|
||||
testing/
|
||||
.continue/agents/new-config.yaml
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- 11.03.2026 Oject-10438 Merging all HUs into single message with multiple XMLSSCCGROUPS-->
|
||||
<!-- 22.12.2023 DEV-8311 SAP sends delivery advices to stores MAPPING: SOURCE
|
||||
<!-- 22.12.2023 DEV-8311 SAP sends delivery advices to stores MAPPING: SOURCE
|
||||
- SAP ZFSHDLV TARGET - syspro internal Format -->
|
||||
<xsl:stylesheet version="2.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
@@ -97,7 +97,7 @@
|
||||
<!-- Package Group -->
|
||||
<XMLPACKAGEGROUP>
|
||||
<NumberOfPackages>
|
||||
<xsl:value-of select="if (E1EDL20/ANZPK)
|
||||
<xsl:value-of select="if (E1EDL20/ANZPK)
|
||||
then format-number(E1EDL20/ANZPK, '#')
|
||||
else '1'"/>
|
||||
</NumberOfPackages>
|
||||
@@ -148,6 +148,42 @@
|
||||
</xsl:for-each>
|
||||
</XMLSSCCGROUP>
|
||||
</xsl:for-each>
|
||||
|
||||
<!-- Handle case when there are no handling units (E1EDL37) -->
|
||||
<xsl:if test="not(E1EDL20/E1EDL37) and E1EDL20/E1EDL24">
|
||||
<XMLSSCCGROUP>
|
||||
<SSCC><xsl:value-of select="E1EDL20/VBELN"/></SSCC>
|
||||
<PackageCode>33E</PackageCode>
|
||||
<PackageType>BJ</PackageType>
|
||||
|
||||
<!-- Process direct items when no handling units exist -->
|
||||
<xsl:for-each select="E1EDL20/E1EDL24">
|
||||
<XMLITEMS>
|
||||
<PositionNumber>
|
||||
<xsl:value-of select="./POSNR"/>
|
||||
</PositionNumber>
|
||||
<GTIN>
|
||||
<xsl:value-of select="./EAN11"/>
|
||||
</GTIN>
|
||||
<DeliveredQuantity>
|
||||
<xsl:value-of select="xs:decimal(./LGMNG)"/>
|
||||
</DeliveredQuantity>
|
||||
<QuantityQualifier>
|
||||
<xsl:call-template name="QuantityQualifier">
|
||||
<xsl:with-param name="UoM">
|
||||
<xsl:value-of select="./MEINS"/>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</QuantityQualifier>
|
||||
<DeliveryPrice></DeliveryPrice>
|
||||
<ReferenceSupplierOrder>
|
||||
<xsl:value-of select="./VGBEL"/>
|
||||
</ReferenceSupplierOrder>
|
||||
<ReferenceBuyerOrder></ReferenceBuyerOrder>
|
||||
</XMLITEMS>
|
||||
</xsl:for-each>
|
||||
</XMLSSCCGROUP>
|
||||
</xsl:if>
|
||||
</XMLDESADV>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user