/scripts/ahub.form.attachments.js
0

C4C & S4HANA & SAP PO Integration Error - External Follow-UP Document in Sales Quote

Dec 15, 2016 at 02:02 AM

195

avatar image
Former Member

Hi Experts,

We are trying to replicate sales quotes documents from C4C to S4 1511 using PO. Once the Pricing is Successfully calculated and it has been approved, we want to create a Sales Quote in S4 as "External Follow-Up Document". When clicked in the action, the interface "CustomerQuoteProcessingSalesOrderRequestOut" is triggered. An error in SAP PO is shown:

Transmitting the message to endpoint using connection SOAP_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: An IDocIllegalTypeException occurred while parsing IDoc-XML for type :
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)

Exception caught by adapter framework: (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

Exception caught by adapter framework: (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

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

(4) IDOC_ERROR_ILLEGAL_TYPE: Segment type "NAME" is not a valid child segment type.
DOCUMENT: type=SALESORDER_CREATEFROMDAT204; SEGMENT: type=E1BPADR1, definition=E2BPADR1000

We have Applied note: 2036878 - IDoc_AAE: Disable field datatype validation during IDoc-XML parsing and the error still persist.

I have noticed that there is a constant for ObjectTypeCode with value "1432". C4C payload is sending value 441 for the ObjectTypeCode. Because of that the condition in PO is never met and the field Name is null. We have tested the validation (manually in the Enterprise Service Repository), changing the value to 1432 and field Name is getting the correct value. We think that the error might be in the payload with value: <ObjectTypeCode>441</ObjectTypeCode> .

What Does value 441 in C4C mean? Where does it come from? What Does the value "1432" in SAP PO mean? Should we change the value to 441 in SAP PO?

Best Regards

David Cortes

sap-po-log.jpg

sap-po-esb-mapping.jpg

c4c-payload-sales-quote.jpg

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers

Skip to Content