2415776 - Messages failed in SAP PI due to IDOC_ERROR_ILLEGAL_TYPE IDOC exception for Sales Quote Follow Up Interface

SAP Knowledge Base Article - Public

2415776 - Messages failed in SAP PI due to IDOC_ERROR_ILLEGAL_TYPE IDOC exception for Sales Quote Follow Up Interface

Symptom

Messages failed in SAP PI Java Stck in Receiver IDOC_AAE adapter with below Exception for Sales Quote Follow Up Interface from C4C to ERP/S4Hana with below error:-

Transmitting the message to endpoint <local> using connection SOAP_http://sap.com/xi/X.I/System failed, due to: com.sap.aii.af.idoc.exception.IDOCAdapterException: Error before sending due to idoc parsing error: (7) IDOC_ERROR_PARSE_FAILURE: An IDocIllegalTypeException occurred while parsing IDoc-XML for type <SALESORDER_CREATEFROMDAT204>:
state=READING_FIELD_STARTTAG, charPosition=2267, lineNumber=1, columnNumber=2268.
Caught exception com.sap.aii.af.idoc.exception.IDOCAdapterException from application code with msgKey: 00163e22-5c10-1ed6-b0cb-e38bdb444a1a(OUTBOUND)

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Reproducing the Issue

  1. Create a Sales Quote in C4C
  2. Add Involved Parties like Account, Employee Responsible, Bill To and Payer
  3. Do not change any communcation details
  4. Save Quote document and Select Request External Pricing
  5. select “Create External Follow-Up Document”
  6. Check the SAP PO monitor and message got failed

Cause


Issue here is SAP PI Java Stack does not support "nil" values in the IDOC fields and message got failed in SAP PI Receiver IDOC_AAE channel.

Nil values are mapped in the message mapping for all the E1BPADR1 nodes anc child nodes as well in the IDOC.

 

Resolution

Please correct the mapping for E1BPADR1 nodes by replacing the If Else Condition with If Without Esle condition for all the target nodes where "NIL" is mapped , hence no "Nil" value will be mapped

Example:-

Current Mapping

2415776_1_.png

After Change:

2415776_2.png

Keywords

KBA , LOD-CRM-EMP , Employee , How To

Product

SAP Cloud for Customer 1211 ; SAP Cloud for Customer 1302 ; SAP Cloud for Customer 1305 ; SAP Cloud for Customer 1308 ; SAP Cloud for Customer 1311 ; SAP Cloud for Customer 1402 ; SAP Cloud for Customer 1405 ; SAP Cloud for Customer 1408 ; SAP Cloud for Customer 1411 ; SAP Cloud for Customer 1502 ; SAP Cloud for Customer 1505 ; SAP Cloud for Customer 1508 ; SAP Cloud for Customer 1511 ; SAP Cloud for Customer 1602 ; SAP Cloud for Sales 3.0 ; SAP HYBRIS C4C ADDINS 1705 ; SAP Hybris Cloud for Customer 1605 ; SAP Hybris Cloud for Customer 1608 ; SAP Hybris Cloud for Customer 1611 ; SAP Hybris Cloud for Customer 1702 ; SAP Hybris Cloud for Customer 1708 ; SAP Hybris Cloud for Customer 1711 ; SAP Sales OnDemand 1.0 ; SAP Sales OnDemand 2.0 ; SAP Sales OnDemand 4.0