cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC parsing error.

Former Member
0 Kudos

Hi Experts,

Currently i am working with the File (CSV)--->to IDOC  in 7.31 version Single stack java. But i am facing the below error . Kindly help me in solving the issue.

1)File CSV Content conversion is working fine.

2) IDOC (Java IDOC.)

Error :-

Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.idoc.exception.IDOCAdapterException: Error before sending due to idoc parsing error: (7) IDOC_ERROR_PARSE_FAILURE: Missing required SEGMENT attribute in <EDI_DC40 SEGMENT="1"> start tag within IDocXML for type <ZO2CEIT_CONDA01>:
state=READING_CONTROLRECORD_STARTTAG, charPosition=96, lineNumber=1, columnNumber=97

EDIDC_40 segment :-

1) i am mapping the following fields in the Control record.

1)SNDPRT

2)SNDPRN

3)RCVPRT

4)RCVPRN

5)CIMTYP.

Thanks,

Vijay Kumar K.

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Vijay,

The error seems to be clear, the mapping is omitting a mandatory tag EDI_DC40, you would need to map any statement to it in order to be generated.


If the error is not the mentioned before, check also your SP level, 1736292 - Idoc_error_parse_failure Java IDoc_AAE


Regards.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

As said already you have to fill all the segments segment field with value 1 .

In new Java idoc adapter xsd validation will be done again IDoc XSD..so IDoc xml data should be as per Idoc xsd.

HTH

Rajesh

Former Member
0 Kudos

Hi Vijay

Map all the attribute 'SEGMENT'  inside EDI-DC40 with constant 1 and then test.

This will solve your problem .

gagandeep_batra
Active Contributor
0 Kudos

AS Inaki said check the mapping, also

Check the following thread:

http://scn.sap.com/thread/3258444

http://scn.sap.com/thread/3258587

Regards

GB