We are using inbound IDoc CREMAS05 to create vendor master data. We are first creating it's 'X' partner and then trigger another IDoc for main vendor 'Y' which will have partner information of 'X' partner. So there will be 2 IDocs triggered.
The third party system that is going to trigger a message to create vendor, will send entire data (Data for main vendor and partner) in one payload which then PI divides into 2 different IDocs. And since there is no way to interpret IDoc response in SAP PI, we have a situation where first IDoc fails(No 'X' Partner is created) but PI still triggers second IDoc and creates main vendor 'Y'.
We want to implement a solution where if any of the 2 IDocs fail, whole process should stop. We are going for IDoc option, as there is no BAPI/FM to create vendor data that could be used in ABAP proxy.