cancel
Showing results for 
Search instead for 
Did you mean: 

XML TO EDI Converter

0 Kudos
1,108

Hello Folks,

I am facing a problem in outbound flow for XML to EDI converter in CPI. There are no special characters in Payload.

Error :

com.sap.it.rt.edi.exception.EDIHandlerException: Invalid Payload: XML TO EDI CONVERSION cannot process the payload.

Can anyone suggest.

sam_anish1
Participant
0 Kudos

Hi Subhadeep,

Kindly share the XML data thats causing this error so we can have a look and help.

0 Kudos

Hello Anish,

Thanks for your response.

Please find the XML.

<IDOC BEGIN="1">

<EDI_DC40 SEGMENT="1">

<TABNAM>EDI_DC40</TABNAM>

<MANDT>9831415755</MANDT>

<DOCNUM>TestForEDI</DOCNUM>

<DOCREL>702</DOCREL>

<DIRECT>1</DIRECT>

<OUTMOD>2</OUTMOD>

<EXPRSS>123</EXPRSS>

<TEST>1234</TEST>

<IDOCTYP>DELVRY05</IDOCTYP>

<CIMTYP>SAPCPI</CIMTYP>

<MESTYP>DESADV</MESTYP>

<MESCOD>ED0</MESCOD>

<MESFCT>1337470</MESFCT>

<STD>678</STD>

<STDVRS>345</STDVRS>

<STDMES>456</STDMES>

<SNDPOR>LEMDK</SNDPOR>

<SNDPRT>LS</SNDPRT>

<SNDPFC>45678</SNDPFC>

<SNDPRN>0000000088</SNDPRN>

<SNDSAD>12</SNDSAD>

<SNDLAD>Subhadeep</SNDLAD>

<RCVPOR>PARTNERNAME</RCVPOR>

<RCVPRT>LS</RCVPRT>

<RCVPFC>Exuviate</RCVPFC>

<RCVPRN>0000019999</RCVPRN>

<RCVSAD>Philips</RCVSAD>

<RCVLAD>DomesticAppliances</RCVLAD>

<CREDAT>20140416</CREDAT>

<CRETIM>104136</CRETIM>

<REFINT>123</REFINT>

<REFGRP>56</REFGRP>

<REFMES>123</REFMES>

<ARCKEY>34</ARCKEY>

<SERIAL>45</SERIAL>

</EDI_DC40>

<E1EDL20 SEGMENT="1">

<VBELN>0609982227</VBELN>

<VSTEL>0088</VSTEL>

<VKORG>67</VKORG>

<LSTEL>1</LSTEL>

<VKBUR>45</VKBUR>

<LGNUM>78</LGNUM>

<ABLAD>67</ABLAD>

<INCO1>2</INCO1>

<INCO2>6756</INCO2>

<ROUTE>1</ROUTE>

<VSBED>679</VSBED>

<BTGEW>6</BTGEW>

<NTGEW>7</NTGEW>

<GEWEI>6</GEWEI>

<VOLUM>CC</VOLUM>

<VOLEH>67</VOLEH>

<ANZPK>1</ANZPK>

<BOLNR>876</BOLNR>

<TRATY>678</TRATY>

<TRAID>8</TRAID>

<XABLN>7</XABLN>

<LIFEX>7</LIFEX>

<PARID>87</PARID>

<PODAT>8</PODAT>

<POTIM>94</POTIM>

<LOC_SEQ>4</LOC_SEQ>

<HOLD>8</HOLD>

<MAX_ERR_TYPE>1</MAX_ERR_TYPE>

<LE_SCENARIO>78</LE_SCENARIO>

<RECIPIENT_CREATE>2</RECIPIENT_CREATE>

<INCOV>8</INCOV>

<INCO2_L>1</INCO2_L>

<INCO3_L>1</INCO3_L>

<E1EDL22 SEGMENT="1">

<VSTEL_BEZ>CentrallagerKolding</VSTEL_BEZ>

<VKORG_BEZ>LemvighllerAS</VKORG_BEZ>

</E1EDL22>

<E1ADRM1 SEGMENT="1">

<PARTNER_Q>AG</PARTNER_Q>

<PARTNER_ID>0000013584</PARTNER_ID>

<NAME1>BIZbrainsS</NAME1>

<STREET1>Havneparken</STREET1>

<POSTL_COD1>7100</POSTL_COD1>

<CITY1>Vejle</CITY1>

<COUNTRY1>DK</COUNTRY1>

</E1ADRM1>

<E1ADRM1 SEGMENT="1">

<PARTNER_Q>WE</PARTNER_Q>

<PARTNER_ID>15652003</PARTNER_ID>

<NAME1>BIZbrains</NAME1>

<NAME2>Subhadeep</NAME2>

<STREET1>1234</STREET1>

<POSTL_COD1>44000</POSTL_COD1>

<CITY1>Roskilde</CITY1>

<COUNTRY1>DK</COUNTRY1>

</E1ADRM1>

<E1ADRM1 SEGMENT="1">

<PARTNER_Q>OSP</PARTNER_Q>

<PARTNER_ID>0000000088</PARTNER_ID>

<NAME1>Lemvigh</NAME1>

<NAME2>CentrallagerKolding</NAME2>

<STREET1>Nordager1</STREET1>

<POSTL_COD1>6000</POSTL_COD1>

<CITY1>Kolding</CITY1>

<COUNTRY1>DK</COUNTRY1>

</E1ADRM1>

<E1ADRM1 SEGMENT="1">

<PARTNER_Q>SP</PARTNER_Q>

<NAME1>SP</NAME1>

</E1ADRM1>

<E1EDT13 SEGMENT="1">

<QUALF>007</QUALF>

<NTANF>20140422</NTANF>

<NTANZ>104136</NTANZ>

<TZONE_BEG>CET</TZONE_BEG>

</E1EDT13>

<E1EDL24 SEGMENT="1">

<POSNR>000010</POSNR>

<MATNR>4322808910</MATNR>

<ARKTX>BB</ARKTX>

<ORKTX>BB</ORKTX>

<WERKS>0088</WERKS>

<KDMAT>82655</KDMAT>

<LFIMG>10000</LFIMG>

<VRKME>SET</VRKME>

<EAN11>5708421089103</EAN11>

<VGBEL>0408572229</VGBEL>

<E1EDL43 SEGMENT="1">

<QUALF>C</QUALF>

<BELNR>0408572229</BELNR>

<POSNR>000010</POSNR>

<DATUM>20140422</DATUM>

</E1EDL43>

<E1EDL41 SEGMENT="1">

<QUALI>001</QUALI>

<BSTNR>0000097065</BSTNR>

<POSEX>00020</POSEX>

</E1EDL41>

</E1EDL24>

</E1EDL20>

</IDOC>

</DELVRY05>

Accepted Solutions (0)

Answers (1)

Answers (1)

daviddasilva
Active Contributor
0 Kudos

Hello,

The error indicates that there is an issue on the XML payload.

Double-check that you have all the necessary namespaces, etc. that are need for your XML to be valid. e.g. https://stackoverflow.com/questions/7007427/does-a-valid-xml-file-require-an-xml-declaration

Is your XML payload valid and well-formed? You can use an online tool to check this or any local XML editor software that you may have.

Kind regards,

David