Hello Experts,
We are currently sending Customized DELVRY07 to an API-based application and upon receiving the API response we are mapping that response into a different type of IDoc SHPCON and sending it back to sap. Along with this we are also sending a SYSTA01 IDoc to update the original oubound DELVRY07 IDoc. However, after sending this response back to SAP we are getting into 02 status for the initial IDoc.
Problem with SOAP class
1040:SRT: Wrong message type: ("expected: {}ZPOI022_DELVRY07Response")
In order to handle this situation, I have added a groovy script before the end step to change the camelhttp status response code to 200 and manually added a IDoc response payload. But it is still failing with the same error. I have found this blog which says the similar thing - https://blogs.sap.com/2020/01/13/changing-fault-message-of-outbound-idocs-sent-from-ecc-to-sap-cpi/
In S4, when checked the TCODE - SRTUTIL for error log I can see the error generated for the payload response sent as SYSTAT01.
Please see the attached screenshots.
Thanks
Sugata