cancel
Showing results for 
Search instead for 
Did you mean: 

IDocIllegalTypeException in receiver IDoc channel using IDoc_AAE

Former Member
0 Kudos

Hi,

I have SOAP to IDoc scenario, we have dual stack and I am using IDOC_AAE for receiver channel. RFC destination is created in PI NWA is XI_IDOC_DEFAULT_DESTINATION_<SID>. I have resolved all the connectivity related errors however now I am getting below error.

IDoc: Error while processing the received

messagecom.sap.conn.idoc.IDocParseException: (7) IDOC_ERROR_PARSE_FAILURE: An

IDocIllegalTypeException occurred while parsing IDocXML for type <ZISFJP>:

state=READING_SEGMENT_STARTTAG, charPosition=305, lineNumber=1, columnNumber=306

I have also gone through the below link but cannot figure out the problem

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

My payload for this message is seen as below.

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

- <ZISFJP>

- <IDOC BEGIN="1">

- <EDI_DC40 SEGMENT="1">

  <TABNAM>1</TABNAM>

  <DIRECT>1</DIRECT>

  <IDOCTYP>ZISFJP</IDOCTYP>

  <MESTYP>ZMSG_SFJP</MESTYP>

  <SNDPOR>1</SNDPOR>

  <SNDPRT>1</SNDPRT>

  <SNDPRN>1</SNDPRN>

  <RCVPOR>1</RCVPOR>

  <RCVPRN>1</RCVPRN>

  </EDI_DC40>

- <ZIS_IDOC_FIN_HDR SEGMENT="1">

  <BATCH_SESSION_NAME>XY001</BATCH_SESSION_NAME>

  <DOCUMENT_DATE>200713</DOCUMENT_DATE>

  <POSTING_DATE>200713</POSTING_DATE>

  <COMPANY_CODE>ABC</COMPANY_CODE>

  <REFERENCE_DOCUMENTS>test</REFERENCE_DOCUMENTS>

  <HEADER_TEXT>test</HEADER_TEXT>

  <DOCUMENT_TYPE>ZX</DOCUMENT_TYPE>

  <CURRENCY_KEY />

  </ZIS_IDOC_FIN_HDR>

- <ZIS_IDOC_FIN_INFO SEGMENT="1">

  <POSTING_KEY />

  <ACCOUNT_CODE />

  <ZAMOUNT />

  <COST_CENTER />

  <INTERNAL_ORDER />

  <WBSELEMENT />

  <PROFIT_CENTER />

  <ALLOCATION_CODE />

  <TEXT />

  <VAT />

  </ZIS_IDOC_FIN_INFO>

  </IDOC>

  </ZISFJP>

Please help.

Thanks,

Poulami

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Poulami,

Looking at the IDoc content, it seems that there is a batch session generated through BDC programming with the header content(ZIS_IDOC_FIN_HDR segment of IDoc) and the item content(ZIS_IDOC_FIN_INFO segment of IDoc). This entire flow is related to FI process. The header contents can be checked in APQI table and item contents can be checked in APQD table. However, AFAIK, APQI table does not contain all the fields that are there in header content of the IDoc. Same is the case with item content. As a result of which depending on the end to end flow in the complete business process this error might be occurring where the IDoc could not possibly be parsed at the initial header level.

So, I suggest you to please check the functional flow as well in order to understand the reason for this error.

Also, you can check the date format as Amit suggested.

Kind Regards,

Souvik

manoj_khavatkopp
Active Contributor
0 Kudos

Hi,

In your IDOC_AAE channel under Additional parameters add these :

FieldValidationEnabled  false.

By doing this you are not validating the data in PI you send as it is to ECC system.

Br,

Manoj

Former Member
0 Kudos

Hi,

Are you sure that the dates are correct?

Pass the dates in correct format and then check.

<DOCUMENT_DATE>200713</DOCUMENT_DATE>

  <POSTING_DATE>200713</POSTING_DATE>

Thanks

Amit Srivastava