cancel
Showing results for 
Search instead for 
Did you mean: 

XML To EDi Converter Issue:Could not find the xsd for input payload

0 Kudos

Hi All,

I am trying to use the standard integration Advisor for creating A MAG forINVOIC.INVOIC02 to EDIFACT 4938.Also i

generated the runtime artifact for cloud integration and imported the respected xslt,xsd and mapping to standard content provided by SAp CPI.

Issue:Not able to convert xml to EDI.its getting executed to all preceeding steps.Even XMl validation also but once it reaches xml to EDi converter its somehow not able to find the xsd.

Could you please help.

Error Detail

Note :Xsd and mapping used at each step:

IDoc Pre-processing:INVOIC.INVOIC02_preproc.xslt

IDoc to EDIFACT Mapping:Mapping_INVOIC.INVOIC02_to_LOCAL_SUPPLIERS_VDA_4938.xsl

EDIFACT Extended Validation (optional):UN-EDIFACT_INVOIC_D05B.xsd

EDIFACT Post-processing:LOCAL_SUPPLIERS_VDA_4938_postproc.xsl

XML to EDI Converter:UN-EDIFACT_INVOIC_D05B.xsd(same as used in EDIFACT Extended validation optional)

Accepted Solutions (0)

Answers (1)

Answers (1)

MichelleLuft
Product and Topic Expert
Product and Topic Expert

Hi Rahul,

could you share the body details?

The XSD determination is based on the EDI standard (UN-EDIFACT, fixed value), the message type, and the version. I assume your UNH segment is not filled correctly.

SAP Help Page with examples:

https://help.sap.com/docs/CLOUD_INTEGRATION/368c481cd6954bdfa5d0435479fd4eaf/707973f9bfb1419eb806287...

Best regards

Michelle

0 Kudos

Hi Michelle,

Please find the body detail

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

<ns1:Interchange xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="urn:sap.com:ica:typesystem:6:un-edifact">

<S_UNB>

<C_S001>

<D_0001>UNOC</D_0001>

<D_0002>3</D_0002>

</C_S001>

<C_S002>

<D_0004>DS4CLNT110</D_0004>

<D_0007>ZZZ</D_0007>

<D_0008></D_0008>

</C_S002>

<C_S003>

<D_0010>4000000362</D_0010>

<D_0007>ZZZ</D_0007>

<D_0014></D_0014>

</C_S003>

<C_S004>

<D_0017>220621</D_0017>

<D_0019>1513</D_0019>

</C_S004>

<D_0020>000000017</D_0020>

<C_S005>

<D_0022></D_0022>

<D_0025></D_0025>

</C_S005>

<D_0026></D_0026>

<D_0029></D_0029>

<D_0031></D_0031>

<D_0032></D_0032>

<D_0035>1</D_0035>

</S_UNB>

<M_INVOIC>

<S_UNH>

<D_0062>1</D_0062>

<C_S009>

<D_0065>INVOIC</D_0065>

<D_0052>D</D_0052>

<D_0054>96A</D_0054>

<D_0051>UN</D_0051>

</C_S009>

</S_UNH>

<S_BGM>

<D_1225>9</D_1225>

</S_BGM>

<S_DTM>

<C_C507>

<D_2005>158</D_2005>

</C_C507>

</S_DTM>

<S_FTX>

<D_4451>TXD</D_4451>

<C_C108>

<D_4440>Z000</D_4440>

</C_C108>

</S_FTX>

<G_SG2>

<S_NAD>

<D_3035>RS</D_3035>

<C_C082>

<D_3039>4000000362</D_3039>

</C_C082>

<C_C059>

<D_3042>abcxsed</D_3042>

</C_C059>

<D_3164>Le-ngen</D_3164>

<D_3251>70771</D_3251>

<D_3207>DE</D_3207>

</S_NAD>

</G_SG2>

<G_SG2>

<S_NAD>

<D_3035>AG</D_3035>

<C_C059>

<D_3042>Mefgjjj 137</D_3042>

</C_C059>

<D_3164>Stuttr</D_3164>

<D_3251>70327</D_3251>

<D_3207>DE</D_3207>

</S_NAD>

</G_SG2>

<G_SG2>

<S_NAD>

<D_3035>RE</D_3035>

<C_C059>

<D_3042>Mefgjjj 137</D_3042>

</C_C059>

<D_3164>Stuttr</D_3164>

<D_3251>70327</D_3251>

<D_3207>DE</D_3207>

</S_NAD>

</G_SG2>

<G_SG2>

<S_NAD>

<D_3035>RG</D_3035>

<C_C059>

<D_3042>Mefgjjj 137</D_3042>

</C_C059>

<D_3164>Stuttr</D_3164>

<D_3251>70327</D_3251>

<D_3207>DE</D_3207>

</S_NAD>

</G_SG2>

<G_SG2>

<S_NAD>

<D_3035>BK</D_3035>

<C_C082>

<D_3039>SE30</D_3039>

</C_C082>

<C_C059>

<D_3042>abcxsed</D_3042>

</C_C059>

<D_3164>Le-ngen</D_3164>

<D_3251>70771</D_3251>

<D_3207>DE</D_3207>

</S_NAD>

</G_SG2>

<S_UNS>

<D_0081>S</D_0081>

</S_UNS>

<G_SG50>

<S_MOA>

<C_C516>

<D_5025>77</D_5025>

</C_C516>

</S_MOA>

</G_SG50>

<S_UNT>

<D_0074>12</D_0074>

<D_0062>1</D_0062>

</S_UNT>

</M_INVOIC>

<S_UNZ>

<D_0036>1</D_0036>

<D_0020>000000017</D_0020>

</S_UNZ>

</ns1:Interchange>

MichelleLuft
Product and Topic Expert
Product and Topic Expert

Hi Rahul,

based on the fields in your UNH segment (D_0065, D_0052, D_0054) the XML to EDI converter expects a file called UN-EDIFACT_INVOIC_D96A.xsd, but your file is called UN-EDIFACT_INVOIC_D05B.xsd. You need to change the value of <D_0054> to 05B. Do you use constants in the IA MAG?

Best regards

Michelle

0 Kudos

Hi Michelle,

Thanks a lot, i struggled a lot fixing this and wasting time. This note from you helped me in fixing this and saving time.

Yes i have used constant in MAG editor.

If i have UNH+1+IN|VOIC:D:07A just i need to rename my EDIFACT to UN-EDIFACT_INVOIC_D07A.xsd before uploading to xml to EDI converter.The EDIFACT xsd will remain same for both??