cancel
Showing results for 
Search instead for 
Did you mean: 

Invoice Rejection Comments from S/4 HANA to SAP Ariba Business Network for supplier

PrashantGite
Explorer
0 Kudos
363

Dear Experts,

We have a commerce automation license for our customer. When a supplier submits an invoice from Ariba to S/4 HANA, a workflow is triggered and if a user rejects an invoice and give comments, our expectation is to send to  rejection comments to DSN where supplier can see the comments under History tab.

Would you please let us know if we can achieve this through a BADI or if any one has already implemented a solution for this scenario?

Your help is highly appreciated here.

Prashant Gite

PrashantGite
Explorer
0 Kudos
To be more specific, invoices can get rejected in two ways 1) Automatic This Rejection is trigerred we have a standard error or business rules defined in buyer network are not fulfilled. In such cases SAP Ariba makes sure sending the comments to supplier under history tab 2) In case of manual rejection it can be due to missing documents in such case comments are not reflecting. Can we achieve this ?
View Entire Topic
umasaral
Participant
0 Kudos

Hi

Yes, you can achieve sending rejection comments from S/4HANA to the supplier's Ariba system using a BADI or other custom solutions. Here’s a direct approach to resolve this scenario:

Steps to Implement Rejection Comment Transfer

1. Identify Relevant BADI:
Use BADI `BADI_INVOICE_REJECT` or `BADI_ARIBA_INVOICE_PROCESS` for handling invoice rejection scenarios. These BADIs can be used to implement custom logic when an invoice is rejected in S/4HANA.

2. Implement the BADI:
Implement the BADI to capture the rejection comments and additional relevant details when an invoice is rejected.In the implementation, add logic to prepare and send the rejection comments.

3. Send Data to Ariba:
Use the Ariba integration APIs or connectors to send the rejection comments back to Ariba.
Ensure you use the correct API endpoints provided by Ariba for updating the invoice history with rejection comments.

4. Configure and Test:
Configure the integration to ensure that comments are correctly sent and updated in Ariba.
Perform thorough testing to verify that the comments appear correctly under the History tab in the Ariba system.

 Notes
- Check Documentation: Refer to the SAP and Ariba documentation for specifics on the available BADIs and integration methods.
- Ariba Integration: Ensure that your integration setup between S/4HANA and Ariba is correctly configured and that you have the necessary permissions and credentials for API calls.

You can use BADI `BADI_INVOICE_REJECT` or similar to handle rejection comments and then use Ariba integration APIs to send those comments back
to the supplier's Ariba system. Implement and test thoroughly to ensure comments are properly reflected in the Ariba system's History tab.

PrashantGite
Explorer
0 Kudos

Hello Uma,

We are successful in sending Rejection comments to Ariba Buyer Network. But these are not visible in Supplier Network. When you say  Use the Ariba integration APIs or connectors to send the rejection comments back to Ariba how do we make sure these comments reach supplier network as well?

Regards,

Prashant Gite