Skip to Content
0
Former Member
Feb 17, 2011 at 03:22 PM

SAP XI - GS1 DespatchAdvice - issue with sh XML prefix tag

95 Views

Hi all,

This concern an outbound scenario for GS1 DespatchAdvice message format.

We have to provide xml message with the sh: prefix tag in the outbound xml file like this :

<?xml version="1.0" encoding="UTF-8"?>

<sh:StandardBusinessDocument xmlns:sh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" xmlns:deliver="urn:ean.ucc:deliver:2" xmlns:eanucc="urn:ean.ucc:2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader ../Schemas/sbdh/StandardBusinessDocumentHeader.xsd urn:ean.ucc:2 ../Schemas/DespatchAdviceProxy.xsd">

<sh:StandardBusinessDocumentHeader>

<sh:HeaderVersion>1.0</sh:HeaderVersion>

<sh:Sender>

<sh:Identifier Authority="EAN.UCC">8654897000024</sh:Identifier>

<sh:ContactInformation>

<sh:Contact>parnter contact info.</sh:Contact>

<sh:ContactTypeIdentifier>Seller</sh:ContactTypeIdentifier>

</sh:ContactInformation>

</sh:Sender>

<sh:Receiver>

I have loaded the xsd as an external definition.

The message is ok, expecting for this <sh: prefix that I was not able to produce..

Here is the message produced by XI :

<?xml version="1.0" encoding="UTF-8"?>

<StandardBusinessDocument

xmlns = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader"

eanucc = "urn:ean.ucc:2"

xsi = "http://www.w3.org/2001/XMLSchema-instance"

schemaLocation = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader ../Schemas/sbdh/StandardBusinessDocumentHeader.xsd urn:ean.ucc:2 ../Schemas/DespatchAdviceProxy.xsd"

deliver = "urn:ean.ucc:deliver:2">

<StandardBusinessDocumentHeader>

<HeaderVersion>1.0</HeaderVersion>

<Sender>

<Identifier Authority = "EAN.UCC">65464689684</Identifier>

<ContactInformation>

<Contact>myParnterSeller</Contact>

<ContactTypeIdentifier>Seller</ContactTypeIdentifier>

</ContactInformation>

</Sender>

<Receiver>

<Identifier Authority = "EAN.UCC">608549819</Identifier>

<ContactInformation>

<Contact>myPartnerBuyer</Contact>

<ContactTypeIdentifier>Buyer</ContactTypeIdentifier>

</ContactInformation>

</Receiver>

<DocumentIdentification>

<Standard>EAN.UCC</Standard>

Any idea how to generate this prefix in the tag ??

We are using SAP XI 3.0 SP19.

Any help is welcome.

Regards,