Update repository to reflect latest changes on PO.
This commit is contained in:
@@ -0,0 +1,247 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- 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" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge" xmlns:map="java.util.Map" xmlns:dyn="com.sap.aii.mapping.api.DynamicConfiguration" xmlns:key="com.sap.aii.mapping.api.DynamicConfigurationKey" exclude-result-prefixes="xs map key dyn">
|
||||
<xsl:output method="xml" indent="yes"/>
|
||||
<xsl:strip-space elements="*"/>
|
||||
<xsl:param name="inputparam"/>
|
||||
<xsl:template match="/" name="DELIVERY">
|
||||
<ns0:Messages>
|
||||
<ns0:Message1>
|
||||
<xsl:apply-templates/>
|
||||
</ns0:Message1>
|
||||
</ns0:Messages>
|
||||
</xsl:template>
|
||||
<xsl:template match="/ns0:Messages/ns0:Message1/ZFSHDLV/IDOC" name="checkForHandlingUnit">
|
||||
<xsl:if test="./E1EDL20/E1EDL37">
|
||||
<xsl:call-template name="HandlingUnit"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="not(./E1EDL20/E1EDL37)">
|
||||
<xsl:call-template name="WithOutHandlingUnits"/>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
<xsl:template name="Message">
|
||||
<xsl:param name="CASE"/>
|
||||
<xsl:param name="ID"/>
|
||||
<xsl:param name="SSCCID"/>
|
||||
<xsl:param name="POSITIONS"/>
|
||||
<xsl:variable name="PackageCode">
|
||||
<xsl:value-of select="'33E'"/>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="PackageType">
|
||||
<xsl:value-of select="'BJ'"/>
|
||||
</xsl:variable>
|
||||
<XMLDESADV>
|
||||
<XMLDESADVHEADER>
|
||||
<DocumentId>
|
||||
<xsl:value-of select="$ID"/>
|
||||
</DocumentId>
|
||||
<DeliveryNote>
|
||||
<xsl:choose>
|
||||
<xsl:when test="/ns0:Messages/ns0:Message1/ZFSHDLV/IDOC/E1EDL20/LIFEX/node()">
|
||||
<xsl:value-of select="/ns0:Messages/ns0:Message1/ZFSHDLV/IDOC/E1EDL20/LIFEX"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="/ns0:Messages/ns0:Message1/ZFSHDLV/IDOC/E1EDL20/VBELN"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
</DeliveryNote>
|
||||
<DocumentType>
|
||||
<xsl:value-of select="'XMLDESADV'"/>
|
||||
</DocumentType>
|
||||
<DocumentSubType>
|
||||
<xsl:call-template name="DocumentSubType">
|
||||
<xsl:with-param name="LFART">
|
||||
<xsl:value-of select="../E1EDL21/LFART"/>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</DocumentSubType>
|
||||
<DocumentDate>
|
||||
<xsl:value-of select="format-dateTime(adjust-dateTime-to-timezone(xs:dateTime(concat(
|
||||
substring(/ns0:Messages/ns0:Message1/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='015']/NTANF,1,4),
|
||||
'-',
|
||||
substring(/ns0:Messages/ns0:Message1/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='015']/NTANF,5,2),
|
||||
'-',
|
||||
substring(/ns0:Messages/ns0:Message1/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='015']/NTANF,7,2),
|
||||
'T',
|
||||
substring(/ns0:Messages/ns0:Message1/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='015']/NTANZ,1,2),
|
||||
':',
|
||||
substring(/ns0:Messages/ns0:Message1/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='015']/NTANZ,3,2),
|
||||
':',
|
||||
substring(/ns0:Messages/ns0:Message1/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='015']/NTANZ,5,2)))),
|
||||
'[Y0000]-[M00]-[D00]T[H00]:[m00]:[s00].[f0000000][Z]')"/>
|
||||
</DocumentDate>
|
||||
<DeliveryDate>
|
||||
<xsl:value-of select="format-dateTime(adjust-dateTime-to-timezone(xs:dateTime(concat(
|
||||
substring(/ns0:Messages/ns0:Message1/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='007']/NTANF,1,4),
|
||||
'-',
|
||||
substring(/ns0:Messages/ns0:Message1/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='007']/NTANF,5,2),
|
||||
'-',
|
||||
substring(/ns0:Messages/ns0:Message1/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='007']/NTANF,7,2),
|
||||
'T',
|
||||
substring(/ns0:Messages/ns0:Message1/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='007']/NTANZ,1,2),
|
||||
':',
|
||||
substring(/ns0:Messages/ns0:Message1/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='007']/NTANZ,3,2),
|
||||
':',
|
||||
substring(/ns0:Messages/ns0:Message1/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='007']/NTANZ,5,2)))),
|
||||
'[Y0000]-[M00]-[D00]T[H00]:[m00]:[s00].[f0000000][Z]')"/>
|
||||
</DeliveryDate>
|
||||
<ReferenceSupplierOrder/>
|
||||
<ReferenceBuyerOrder/>
|
||||
<ReferenceDocument>
|
||||
<xsl:value-of select="$ID"/>
|
||||
</ReferenceDocument>
|
||||
<AllocationReference/>
|
||||
<SenderGLN>
|
||||
<xsl:value-of select="//IDOC/E1IDOCENHANCEMENT[IDENTIFIER='SENDERGLN']/DATA"/>
|
||||
</SenderGLN>
|
||||
<ReceipientGLN>
|
||||
<xsl:value-of select="//IDOC/E1IDOCENHANCEMENT[IDENTIFIER='RECEIVERGLN']/DATA"/>
|
||||
</ReceipientGLN>
|
||||
<SupplierGLN/>
|
||||
<BuyerGLN/>
|
||||
<DeliveryPartyGLN/>
|
||||
<UltimateConsignyGLN/>
|
||||
<ReturnGLN/>
|
||||
<SendFromGLN/>
|
||||
<SendToGLN/>
|
||||
<DeliveryCurrency/>
|
||||
</XMLDESADVHEADER>
|
||||
<XMLDESADV>
|
||||
</XMLDESADV>
|
||||
<XMLPACKAGEGROUP>
|
||||
<NumberOfPackages>
|
||||
<xsl:choose>
|
||||
<xsl:when test="number(format-number(../../../IDOC/E1EDL20/ANZPK,'#')) > 0 ">
|
||||
<xsl:value-of select="format-number(../../../IDOC/E1EDL20/ANZPK,'#')"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:copy-of select="1"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</NumberOfPackages>
|
||||
<PackageCode>
|
||||
<xsl:value-of select="$PackageCode"/>
|
||||
</PackageCode>
|
||||
</XMLPACKAGEGROUP>
|
||||
<XMLSSCCGROUP>
|
||||
<SSCC>
|
||||
<xsl:value-of select="$SSCCID"/>
|
||||
</SSCC>
|
||||
<PackageCode>
|
||||
<xsl:value-of select="$PackageCode"/>
|
||||
</PackageCode>
|
||||
<PackageType>
|
||||
<xsl:value-of select="$PackageType"/>
|
||||
</PackageType>
|
||||
<xsl:copy-of select="$POSITIONS"/>
|
||||
</XMLSSCCGROUP>
|
||||
</XMLDESADV>
|
||||
</xsl:template>
|
||||
<xsl:template name="WithOutHandlingUnits">
|
||||
<xsl:variable name="POSITIONS">
|
||||
<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/>
|
||||
<ReferenceSupplierOrder>
|
||||
<xsl:value-of select="./VGBEL"/>
|
||||
</ReferenceSupplierOrder>
|
||||
<ReferenceBuyerOrder/>
|
||||
</XMLITEMS>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:call-template name="Message">
|
||||
<xsl:with-param name="CASE" select="'NoHandlingUnit'"/>
|
||||
<xsl:with-param name="ID" select="./E1EDL20/VBELN"/>
|
||||
<xsl:with-param name="SSCCID" select="./E1EDL20/VBELN"/>
|
||||
<xsl:with-param name="POSITIONS" select="$POSITIONS"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
<xsl:template name="HandlingUnit">
|
||||
<xsl:for-each select="./E1EDL20/E1EDL37">
|
||||
<!-- Looping over all E1EDL37 segments and create a new message -->
|
||||
<xsl:variable name="POSITIONS">
|
||||
<xsl:for-each select="./E1EDL44">
|
||||
<xsl:variable name="position" select="./POSNR"/>
|
||||
<XMLITEMS>
|
||||
<PositionNumber>
|
||||
<xsl:value-of select="$position"/>
|
||||
</PositionNumber>
|
||||
<GTIN>
|
||||
<xsl:value-of select="../../E1EDL24[POSNR = $position]/EAN11"/>
|
||||
</GTIN>
|
||||
<DeliveredQuantity>
|
||||
<xsl:value-of select="xs:decimal(../../E1EDL24[POSNR = $position]/LGMNG)"/>
|
||||
</DeliveredQuantity>
|
||||
<QuantityQualifier>
|
||||
<xsl:call-template name="QuantityQualifier">
|
||||
<xsl:with-param name="UoM">
|
||||
<xsl:value-of select="../../E1EDL24[POSNR = $position]/MEINS"/>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</QuantityQualifier>
|
||||
<DeliveryPrice/>
|
||||
<ReferenceSupplierOrder>
|
||||
<xsl:value-of select="../../E1EDL24[POSNR = $position]/VGBEL"/>
|
||||
</ReferenceSupplierOrder>
|
||||
<ReferenceBuyerOrder/>
|
||||
<xsl:if test="exists(./E1EPC03)">
|
||||
<xsl:for-each select="./E1EPC03">
|
||||
<XMLEPC>
|
||||
<EPC>
|
||||
<xsl:value-of select="./EPC"/>
|
||||
</EPC>
|
||||
</XMLEPC>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</XMLITEMS>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:call-template name="Message">
|
||||
<xsl:with-param name="CASE" select="'HandlingUnit'"/>
|
||||
<xsl:with-param name="ID" select="concat(../VBELN,'_',./EXIDV)"/>
|
||||
<xsl:with-param name="SSCCID" select="format-number(./EXIDV,'#')"/>
|
||||
<xsl:with-param name="POSITIONS" select="$POSITIONS"/>
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
<xsl:template name="DocumentSubType">
|
||||
<xsl:param name="LFART"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$LFART = 'ZIL'">
|
||||
<xsl:value-of select="'DESADV_IBT'"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="'DESADV_GI'"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
<xsl:template name="QuantityQualifier">
|
||||
<xsl:param name="UoM"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$UoM = 'PCE'">
|
||||
<xsl:value-of select="'12'"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="'999'"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
+39
-8
@@ -16,11 +16,26 @@
|
||||
<DELVRY07>
|
||||
<IDOC>
|
||||
<xsl:attribute name="BEGIN"><xsl:copy-of select="1"/> </xsl:attribute>
|
||||
<xsl:call-template name="EDI_DC40-8309"/>
|
||||
<xsl:call-template name="EDI_DC40-8309">
|
||||
<xsl:with-param name="sendFromGLN">
|
||||
<xsl:value-of select="./XMLRECADVHEADER/SendFromGLN"/>
|
||||
</xsl:with-param>
|
||||
<xsl:with-param name="sendToGLN">
|
||||
<xsl:value-of select="./XMLRECADVHEADER/SendToGLN"/>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<E1EDL20 >
|
||||
<xsl:attribute name="SEGMENT"><xsl:copy-of select="1"/> </xsl:attribute>
|
||||
<TRAID><xsl:value-of select="format-number(substring-before(./XMLRECADVHEADER/ReferenceDocument,$Separator),'0000000000')"/></TRAID>
|
||||
<VBELN><xsl:value-of select="format-number(substring-before(./XMLRECADVHEADER/ReferenceDocument,$Separator),'0000000000')"/></VBELN>
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains(./XMLRECADVHEADER/ReferenceDocument,'_')">
|
||||
<!--<TRAID><xsl:value-of select="format-number(substring-before(./XMLRECADVHEADER/ReferenceDocument,$Separator),'0000000000')"/></TRAID>-->
|
||||
<VBELN><xsl:value-of select="format-number(substring-before(./XMLRECADVHEADER/ReferenceDocument,$Separator),'0000000000')"/></VBELN>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<!--<TRAID><xsl:value-of select="format-number(./XMLRECADVHEADER/ReferenceDocument,'0000000000')"/></TRAID>-->
|
||||
<VBELN><xsl:value-of select="format-number(./XMLRECADVHEADER/ReferenceDocument,'0000000000')"/></VBELN>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<E1EDL18>
|
||||
<xsl:attribute name="SEGMENT"><xsl:copy-of select="1"/> </xsl:attribute>
|
||||
<QUALF><xsl:call-template name="Qualifier-8309"/></QUALF>
|
||||
@@ -49,25 +64,41 @@
|
||||
<DELVRY07>
|
||||
<IDOC>
|
||||
<xsl:attribute name="BEGIN"><xsl:copy-of select="1"/> </xsl:attribute>
|
||||
<xsl:call-template name="EDI_DC40-8309"/>
|
||||
<xsl:call-template name="EDI_DC40-8309">
|
||||
<xsl:with-param name="sendFromGLN">
|
||||
<xsl:value-of select="./XMLRECADVHEADER/SendFromGLN"/>
|
||||
</xsl:with-param>
|
||||
<xsl:with-param name="sendToGLN">
|
||||
<xsl:value-of select="./XMLRECADVHEADER/SendToGLN"/>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<E1EDL20 >
|
||||
<xsl:attribute name="SEGMENT"><xsl:copy-of select="1"/> </xsl:attribute>
|
||||
<TRAID><xsl:value-of select="substring-before(./XMLRECADVHEADER/ReferenceDocument,$Separator)"/></TRAID>
|
||||
<VBELN><xsl:value-of select="substring-before(./XMLRECADVHEADER/ReferenceDocument,$Separator)"/></VBELN>
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains(./XMLRECADVHEADER/ReferenceDocument,'_')">
|
||||
<!--<TRAID><xsl:value-of select="substring-before(./XMLRECADVHEADER/ReferenceDocument,$Separator)"/></TRAID>-->
|
||||
<VBELN><xsl:value-of select="substring-before(./XMLRECADVHEADER/ReferenceDocument,$Separator)"/></VBELN>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<!--<TRAID><xsl:value-of select="./XMLRECADVHEADER/ReferenceDocument"/></TRAID>-->
|
||||
<VBELN><xsl:value-of select="./XMLRECADVHEADER/ReferenceDocument"/></VBELN>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
<E1EDL18>
|
||||
<xsl:attribute name="SEGMENT"><xsl:copy-of select="1"/> </xsl:attribute>
|
||||
<QUALF><xsl:call-template name="Qualifier-8309"/></QUALF>
|
||||
</E1EDL18>
|
||||
<!-- Source has deep structure of SSCC-Group with Items / therefore using *-->
|
||||
<xsl:for-each select="./*/XMLRECADVITEMS">
|
||||
<E1EDL24>
|
||||
<!--<E1EDL24>
|
||||
<xsl:attribute name="SEGMENT"><xsl:copy-of select="1"/> </xsl:attribute>
|
||||
<POSNR><xsl:value-of select="position()"/></POSNR>
|
||||
<WERKS><xsl:value-of select="$Location"/></WERKS>
|
||||
<LIFIMG> <xsl:value-of select="OriginalQuantity"/></LIFIMG>
|
||||
<EAN11> <xsl:value-of select="./GTIN"/></EAN11>
|
||||
<POSEX> <xsl:value-of select="./PositionNumber"/></POSEX>
|
||||
</E1EDL24>
|
||||
</E1EDL24>-->
|
||||
</xsl:for-each>
|
||||
</E1EDL20>
|
||||
</IDOC>
|
||||
+10
-7
@@ -16,7 +16,7 @@
|
||||
<xsl:template name="DocumentSubType">
|
||||
<xsl:param name="LFART" />
|
||||
<xsl:choose>
|
||||
<xsl:when test="'ZIL'">
|
||||
<xsl:when test="$LFART = 'ZIL'">
|
||||
<xsl:value-of select="'DESADV_IBT'" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
@@ -28,7 +28,7 @@
|
||||
<xsl:template name="QuantityQualifier">
|
||||
<xsl:param name="UoM" />
|
||||
<xsl:choose>
|
||||
<xsl:when test="'PCE'">
|
||||
<xsl:when test="$UoM = 'PCE'">
|
||||
<xsl:value-of select="'12'" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
@@ -38,6 +38,8 @@
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="EDI_DC40-8309">
|
||||
<xsl:param name="sendFromGLN" />
|
||||
<xsl:param name="sendToGLN" />
|
||||
<EDI_DC40>
|
||||
<xsl:attribute name="SEGMENT"><xsl:copy-of select="1"/> </xsl:attribute>
|
||||
<TABNAM>EDI_DC40</TABNAM>
|
||||
@@ -49,14 +51,15 @@
|
||||
<MESTYP>WHSCON</MESTYP>
|
||||
<MESCOD>WE</MESCOD>
|
||||
<STDMES>DESADV</STDMES>
|
||||
<SNDPOR>EBISS</SNDPOR> <!-- change to Syspro -->
|
||||
<SNDPOR>SAPPO</SNDPOR> <!-- change to Syspro -->
|
||||
<SNDPRT>LS</SNDPRT>
|
||||
<SNDPRN>SYSPRO</SNDPRN>
|
||||
<RCVPOR>SAPS4Q</RCVPOR>
|
||||
<RCVPOR>SAP</RCVPOR>
|
||||
<RCVPRT>LS</RCVPRT>
|
||||
<RCVPFC>LS</RCVPFC>
|
||||
<RCVPRN>S4QCLNT100</RCVPRN>
|
||||
<RCVLAD></RCVLAD>
|
||||
<RCVPFC></RCVPFC>
|
||||
<RCVPRN>SAP</RCVPRN>
|
||||
<SNDLAD><xsl:value-of select="$sendFromGLN"/></SNDLAD>
|
||||
<RCVLAD><xsl:value-of select="$sendToGLN"/></RCVLAD>
|
||||
<CREDAT></CREDAT>
|
||||
<CRETIM></CRETIM>
|
||||
<SERIAL><xsl:value-of select="current-dateTime()"/></SERIAL>
|
||||
@@ -0,0 +1,93 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="2.0" exclude-result-prefixes="xs" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
<xsl:output method="xml" omit-xml-declaration="no" indent="yes"/>
|
||||
<xsl:strip-space elements="*"/>
|
||||
<xsl:template name="PHYSICAL_INVENTORY" match="/">
|
||||
<WVINVE03>
|
||||
<IDOC>
|
||||
<xsl:attribute name="BEGIN">
|
||||
<xsl:value-of select="1"/>
|
||||
</xsl:attribute>
|
||||
<EDI_DC40>
|
||||
<xsl:attribute name="SEGMENT">
|
||||
<xsl:value-of select="1"/>
|
||||
</xsl:attribute>
|
||||
<TABNAM>EDI_DC40</TABNAM>
|
||||
<MANDT/>
|
||||
<DOCNUM/>
|
||||
<DOCREL/>
|
||||
<STATUS/>
|
||||
<MESCOD/>
|
||||
<DIRECT>2</DIRECT>
|
||||
<OUTMOD/>
|
||||
<IDOCTYP>WVINVE03</IDOCTYP>
|
||||
<MESTYP>WVINVE</MESTYP>
|
||||
<REFINT><xsl:value-of select="@FILENAME"/></REFINT>
|
||||
<SNDPOR>SAPPO</SNDPOR>
|
||||
<SNDPRT>KU</SNDPRT>
|
||||
<SNDPRN>XXXX</SNDPRN>
|
||||
<RCVPOR/>
|
||||
<RCVPRT>LS</RCVPRT>
|
||||
<RCVPFC/>
|
||||
<RCVPRN>SAP</RCVPRN>
|
||||
<SNDLAD>
|
||||
<xsl:value-of select="/XMLINVRPT/XMLINVRPTHEADER/SiteGLN"/>
|
||||
</SNDLAD>
|
||||
<RCVLAD/>
|
||||
<CREDAT>
|
||||
<xsl:value-of select="format-dateTime(xs:dateTime(/XMLINVRPT/XMLINVRPTHEADER/DocumentDate),'[Y0000][M00][D00]')"/>
|
||||
</CREDAT>
|
||||
<CRETIM>
|
||||
<xsl:value-of select="format-dateTime(xs:dateTime(/XMLINVRPT/XMLINVRPTHEADER/DocumentDate),'[H00]:[m00]:[s00]')"/>
|
||||
</CRETIM>
|
||||
<SERIAL>
|
||||
<xsl:value-of select="current-dateTime()"/>
|
||||
</SERIAL>
|
||||
</EDI_DC40>
|
||||
<E1WVINH>
|
||||
<xsl:attribute name="SEGMENT">
|
||||
<xsl:value-of select="1"/>
|
||||
</xsl:attribute>
|
||||
<LGORT>1000</LGORT>
|
||||
<!-- DocumentId ohne &apos;-&apos; -->
|
||||
<XBLNI>
|
||||
<xsl:value-of select="translate(/XMLINVRPT/XMLINVRPTHEADER/DocumentId,'-','')"/>
|
||||
</XBLNI>
|
||||
<IBLNR/>
|
||||
<DDATE>
|
||||
<xsl:value-of select="format-dateTime(xs:dateTime(/XMLINVRPT/XMLINVRPTHEADER/InventoryDate),'[Y0000][M00][D00]')"/>
|
||||
</DDATE>
|
||||
<!--TODO keine doppelpunkte -->
|
||||
<DTIME>
|
||||
<xsl:value-of select="format-dateTime(xs:dateTime(/XMLINVRPT/XMLINVRPTHEADER/InventoryDate),'[H00][m00][s00]')"/>
|
||||
</DTIME>
|
||||
<FILIALE>
|
||||
<xsl:value-of select="/XMLINVRPT/XMLINVRPTHEADER/SiteGLN"/>
|
||||
</FILIALE>
|
||||
<INVNU/>
|
||||
<xsl:for-each select="/XMLINVRPT/XMLINVRPTITEMS/XMLINVRPTITEM">
|
||||
<E1WVINI>
|
||||
<xsl:attribute name="SEGMENT">
|
||||
<xsl:value-of select="1"/>
|
||||
</xsl:attribute>
|
||||
<!-- use GTIN -->
|
||||
<QUALARTNR>003</QUALARTNR>
|
||||
<ZEILI>
|
||||
<xsl:value-of select="PositionNumber"/>
|
||||
</ZEILI>
|
||||
<ARTNR>
|
||||
<xsl:value-of select="GTIN"/>
|
||||
</ARTNR>
|
||||
<ERFMG>
|
||||
<xsl:value-of select="InventoryQuantity"/>
|
||||
</ERFMG>
|
||||
<xsl:if test="InventoryQuantity = 0">
|
||||
<XNULL>X</XNULL>
|
||||
</xsl:if>
|
||||
</E1WVINI>
|
||||
</xsl:for-each>
|
||||
</E1WVINH>
|
||||
</IDOC>
|
||||
</WVINVE03>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
+4
-4
@@ -32,13 +32,13 @@
|
||||
<OUTMOD></OUTMOD>
|
||||
<IDOCTYP>WGSREQ02</IDOCTYP>
|
||||
<MESTYP>WGSREQ</MESTYP>
|
||||
<SNDPOR>SAPO</SNDPOR>
|
||||
<SNDPOR>SAPPO</SNDPOR>
|
||||
<SNDPRT>KU</SNDPRT>
|
||||
<SNDPRN></SNDPRN>
|
||||
<RCVPOR></RCVPOR>
|
||||
<SNDPRN>XXXX</SNDPRN>
|
||||
<RCVPOR>SAP</RCVPOR>
|
||||
<RCVPRT>LS</RCVPRT>
|
||||
<RCVPFC></RCVPFC>
|
||||
<RCVPRN></RCVPRN>
|
||||
<RCVPRN>SAP</RCVPRN>
|
||||
<SNDLAD>
|
||||
<xsl:value-of
|
||||
select="./XMLDESADV/XMLDESADVHEADER/SendFromGLN" />
|
||||
+3
-3
@@ -28,10 +28,10 @@
|
||||
<OUTMOD></OUTMOD>
|
||||
<IDOCTYP>WPUWBW01</IDOCTYP>
|
||||
<MESTYP>WPUWBW</MESTYP>
|
||||
<SNDPOR>PO</SNDPOR>
|
||||
<SNDPOR>SAPPO</SNDPOR>
|
||||
<SNDPRT>KU</SNDPRT>
|
||||
<SNDPRN></SNDPRN>
|
||||
<RCVPOR></RCVPOR>
|
||||
<SNDPRN>XXXX</SNDPRN>
|
||||
<RCVPOR>SAP</RCVPOR>
|
||||
<RCVPRT>LS</RCVPRT>
|
||||
<RCVPFC></RCVPFC>
|
||||
<RCVPRN>SAP</RCVPRN>
|
||||
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>MOP_SYSPRO</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@@ -1,34 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<DELVRY07>
|
||||
<IDOC BEGIN="1">
|
||||
<EDI_DC40 SEGMENT="1">
|
||||
<TABNAM>EDI_DC40</TABNAM>
|
||||
<MANDT>100</MANDT>
|
||||
<DIRECT>2</DIRECT>
|
||||
<OUTMOD />
|
||||
<DOCNUM />
|
||||
<IDOCTYP>DELVRY07</IDOCTYP>
|
||||
<MESTYP>WHSCON</MESTYP>
|
||||
<MESCOD>WE</MESCOD>
|
||||
<STDMES>DESADV</STDMES>
|
||||
<SNDPOR>EBISS</SNDPOR>
|
||||
<SNDPRT>LS</SNDPRT>
|
||||
<SNDPRN>SYSPRO</SNDPRN>
|
||||
<RCVPOR>SAPS4Q</RCVPOR>
|
||||
<RCVPRT>LS</RCVPRT>
|
||||
<RCVPFC>LS</RCVPFC>
|
||||
<RCVPRN>S4QCLNT100</RCVPRN>
|
||||
<RCVLAD />
|
||||
<CREDAT />
|
||||
<CRETIM />
|
||||
<SERIAL>2024-01-09T18:48:19.64594+01:00</SERIAL>
|
||||
</EDI_DC40>
|
||||
<E1EDL20 SEGMENT="1">
|
||||
<TRAID>0180001585</TRAID>
|
||||
<VBELN>0180001585</VBELN>
|
||||
<E1EDL18 SEGMENT="1">
|
||||
<QUALF>PGI</QUALF>
|
||||
</E1EDL18>
|
||||
</E1EDL20>
|
||||
</IDOC>
|
||||
</DELVRY07>
|
||||
@@ -1,34 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<DELVRY07>
|
||||
<IDOC BEGIN="1">
|
||||
<EDI_DC40 SEGMENT="1">
|
||||
<TABNAM>EDI_DC40</TABNAM>
|
||||
<MANDT>100</MANDT>
|
||||
<DIRECT>2</DIRECT>
|
||||
<OUTMOD/>
|
||||
<DOCNUM/>
|
||||
<IDOCTYP>DELVRY07</IDOCTYP>
|
||||
<MESTYP>WHSCON</MESTYP>
|
||||
<MESCOD>WE</MESCOD>
|
||||
<STDMES>DESADV</STDMES>
|
||||
<SNDPOR>EBISS</SNDPOR>
|
||||
<SNDPRT>LS</SNDPRT>
|
||||
<SNDPRN>SYSPRO</SNDPRN>
|
||||
<RCVPOR>SAPS4Q</RCVPOR>
|
||||
<RCVPRT>LS</RCVPRT>
|
||||
<RCVPFC>LS</RCVPFC>
|
||||
<RCVPRN>S4QCLNT100</RCVPRN>
|
||||
<RCVLAD/>
|
||||
<CREDAT/>
|
||||
<CRETIM/>
|
||||
<SERIAL>2024-03-12T13:08:21.443+01:00</SERIAL>
|
||||
</EDI_DC40>
|
||||
<E1EDL20 SEGMENT="1">
|
||||
<TRAID>0063189867</TRAID>
|
||||
<VBELN>0063189867</VBELN>
|
||||
<E1EDL18 SEGMENT="1">
|
||||
<QUALF>PGI</QUALF>
|
||||
</E1EDL18>
|
||||
</E1EDL20>
|
||||
</IDOC>
|
||||
</DELVRY07>
|
||||
@@ -1,41 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<DELVRY07>
|
||||
<IDOC BEGIN="1">
|
||||
<EDI_DC40 SEGMENT="1">
|
||||
<TABNAM>EDI_DC40</TABNAM>
|
||||
<MANDT>100</MANDT>
|
||||
<DIRECT>2</DIRECT>
|
||||
<OUTMOD/>
|
||||
<DOCNUM/>
|
||||
<IDOCTYP>DELVRY07</IDOCTYP>
|
||||
<MESTYP>WHSCON</MESTYP>
|
||||
<MESCOD>WE</MESCOD>
|
||||
<STDMES>DESADV</STDMES>
|
||||
<SNDPOR>EBISS</SNDPOR>
|
||||
<SNDPRT>LS</SNDPRT>
|
||||
<SNDPRN>SYSPRO</SNDPRN>
|
||||
<RCVPOR>SAPS4Q</RCVPOR>
|
||||
<RCVPRT>LS</RCVPRT>
|
||||
<RCVPFC>LS</RCVPFC>
|
||||
<RCVPRN>S4QCLNT100</RCVPRN>
|
||||
<RCVLAD/>
|
||||
<CREDAT/>
|
||||
<CRETIM/>
|
||||
<SERIAL>2024-03-12T09:32:00.397+01:00</SERIAL>
|
||||
</EDI_DC40>
|
||||
<E1EDL20 SEGMENT="1">
|
||||
<TRAID/>
|
||||
<VBELN/>
|
||||
<E1EDL18 SEGMENT="1">
|
||||
<QUALF>PGI</QUALF>
|
||||
</E1EDL18>
|
||||
<E1EDL24 SEGMENT="1">
|
||||
<POSNR>1</POSNR>
|
||||
<WERKS>7321609000141</WERKS>
|
||||
<LIFIMG>3</LIFIMG>
|
||||
<EAN11>7325868116995</EAN11>
|
||||
<POSEX>1</POSEX>
|
||||
</E1EDL24>
|
||||
</E1EDL20>
|
||||
</IDOC>
|
||||
</DELVRY07>
|
||||
@@ -1,149 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Message>
|
||||
<XMLDESADV>
|
||||
<XMLDESADVHEADER>
|
||||
<DocumentId>0180001368_00000000008000009999</DocumentId>
|
||||
<DeliveryNote>0180001368</DeliveryNote>
|
||||
<DocumentType>XMLDESADV</DocumentType>
|
||||
<DocumentSubType>DESADV_IBT</DocumentSubType>
|
||||
<DocumentDate>2023-12-15T00:00:00.0000000+01:00</DocumentDate>
|
||||
<DeliveryDate>2024-04-20T00:00:00.0000000+01:00</DeliveryDate>
|
||||
<ReferenceSupplierOrder />
|
||||
<ReferenceBuyerOrder />
|
||||
<ReferenceDocument />
|
||||
<AllocationReference />
|
||||
<SenderGLN />
|
||||
<ReceipientGLN />
|
||||
<SupplierGLN />
|
||||
<BuyerGLN />
|
||||
<DeliveryPartyGLN />
|
||||
<UltimateConsignyGLN />
|
||||
<ReturnGLN />
|
||||
<SendFromGLN />
|
||||
<SendToGLN />
|
||||
<DeliveryCurrency />
|
||||
</XMLDESADVHEADER>
|
||||
<XMLDESADV />
|
||||
<XMLPACKAGEGROUP>
|
||||
<NumberOfPackages>1</NumberOfPackages>
|
||||
<PackageCode>
|
||||
33E
|
||||
</PackageCode>
|
||||
</XMLPACKAGEGROUP>
|
||||
<XMLSSCCGROUP>
|
||||
<SSCC>8000009999</SSCC>
|
||||
<PackageCode>
|
||||
33E
|
||||
</PackageCode>
|
||||
<PackageType>
|
||||
BJ
|
||||
</PackageType>
|
||||
<XMLITEMS>
|
||||
<PositionNumber>000010</PositionNumber>
|
||||
<GTIN>2050000202162</GTIN>
|
||||
<DeliveredQuantity>2.000</DeliveredQuantity>
|
||||
<QuantityQualifier>12</QuantityQualifier>
|
||||
<DeliveryPrice />
|
||||
<ReferenceSupplierOrder>5510000470</ReferenceSupplierOrder>
|
||||
<ReferenceBuyerOrder />
|
||||
</XMLITEMS>
|
||||
<XMLITEMS>
|
||||
<PositionNumber>000020</PositionNumber>
|
||||
<GTIN>2050000202186</GTIN>
|
||||
<DeliveredQuantity>1.000</DeliveredQuantity>
|
||||
<QuantityQualifier>12</QuantityQualifier>
|
||||
<DeliveryPrice />
|
||||
<ReferenceSupplierOrder>5510000470</ReferenceSupplierOrder>
|
||||
<ReferenceBuyerOrder />
|
||||
</XMLITEMS>
|
||||
<XMLITEMS>
|
||||
<PositionNumber>000030</PositionNumber>
|
||||
<GTIN>2050000202209</GTIN>
|
||||
<DeliveredQuantity>1.000</DeliveredQuantity>
|
||||
<QuantityQualifier>12</QuantityQualifier>
|
||||
<DeliveryPrice />
|
||||
<ReferenceSupplierOrder>5510000470</ReferenceSupplierOrder>
|
||||
<ReferenceBuyerOrder />
|
||||
<XMLEPC>
|
||||
<EPC>111111111111111</EPC>
|
||||
</XMLEPC>
|
||||
<XMLEPC>
|
||||
<EPC>222222222222222</EPC>
|
||||
</XMLEPC>
|
||||
</XMLITEMS>
|
||||
</XMLSSCCGROUP>
|
||||
</XMLDESADV>
|
||||
<XMLDESADV>
|
||||
<XMLDESADVHEADER>
|
||||
<DocumentId>0180001368_00000000008000002256</DocumentId>
|
||||
<DeliveryNote>0180001368</DeliveryNote>
|
||||
<DocumentType>XMLDESADV</DocumentType>
|
||||
<DocumentSubType>DESADV_IBT</DocumentSubType>
|
||||
<DocumentDate>2023-12-15T00:00:00.0000000+01:00</DocumentDate>
|
||||
<DeliveryDate>2024-04-20T00:00:00.0000000+01:00</DeliveryDate>
|
||||
<ReferenceSupplierOrder />
|
||||
<ReferenceBuyerOrder />
|
||||
<ReferenceDocument />
|
||||
<AllocationReference />
|
||||
<SenderGLN />
|
||||
<ReceipientGLN />
|
||||
<SupplierGLN />
|
||||
<BuyerGLN />
|
||||
<DeliveryPartyGLN />
|
||||
<UltimateConsignyGLN />
|
||||
<ReturnGLN />
|
||||
<SendFromGLN />
|
||||
<SendToGLN />
|
||||
<DeliveryCurrency />
|
||||
</XMLDESADVHEADER>
|
||||
<XMLDESADV />
|
||||
<XMLPACKAGEGROUP>
|
||||
<NumberOfPackages>1</NumberOfPackages>
|
||||
<PackageCode>
|
||||
33E
|
||||
</PackageCode>
|
||||
</XMLPACKAGEGROUP>
|
||||
<XMLSSCCGROUP>
|
||||
<SSCC>8000002256</SSCC>
|
||||
<PackageCode>
|
||||
33E
|
||||
</PackageCode>
|
||||
<PackageType>
|
||||
BJ
|
||||
</PackageType>
|
||||
<XMLITEMS>
|
||||
<PositionNumber>000010</PositionNumber>
|
||||
<GTIN>2050000202162</GTIN>
|
||||
<DeliveredQuantity>2.000</DeliveredQuantity>
|
||||
<QuantityQualifier>12</QuantityQualifier>
|
||||
<DeliveryPrice />
|
||||
<ReferenceSupplierOrder>5510000470</ReferenceSupplierOrder>
|
||||
<ReferenceBuyerOrder />
|
||||
</XMLITEMS>
|
||||
<XMLITEMS>
|
||||
<PositionNumber>000020</PositionNumber>
|
||||
<GTIN>2050000202186</GTIN>
|
||||
<DeliveredQuantity>1.000</DeliveredQuantity>
|
||||
<QuantityQualifier>12</QuantityQualifier>
|
||||
<DeliveryPrice />
|
||||
<ReferenceSupplierOrder>5510000470</ReferenceSupplierOrder>
|
||||
<ReferenceBuyerOrder />
|
||||
</XMLITEMS>
|
||||
<XMLITEMS>
|
||||
<PositionNumber>000030</PositionNumber>
|
||||
<GTIN>2050000202209</GTIN>
|
||||
<DeliveredQuantity>1.000</DeliveredQuantity>
|
||||
<QuantityQualifier>12</QuantityQualifier>
|
||||
<DeliveryPrice />
|
||||
<ReferenceSupplierOrder>5510000470</ReferenceSupplierOrder>
|
||||
<ReferenceBuyerOrder />
|
||||
<XMLEPC>
|
||||
<EPC>111111111111111</EPC>
|
||||
</XMLEPC>
|
||||
<XMLEPC>
|
||||
<EPC>222222222222222</EPC>
|
||||
</XMLEPC>
|
||||
</XMLITEMS>
|
||||
</XMLSSCCGROUP>
|
||||
</XMLDESADV>
|
||||
</Message>
|
||||
@@ -1,55 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Message>
|
||||
<XMLDESADV>
|
||||
<XMLDESADVHEADER>
|
||||
<DocumentId>0180001585_00000000001000003539</DocumentId>
|
||||
<DeliveryNote>0180001585</DeliveryNote>
|
||||
<DocumentType>XMLDESADV</DocumentType>
|
||||
<DocumentSubType>DESADV_IBT</DocumentSubType>
|
||||
<DocumentDate>2024-01-09T00:00:00.0000000+01:00</DocumentDate>
|
||||
<DeliveryDate>2024-01-10T11:00:00.0000000+01:00</DeliveryDate>
|
||||
<ReferenceSupplierOrder/>
|
||||
<ReferenceBuyerOrder/>
|
||||
<ReferenceDocument/>
|
||||
<AllocationReference/>
|
||||
<SenderGLN/>
|
||||
<ReceipientGLN/>
|
||||
<SupplierGLN/>
|
||||
<BuyerGLN/>
|
||||
<DeliveryPartyGLN/>
|
||||
<UltimateConsignyGLN/>
|
||||
<ReturnGLN/>
|
||||
<SendFromGLN/>
|
||||
<SendToGLN/>
|
||||
<DeliveryCurrency/>
|
||||
</XMLDESADVHEADER>
|
||||
<XMLDESADV/>
|
||||
<XMLPACKAGEGROUP>
|
||||
<NumberOfPackages>1</NumberOfPackages>
|
||||
<PackageCode>33E</PackageCode>
|
||||
</XMLPACKAGEGROUP>
|
||||
<XMLSSCCGROUP>
|
||||
<SSCC>1000003539</SSCC>
|
||||
<PackageCode>33E</PackageCode>
|
||||
<PackageType>BJ</PackageType>
|
||||
<XMLITEMS>
|
||||
<PositionNumber>000010</PositionNumber>
|
||||
<GTIN>2050000024177</GTIN>
|
||||
<DeliveredQuantity>1.000</DeliveredQuantity>
|
||||
<QuantityQualifier>12</QuantityQualifier>
|
||||
<DeliveryPrice/>
|
||||
<ReferenceSupplierOrder>5400000531</ReferenceSupplierOrder>
|
||||
<ReferenceBuyerOrder/>
|
||||
</XMLITEMS>
|
||||
<XMLITEMS>
|
||||
<PositionNumber>000020</PositionNumber>
|
||||
<GTIN>2050000024184</GTIN>
|
||||
<DeliveredQuantity>1.000</DeliveredQuantity>
|
||||
<QuantityQualifier>12</QuantityQualifier>
|
||||
<DeliveryPrice/>
|
||||
<ReferenceSupplierOrder>5400000531</ReferenceSupplierOrder>
|
||||
<ReferenceBuyerOrder/>
|
||||
</XMLITEMS>
|
||||
</XMLSSCCGROUP>
|
||||
</XMLDESADV>
|
||||
</Message>
|
||||
@@ -1,53 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Message>
|
||||
<XMLDESADV>
|
||||
<XMLDESADVHEADER>
|
||||
<DocumentId>0180001643</DocumentId>
|
||||
<DeliveryNote />
|
||||
<DocumentType>XMLDESADV</DocumentType>
|
||||
<DocumentSubType>DESADV_IBT</DocumentSubType>
|
||||
<DocumentDate>2024-01-11T00:00:00.0000000+01:00</DocumentDate>
|
||||
<DeliveryDate>2024-01-15T00:00:00.0000000+01:00</DeliveryDate>
|
||||
<ReferenceSupplierOrder />
|
||||
<ReferenceBuyerOrder />
|
||||
<ReferenceDocument />
|
||||
<AllocationReference />
|
||||
<SenderGLN />
|
||||
<ReceipientGLN />
|
||||
<SupplierGLN />
|
||||
<BuyerGLN />
|
||||
<DeliveryPartyGLN />
|
||||
<UltimateConsignyGLN />
|
||||
<ReturnGLN />
|
||||
<SendFromGLN />
|
||||
<SendToGLN />
|
||||
<DeliveryCurrency />
|
||||
</XMLDESADVHEADER>
|
||||
<XMLDESADV />
|
||||
<XMLPACKAGEGROUP>
|
||||
<NumberOfPackages>1</NumberOfPackages>
|
||||
<PackageCode>33E</PackageCode>
|
||||
</XMLPACKAGEGROUP>
|
||||
<XMLSSCCGROUP>
|
||||
<SSCC>0180001643</SSCC>
|
||||
<PackageCode>33E</PackageCode>
|
||||
<PackageType>BJ</PackageType>
|
||||
<XMLITEMS>
|
||||
<PositionNumber>000010</PositionNumber>
|
||||
<GTIN>2050000024184</GTIN>
|
||||
<DeliveredQuantity>1.000</DeliveredQuantity>
|
||||
<QuantityQualifier>12</QuantityQualifier>
|
||||
<DeliveryPrice />
|
||||
<ReferenceSupplierOrder>5400000536</ReferenceSupplierOrder>
|
||||
</XMLITEMS>
|
||||
<XMLITEMS>
|
||||
<PositionNumber>000010</PositionNumber>
|
||||
<GTIN>2050000024184</GTIN>
|
||||
<DeliveredQuantity>1.000</DeliveredQuantity>
|
||||
<QuantityQualifier>12</QuantityQualifier>
|
||||
<DeliveryPrice />
|
||||
<ReferenceSupplierOrder>5400000536</ReferenceSupplierOrder>
|
||||
</XMLITEMS>
|
||||
</XMLSSCCGROUP>
|
||||
</XMLDESADV>
|
||||
</Message>
|
||||
@@ -1,50 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<XMLRECADV>
|
||||
<XMLRECADVHEADER>
|
||||
<DocumentId>0180001643</DocumentId>
|
||||
<DeliveryNote/>
|
||||
<DocumentType>XMLRECADV</DocumentType>
|
||||
<DocumentSubType>RECADV_IBT</DocumentSubType>
|
||||
<DocumentDate>2024-01-11T00:00:00.0000000+01:00</DocumentDate>
|
||||
<DeliveryDate>2024-01-15T00:00:00.0000000+01:00</DeliveryDate>
|
||||
<ReferenceSupplierOrder/>
|
||||
<ReferenceBuyerOrder/>
|
||||
<ReferenceDocument>0180001643</ReferenceDocument>
|
||||
<AllocationReference/>
|
||||
<SenderGLN/>
|
||||
<ReceipientGLN/>
|
||||
<SupplierGLN/>
|
||||
<BuyerGLN/>
|
||||
<DeliveryPartyGLN/>
|
||||
<UltimateConsignyGLN/>
|
||||
<ReturnGLN/>
|
||||
<SendFromGLN/>
|
||||
<SendToGLN/>
|
||||
<DeliveryCurrency/>
|
||||
</XMLRECADVHEADER>
|
||||
<XMLDESADV/>
|
||||
<XMLRECADVPACKAGEGROUP>
|
||||
<NumberOfPackages>1</NumberOfPackages>
|
||||
<PackageCode>
|
||||
33E
|
||||
</PackageCode>
|
||||
</XMLRECADVPACKAGEGROUP>
|
||||
<XMLRECADVSSCCGROUP>
|
||||
<SSCC>0180001643</SSCC>
|
||||
<PackageCode>
|
||||
33E
|
||||
</PackageCode>
|
||||
<PackageType>
|
||||
BJ
|
||||
</PackageType>
|
||||
<XMLRECADVITEMS>
|
||||
<PositionNumber>000010</PositionNumber>
|
||||
<GTIN>2050000024184</GTIN>
|
||||
<DeliveredQuantity>1.000</DeliveredQuantity>
|
||||
<QuantityQualifier>12</QuantityQualifier>
|
||||
<DeliveryPrice/>
|
||||
<ReferenceSupplierOrder>5400000536</ReferenceSupplierOrder>
|
||||
<ReferenceBuyerOrder/>
|
||||
</XMLRECADVITEMS>
|
||||
</XMLRECADVSSCCGROUP>
|
||||
</XMLRECADV>
|
||||
@@ -1,41 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<DELVRY07>
|
||||
<IDOC BEGIN="1">
|
||||
<EDI_DC40 SEGMENT="1">
|
||||
<TABNAM>EDI_DC40</TABNAM>
|
||||
<MANDT>100</MANDT>
|
||||
<DIRECT>2</DIRECT>
|
||||
<OUTMOD/>
|
||||
<DOCNUM/>
|
||||
<IDOCTYP>DELVRY07</IDOCTYP>
|
||||
<MESTYP>WHSCON</MESTYP>
|
||||
<MESCOD>WE</MESCOD>
|
||||
<STDMES>DESADV</STDMES>
|
||||
<SNDPOR>EBISS</SNDPOR>
|
||||
<SNDPRT>LS</SNDPRT>
|
||||
<SNDPRN>SYSPRO</SNDPRN>
|
||||
<RCVPOR>SAPS4Q</RCVPOR>
|
||||
<RCVPRT>LS</RCVPRT>
|
||||
<RCVPFC>LS</RCVPFC>
|
||||
<RCVPRN>S4QCLNT100</RCVPRN>
|
||||
<RCVLAD/>
|
||||
<CREDAT/>
|
||||
<CRETIM/>
|
||||
<SERIAL>2024-01-26T11:08:47.57+01:00</SERIAL>
|
||||
</EDI_DC40>
|
||||
<E1EDL20 SEGMENT="1">
|
||||
<TRAID/>
|
||||
<VBELN/>
|
||||
<E1EDL18 SEGMENT="1">
|
||||
<QUALF>PGI</QUALF>
|
||||
</E1EDL18>
|
||||
<E1EDL24 SEGMENT="1">
|
||||
<POSNR>1</POSNR>
|
||||
<WERKS/>
|
||||
<LIFIMG/>
|
||||
<EAN11>2050000024184</EAN11>
|
||||
<POSEX>000010</POSEX>
|
||||
</E1EDL24>
|
||||
</E1EDL20>
|
||||
</IDOC>
|
||||
</DELVRY07>
|
||||
-21686
File diff suppressed because it is too large
Load Diff
@@ -1,51 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<WVINVE03>
|
||||
<IDOC BEGIN="1">
|
||||
<EDI_DC40 SEGMENT="1">
|
||||
<TABNAM>EDI_DC40</TABNAM>
|
||||
<MANDT/>
|
||||
<DOCNUM/>
|
||||
<DOCREL/>
|
||||
<STATUS/>
|
||||
<MESCOD/>
|
||||
<DIRECT>2</DIRECT>
|
||||
<OUTMOD/>
|
||||
<IDOCTYP>WVINVE03</IDOCTYP>
|
||||
<MESTYP>WVINVE</MESTYP>
|
||||
<SNDPOR>PO</SNDPOR>
|
||||
<SNDPRT>KU</SNDPRT>
|
||||
<SNDPRN/>
|
||||
<RCVPOR>SAP ?</RCVPOR>
|
||||
<RCVPRT>LS</RCVPRT>
|
||||
<RCVPFC/>
|
||||
<RCVPRN/>
|
||||
<SNDLAD>1032</SNDLAD>
|
||||
<RCVLAD/>
|
||||
<CREDAT>20240212</CREDAT>
|
||||
<CRETIM>19:20:02</CRETIM>
|
||||
<SERIAL>2024-02-12T10:31:07.782+01:00</SERIAL>
|
||||
</EDI_DC40>
|
||||
<E1WVINH SEGMENT="1">
|
||||
<LGORT>1000</LGORT>
|
||||
<XBLNI>ae13299d40e343d78ec3aa5d1d54e157</XBLNI>
|
||||
<IBLNR/>
|
||||
<XBLNI/>
|
||||
<DDATE>20240212</DDATE>
|
||||
<DTIME>17:59:02</DTIME>
|
||||
<FILIALE>1032</FILIALE>
|
||||
<INVNU/>
|
||||
<E1WVINI SEGMENT="1">
|
||||
<QUALARTNR>003</QUALARTNR>
|
||||
<ZEILI>29</ZEILI>
|
||||
<ARTNR>2050000474095</ARTNR>
|
||||
<ERFMG>3</ERFMG>
|
||||
</E1WVINI>
|
||||
<E1WVINI SEGMENT="1">
|
||||
<QUALARTNR>003</QUALARTNR>
|
||||
<ZEILI>30</ZEILI>
|
||||
<ARTNR>2050000474101</ARTNR>
|
||||
<ERFMG>5</ERFMG>
|
||||
</E1WVINI>
|
||||
</E1WVINH>
|
||||
</IDOC>
|
||||
</WVINVE03>
|
||||
@@ -1,51 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<WVINVE03>
|
||||
<IDOC BEGIN="1">
|
||||
<EDI_DC40 SEGMENT="1">
|
||||
<TABNAM>EDI_DC40</TABNAM>
|
||||
<MANDT/>
|
||||
<DOCNUM/>
|
||||
<DOCREL/>
|
||||
<STATUS/>
|
||||
<MESCOD/>
|
||||
<DIRECT>2</DIRECT>
|
||||
<OUTMOD/>
|
||||
<IDOCTYP>WVINVE03</IDOCTYP>
|
||||
<MESTYP>WVINVE</MESTYP>
|
||||
<SNDPOR>PO</SNDPOR>
|
||||
<SNDPRT>KU</SNDPRT>
|
||||
<SNDPRN>1032</SNDPRN>
|
||||
<RCVPOR/>
|
||||
<RCVPRT>LS</RCVPRT>
|
||||
<RCVPFC/>
|
||||
<RCVPRN>SAP</RCVPRN>
|
||||
<SNDLAD>1032</SNDLAD>
|
||||
<RCVLAD/>
|
||||
<CREDAT>20240212</CREDAT>
|
||||
<CRETIM>19:20:02</CRETIM>
|
||||
<SERIAL>2024-02-13T15:09:29.396+01:00</SERIAL>
|
||||
</EDI_DC40>
|
||||
<E1WVINH SEGMENT="1">
|
||||
<LGORT>1000</LGORT>
|
||||
<XBLNI>ae13299d40e343d78ec3aa5d1d54e157</XBLNI>
|
||||
<IBLNR/>
|
||||
<DDATE>20240212</DDATE>
|
||||
<DTIME>175902</DTIME>
|
||||
<FILIALE>1032</FILIALE>
|
||||
<INVNU/>
|
||||
<E1WVINI SEGMENT="1">
|
||||
<QUALARTNR>003</QUALARTNR>
|
||||
<ZEILI>29</ZEILI>
|
||||
<ARTNR>2050000474095</ARTNR>
|
||||
<ERFMG>3</ERFMG>
|
||||
</E1WVINI>
|
||||
<E1WVINI SEGMENT="1">
|
||||
<QUALARTNR>003</QUALARTNR>
|
||||
<ZEILI>30</ZEILI>
|
||||
<ARTNR>2050000474101</ARTNR>
|
||||
<ERFMG>0</ERFMG>
|
||||
<XNULL>X</XNULL>
|
||||
</E1WVINI>
|
||||
</E1WVINH>
|
||||
</IDOC>
|
||||
</WVINVE03>
|
||||
@@ -1,242 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- 22.12.2023 DEV-8311 SAP sends delivery advices to stores MAPPING: SOURCE
|
||||
- SAP ZFSHDLV TARGET - syspro internal Format -->
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
exclude-result-prefixes="xs">
|
||||
<xsl:output method="xml" omit-xml-declaration="no"
|
||||
indent="yes" />
|
||||
<xsl:strip-space elements="*" />
|
||||
<xsl:template match="/" name="DELIVERY">
|
||||
<Message>
|
||||
<xsl:apply-templates />
|
||||
</Message>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="/ZFSHDLV/IDOC">
|
||||
<xsl:if test="./E1EDL20/E1EDL37">
|
||||
<xsl:call-template name="HandlingUnit" />
|
||||
</xsl:if>
|
||||
<xsl:if test="not(./E1EDL20/E1EDL37)">
|
||||
<xsl:call-template name="WithOutHandlingUnits" />
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="Message">
|
||||
<xsl:param name="CASE" />
|
||||
<xsl:param name="ID" />
|
||||
<xsl:param name="SSCCID" />
|
||||
<xsl:param name="POSITIONS" />
|
||||
<!-- START: local variable declaration -->
|
||||
<xsl:variable name="PackageCode">
|
||||
<xsl:copy>
|
||||
33E
|
||||
</xsl:copy>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="PackageType">
|
||||
<xsl:copy>
|
||||
BJ
|
||||
</xsl:copy>
|
||||
</xsl:variable>
|
||||
<!-- END: local variable declaration -->
|
||||
<XMLDESADV>
|
||||
<XMLDESADVHEADER>
|
||||
<DocumentId>
|
||||
<xsl:value-of select="$ID" />
|
||||
</DocumentId>
|
||||
<DeliveryNote>
|
||||
<xsl:value-of select="../VBELN" />
|
||||
</DeliveryNote>
|
||||
<DocumentType>
|
||||
<xsl:call-template name="DocumentType">
|
||||
<xsl:with-param name="DocumentType">
|
||||
<xsl:copy>
|
||||
DEV-8311
|
||||
</xsl:copy>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</DocumentType>
|
||||
<DocumentSubType>
|
||||
<xsl:call-template name="DocumentSubType">
|
||||
<xsl:with-param name="LFART">
|
||||
<xsl:value-of select="../E1EDL21/LFART" />
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</DocumentSubType>
|
||||
<DocumentDate>
|
||||
<xsl:value-of
|
||||
select="format-dateTime(adjust-dateTime-to-timezone(xs:dateTime(concat(
|
||||
substring(/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='015']/NTANF,1,4),
|
||||
'-',
|
||||
substring(/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='015']/NTANF,5,2),
|
||||
'-',
|
||||
substring(/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='015']/NTANF,7,2),
|
||||
'T',
|
||||
substring(/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='015']/NTANZ,1,2),
|
||||
':',
|
||||
substring(/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='015']/NTANZ,3,2),
|
||||
':',
|
||||
substring(/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='015']/NTANZ,5,2)))),
|
||||
'[Y0000]-[M00]-[D00]T[H00]:[m00]:[s00].[f0000000][Z]')" />
|
||||
</DocumentDate>
|
||||
<DeliveryDate>
|
||||
<xsl:value-of
|
||||
select="format-dateTime(adjust-dateTime-to-timezone(xs:dateTime(concat(
|
||||
substring(/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='007']/NTANF,1,4),
|
||||
'-',
|
||||
substring(/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='007']/NTANF,5,2),
|
||||
'-',
|
||||
substring(/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='007']/NTANF,7,2),
|
||||
'T',
|
||||
substring(/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='007']/NTANZ,1,2),
|
||||
':',
|
||||
substring(/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='007']/NTANZ,3,2),
|
||||
':',
|
||||
substring(/ZFSHDLV/IDOC/E1EDL20/E1EDT13[QUALF='007']/NTANZ,5,2)))),
|
||||
'[Y0000]-[M00]-[D00]T[H00]:[m00]:[s00].[f0000000][Z]')" />
|
||||
</DeliveryDate>
|
||||
<ReferenceSupplierOrder />
|
||||
<ReferenceBuyerOrder />
|
||||
<ReferenceDocument>
|
||||
<xsl:value-of select="$ID" />
|
||||
</ReferenceDocument>
|
||||
<AllocationReference />
|
||||
<SenderGLN></SenderGLN>
|
||||
<ReceipientGLN></ReceipientGLN>
|
||||
<SupplierGLN></SupplierGLN>
|
||||
<BuyerGLN></BuyerGLN>
|
||||
<DeliveryPartyGLN></DeliveryPartyGLN>
|
||||
<UltimateConsignyGLN></UltimateConsignyGLN>
|
||||
<ReturnGLN />
|
||||
<SendFromGLN />
|
||||
<SendToGLN />
|
||||
<DeliveryCurrency></DeliveryCurrency>
|
||||
</XMLDESADVHEADER>
|
||||
<XMLDESADV>
|
||||
</XMLDESADV>
|
||||
<XMLPACKAGEGROUP>
|
||||
<NumberOfPackages>
|
||||
<xsl:choose>
|
||||
<xsl:when
|
||||
test="format-number(/ZFSHDLV/IDOC/E1EDL20/ANZPK,'#') > 0 ">
|
||||
<xsl:value-of
|
||||
select="format-number(/ZFSHDLV/IDOC/E1EDL20/ANZPK,'#')" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:copy-of select="1" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
</NumberOfPackages>
|
||||
<PackageCode>
|
||||
<xsl:value-of select="$PackageCode" />
|
||||
</PackageCode>
|
||||
</XMLPACKAGEGROUP>
|
||||
<XMLSSCCGROUP>
|
||||
<SSCC>
|
||||
<xsl:value-of select="$SSCCID" />
|
||||
</SSCC>
|
||||
<PackageCode>
|
||||
<xsl:value-of select="$PackageCode" />
|
||||
</PackageCode>
|
||||
<PackageType>
|
||||
<xsl:value-of select="$PackageType" />
|
||||
</PackageType>
|
||||
<xsl:copy-of select="$POSITIONS" />
|
||||
</XMLSSCCGROUP>
|
||||
</XMLDESADV>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="WithOutHandlingUnits">
|
||||
<xsl:variable name="POSITIONS">
|
||||
<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="./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 />
|
||||
</XMLITEMS>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:call-template name="Message">
|
||||
<xsl:with-param name="CASE" select="'NoHandlingUnit'" />
|
||||
<xsl:with-param name="ID" select="./E1EDL20/VBELN" />
|
||||
<xsl:with-param name="SSCCID" select="./E1EDL20/VBELN" />
|
||||
<xsl:with-param name="POSITIONS" select="$POSITIONS" />
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="HandlingUnit">
|
||||
<xsl:for-each select="./E1EDL20/E1EDL37"> <!-- Looping over all E1EDL37 segments and create a new message -->
|
||||
<xsl:variable name="POSITIONS">
|
||||
<xsl:for-each select="./E1EDL44">
|
||||
<xsl:variable name="position" select="./POSNR" />
|
||||
<XMLITEMS>
|
||||
<PositionNumber>
|
||||
<xsl:value-of select="$position" />
|
||||
</PositionNumber>
|
||||
<GTIN>
|
||||
<xsl:value-of
|
||||
select="../../E1EDL24[POSNR = $position]/EAN11" />
|
||||
</GTIN>
|
||||
<DeliveredQuantity>
|
||||
<xsl:value-of
|
||||
select="../../E1EDL24[POSNR = $position]/LGMNG" />
|
||||
</DeliveredQuantity>
|
||||
<QuantityQualifier>
|
||||
<xsl:call-template name="QuantityQualifier">
|
||||
<xsl:with-param name="UoM">
|
||||
<xsl:value-of
|
||||
select="../../E1EDL24[POSNR = $position]/MEINS" />
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</QuantityQualifier>
|
||||
<DeliveryPrice></DeliveryPrice>
|
||||
<ReferenceSupplierOrder>
|
||||
<xsl:value-of
|
||||
select="../../E1EDL24[POSNR = $position]/VGBEL" />
|
||||
</ReferenceSupplierOrder>
|
||||
<ReferenceBuyerOrder />
|
||||
<xsl:if test="exists(./E1EPC03)">
|
||||
<xsl:for-each select="./E1EPC03">
|
||||
<XMLEPC>
|
||||
<EPC>
|
||||
<xsl:value-of select="./EPC" />
|
||||
</EPC>
|
||||
</XMLEPC>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</XMLITEMS>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:call-template name="Message">
|
||||
<xsl:with-param name="CASE" select="'HandlingUnit'" />
|
||||
<xsl:with-param name="ID"
|
||||
select="concat(../VBELN,'_',./EXIDV)" />
|
||||
<xsl:with-param name="SSCCID"
|
||||
select="format-number(./EXIDV,'#')" />
|
||||
<xsl:with-param name="POSITIONS" select="$POSITIONS" />
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
<xsl:include href="./valueMaps2.xsl" />
|
||||
</xsl:stylesheet>
|
||||
@@ -1,70 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="2.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
|
||||
<xsl:template name="DocumentType">
|
||||
<xsl:param name="DocumentType" />
|
||||
<xsl:choose>
|
||||
<xsl:when test="'DEV-8311'">
|
||||
<xsl:value-of select="'XMLDESADV'" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="' '" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
<xsl:template name="DocumentSubType">
|
||||
<xsl:param name="LFART" />
|
||||
<xsl:choose>
|
||||
<xsl:when test="'ZIL'">
|
||||
<xsl:value-of select="'DESADV_IBT'" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="'DESADV_GI'" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="QuantityQualifier">
|
||||
<xsl:param name="UoM" />
|
||||
<xsl:choose>
|
||||
<xsl:when test="'PCE'">
|
||||
<xsl:value-of select="'12'" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="'999'" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="EDI_DC40-8309">
|
||||
<EDI_DC40>
|
||||
<xsl:attribute name="SEGMENT"><xsl:copy-of select="1"/> </xsl:attribute>
|
||||
<TABNAM>EDI_DC40</TABNAM>
|
||||
<MANDT>100</MANDT>
|
||||
<DIRECT>2</DIRECT>
|
||||
<OUTMOD></OUTMOD>
|
||||
<DOCNUM></DOCNUM>
|
||||
<IDOCTYP>DELVRY07</IDOCTYP>
|
||||
<MESTYP>WHSCON</MESTYP>
|
||||
<MESCOD>WE</MESCOD>
|
||||
<STDMES>DESADV</STDMES>
|
||||
<SNDPOR>EBISS</SNDPOR> <!-- change to Syspro -->
|
||||
<SNDPRT>LS</SNDPRT>
|
||||
<SNDPRN>SYSPRO</SNDPRN>
|
||||
<RCVPOR>SAPS4Q</RCVPOR>
|
||||
<RCVPRT>LS</RCVPRT>
|
||||
<RCVPFC>LS</RCVPFC>
|
||||
<RCVPRN>S4QCLNT100</RCVPRN>
|
||||
<RCVLAD></RCVLAD>
|
||||
<CREDAT></CREDAT>
|
||||
<CRETIM></CRETIM>
|
||||
<SERIAL><xsl:value-of select="current-dateTime()"/></SERIAL>
|
||||
</EDI_DC40>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="Qualifier-8309">
|
||||
<xsl:value-of select="'PGI'" />
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@@ -1,70 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- 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"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
exclude-result-prefixes="xs">
|
||||
<xsl:output method="xml" omit-xml-declaration="no"
|
||||
indent="yes" />
|
||||
<xsl:strip-space elements="*" />
|
||||
|
||||
<xsl:template match="/Message">
|
||||
<xsl:apply-templates select="@*|node()" />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="@*|child::node()">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="@*|node()" />
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="/Message/XMLDESADV">
|
||||
<XMLRECADV>
|
||||
<xsl:apply-templates select="@*|node()" />
|
||||
</XMLRECADV>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="/Message/XMLDESADV/XMLDESADVHEADER">
|
||||
<XMLRECADVHEADER>
|
||||
<xsl:apply-templates select="@*|node()" />
|
||||
</XMLRECADVHEADER>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="/Message/XMLDESADV/XMLDESADVHEADER/DocumentType">
|
||||
<DocumentType>XMLRECADV</DocumentType>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:param name="documentSubType"><xsl:value-of select="/Message/XMLDESADV/XMLDESADVHEADER/DocumentSubType"/></xsl:param>
|
||||
<xsl:template match="/Message/XMLDESADV/XMLDESADVHEADER/DocumentSubType">
|
||||
<DocumentSubType>RECADV_<xsl:value-of
|
||||
select="substring-after($documentSubType,'_')" /></DocumentSubType>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="/Message/XMLDESADV/XMLPACKAGEGROUP">
|
||||
<XMLRECADVPACKAGEGROUP>
|
||||
<xsl:apply-templates select="@*|node()" />
|
||||
</XMLRECADVPACKAGEGROUP>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="/Message/XMLDESADV/XMLSSCCGROUP">
|
||||
<XMLRECADVSSCCGROUP>
|
||||
<xsl:apply-templates select="@*|node()" />
|
||||
</XMLRECADVSSCCGROUP>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="/Message/XMLDESADV/XMLSSCCGROUP/XMLITEMS">
|
||||
<XMLRECADVITEMS>
|
||||
<xsl:apply-templates select="@*|node()" />
|
||||
</XMLRECADVITEMS>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="/Message/XMLDESADV/XMLSSCCGROUP/XMLITEMS/XMLEPC">
|
||||
<XMLRECADVITEMS>
|
||||
<xsl:apply-templates select="@*|node()" />
|
||||
</XMLRECADVITEMS>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
@@ -1,91 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="2.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
exclude-result-prefixes="xs">
|
||||
<xsl:output method="xml" omit-xml-declaration="no"
|
||||
indent="yes" />
|
||||
<xsl:strip-space elements="*" />
|
||||
|
||||
<xsl:template name="PHYSICAL_INVENTORY" match="/">
|
||||
<WVINVE03>
|
||||
<IDOC>
|
||||
<xsl:attribute name="BEGIN"><xsl:value-of
|
||||
select="1" /></xsl:attribute>
|
||||
<EDI_DC40>
|
||||
<xsl:attribute name="SEGMENT"><xsl:value-of
|
||||
select="1" /></xsl:attribute>
|
||||
<TABNAM>EDI_DC40</TABNAM>
|
||||
<MANDT></MANDT>
|
||||
<DOCNUM></DOCNUM>
|
||||
<DOCREL></DOCREL>
|
||||
<STATUS></STATUS>
|
||||
<MESCOD></MESCOD>
|
||||
<DIRECT>2</DIRECT>
|
||||
<OUTMOD></OUTMOD>
|
||||
<IDOCTYP>WVINVE03</IDOCTYP>
|
||||
<MESTYP>WVINVE</MESTYP>
|
||||
<SNDPOR>PO</SNDPOR>
|
||||
<SNDPRT>KU</SNDPRT>
|
||||
<SNDPRN><xsl:value-of select="/XMLINVRPT/XMLINVRPTHEADER/SiteGLN"/></SNDPRN>
|
||||
<RCVPOR></RCVPOR>
|
||||
<RCVPRT>LS</RCVPRT>
|
||||
<RCVPFC></RCVPFC>
|
||||
<RCVPRN>SAP</RCVPRN>
|
||||
<SNDLAD>
|
||||
<xsl:value-of
|
||||
select="/XMLINVRPT/XMLINVRPTHEADER/SiteGLN" />
|
||||
</SNDLAD>
|
||||
<RCVLAD></RCVLAD>
|
||||
<CREDAT>
|
||||
<xsl:value-of
|
||||
select="format-dateTime(xs:dateTime(/XMLINVRPT/XMLINVRPTHEADER/DocumentDate),'[Y0000][M00][D00]')" />
|
||||
</CREDAT>
|
||||
<CRETIM>
|
||||
<xsl:value-of
|
||||
select="format-dateTime(xs:dateTime(/XMLINVRPT/XMLINVRPTHEADER/DocumentDate),'[H00]:[m00]:[s00]')" />
|
||||
</CRETIM>
|
||||
<SERIAL>
|
||||
<xsl:value-of select="current-dateTime()" />
|
||||
</SERIAL>
|
||||
</EDI_DC40>
|
||||
<E1WVINH>
|
||||
<xsl:attribute name="SEGMENT"><xsl:value-of
|
||||
select="1" /></xsl:attribute>
|
||||
<LGORT>1000</LGORT>
|
||||
<!-- DocumentId ohne '-' -->
|
||||
<XBLNI><xsl:value-of select="translate(/XMLINVRPT/XMLINVRPTHEADER/DocumentId,'-','')"/></XBLNI>
|
||||
<IBLNR></IBLNR>
|
||||
<DDATE><xsl:value-of
|
||||
select="format-dateTime(xs:dateTime(/XMLINVRPT/XMLINVRPTHEADER/InventoryDate),'[Y0000][M00][D00]')" />
|
||||
</DDATE>
|
||||
|
||||
<!--TODO keine doppelpunkte -->
|
||||
<DTIME><xsl:value-of
|
||||
select="format-dateTime(xs:dateTime(/XMLINVRPT/XMLINVRPTHEADER/InventoryDate),'[H00][m00][s00]')" />
|
||||
</DTIME>
|
||||
<FILIALE><xsl:value-of select="/XMLINVRPT/XMLINVRPTHEADER/SiteGLN"/></FILIALE>
|
||||
<INVNU></INVNU>
|
||||
|
||||
<xsl:for-each select="/XMLINVRPT/XMLINVRPTITEMS/XMLINVRPTITEM">
|
||||
<E1WVINI>
|
||||
<xsl:attribute name="SEGMENT"><xsl:value-of
|
||||
select="1" /></xsl:attribute>
|
||||
<!-- use GTIN -->
|
||||
<QUALARTNR>003</QUALARTNR>
|
||||
<ZEILI><xsl:value-of select="PositionNumber"/></ZEILI>
|
||||
<ARTNR><xsl:value-of select="GTIN"/></ARTNR>
|
||||
<ERFMG><xsl:value-of select="InventoryQuantity"/></ERFMG>
|
||||
|
||||
<xsl:if test="InventoryQuantity = 0">
|
||||
<XNULL>X</XNULL>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
</E1WVINI>
|
||||
</xsl:for-each>
|
||||
</E1WVINH>
|
||||
</IDOC>
|
||||
</WVINVE03>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
@@ -1,18 +0,0 @@
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
|
||||
xmlns:api="http://api.cc.salesapp.apptitude.nl/">
|
||||
|
||||
<!-- Identity template: copy everything as is -->
|
||||
<xsl:template match="node()|@*">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="node()|@*"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Rename elements inside soapenv:Body with the xmlns:api namespace prefix -->
|
||||
<xsl:template match="*">
|
||||
<xsl:element name="{local-name()}">
|
||||
<xsl:apply-templates select="@*|node()"/>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
Reference in New Issue
Block a user