Recently, we have encountered an issue wherein, a few Invoices created on the Ariba Supplier Network were not transferred over to our SAP ERP system.
The SAP Netweaver PI Ariba Network Sender adapter was configured to pick these invoices in cXML format and post them as IDOCs in our SAP ERP system.
However, in this case, there were some issues with the content of the invoices and the SAP PI AN Adapter was unable to pick up from the Ariba Supplier Network,
The default trace files did provide some information on why the sender adapter was unable to pick up the invoice, but the business wanted a more “visible” process of notification of these type of errors.
For other errors like mapping and receiver connectivity issues, we already have the standard alert configuration in SAP PI, but in this case the standard alert mechanism would not be helpful, as there is no message id created at the point of failure.
Error messages look something like this:
[Error Level] 2[Error Code] ERR302[Error Desc] Get Pending Transaction Failed[Error Message] com.ariba.asc.connector.util.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedlycom.ariba.asc.connector.exception.GetPendingTransactionException: com.ariba.asc.connector.util.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedly
at java.security.AccessController.doPrivileged(Native Method)
Caused by: com.ariba.asc.connector.util.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedly
… 8 more
Luckily for us, there is an option that is available to enable e-mail notifications for scenarios that are initiated from Ariba Network . I have found very little help around this topic and hence wanted to share the detailed set-up.
Here are the steps to achieve these notifications.
- Edit the sender “AribaNetworkAdapterSAPNetweaver” communication channel. (I will not cover the remaining configuration steps)
- Scroll down to find the check box “Email Notification”.
- Provide the email server host name without the “smtp” prefix. This is important, i made the mistake of including the prefix “smtp” and took some time to realize that it is not needed 🙂
- Provide the Sender and Receiver email address as per your requirement.
Sounds pretty straight forward , eh? Well, on hind-sight , yes!! 😀