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)
Reproducing the Issue
- Create a Sales Quote in C4C
- Add Involved Parties like Account, Employee Responsible, Bill To and Payer
- Do not change any communcation details
- Save Quote document and Select Request External Pricing
- select “Create External Follow-Up Document”
- Check the SAP PO monitor and message got failed
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.
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
KBA , LOD-CRM-EMP , Employee , How To