Skip to Content
avatar image
Former Member

Facing issue while loading Idoc file using java

Hi,

Now i am working in idocs data loading from eclipse.I am facing some issues while loading the data.

this is my idoc file content:

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

<MATMAS02> <IDOC BEGIN="1">

<EDI_DC40 SEGMENT="1">

<TABNAM>EDI_DC40</TABNAM>

<DOCNUM>0000000002179642</DOCNUM>

<STATUS>30</STATUS>

<IDOCTYP>MATMAS05</IDOCTYP>

<SERIAL>20090401220541</SERIAL>

</EDI_DC40> <E1MARAM SEGMENT="1">

<MATNR>000004106A</MATNR>

<MTART>ROH</MTART>

<MATKL>0001</MATKL>

<MEINS>KG</MEINS>

</E1MARAM> </IDOC>

</MATMAS02>

I am facing some errors like

com.sap.conn.idoc.IDocParseException: (7) IDOC_ERROR_PARSE_FAILURE: IDoc type MATMAS05 within the EDI_DC40 control record segment does not match the IDoc-XML root tag <MATMAS02>: state=READING_ENDTAG,

kindly help me

thanks in advave

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers