Hello everyone,
I would like to use IDocs (as XML) to create customer masterdate.
Therefore I created a xsd-File for "DEBMAS06" (with transaction we60 --> create XML-Schema).
I downloaded this schema and created a xml.
For processing the xml I used the following example code in Java:
Creating & Sending an IDoc to ERP using JCO 3.0 and IDoc Class Library 3.0
If I load my xml with this code I get the following exception:
com.sap.conn.idoc.IDocParseException: (7) IDOC_ERROR_PARSE_FAILURE: Invalid XML 1.0 character encountered within IDocXML:
state=READING_XMLDECLARATION, charPosition=19, lineNumber=1, columnNumber=20, invalidChar=U+003E,
sourceSnippet=<?xml version="1.0"><DEBMAS06> <IDOC BEGIN="1"> <EDI_DC40 SEGMENT="1"> <TABNAM>EDI_DC40</TA...
This is the beginning of my xml:
<?xml version="1.0">
<DEBMAS06>
<IDOC BEGIN="1">
<EDI_DC40 SEGMENT="1">
<TABNAM>EDI_DC40</TABNAM>
<MANDT>800</MANDT>
<DOCNUM></DOCNUM>
<DOCREL>46C</DOCREL>
<STATUS>30</STATUS>
<DIRECT>1</DIRECT>
<OUTMOD>OUTMOD</OUTMOD>
<EXPRSS>EXPRSS</EXPRSS>
<TEST>TEST</TEST>
<IDOCTYP>DEBMAS06</IDOCTYP>
<CIMTYP></CIMTYP>
How can I check, if my xml is correct. Is there a function module (se37) to test my xml to find out if my java code or my xml is broken.
Does anyone maybe have a sample xml for DEBMAS06?
Best Regards
Markus