Implementing Custom Logic
When an RFQ is canceled in the SAP system, the system must inform SAP Ariba Strategic Sourcing to cancel the event, suppliers, and related activities. However, standard SAP logic doesn’t automatically send a "cancel" message to SAP Ariba Strategic Sourcing.
To ensure alignment and prevent errors, configure implicit enhancements to send canceled RFQs to SAP Ariba Strategic Sourcing. This enhancement generates a cancellation message in SAP, triggers the correct outbound message through the Managed Gateway Add-On, updates SAP Ariba Strategic Sourcing’s status, notifies suppliers, and maintains data consistency between the two systems.
This enhancement typically identifies RFQ cancellations, populates the required structure for sending cancellations, calls the appropriate outbound interface, and ensures mandatory fields are included.
Without this enhancement, the SAP system cancels the RFQ locally, leaving it open or active in SAP Ariba Strategic Sourcing. Suppliers may continue responding, and sourcing teams face inconsistencies, confusion, or compliance issues.
You must configure this enhancement if you are a customer using one of the following Managed Gateway AddOn software components:
- ARBCI1 100: SP 0001 to SP 0006
- ARBCI1 10S: SP 0001 to SP 0006
Before configuring this enhancement, you need to implement SAP Note 2832573.
If you are on SAP S/4HANA 2020 FPS0 or later versions, you do not need to configure this implicit enhancement. You can apply the SAP Note 2991801 to use the standard BAdIs in SAP S/4HANA.
Steps to Configure Implicit Enhancement for the Canceled RFQ
- Run the transaction code SE38.
- On the ABAP Editor: Initial Screen, enter LEINMF0Q in the Program field, and select the Display button.

- On the Choose Main Program for LEINMF0Q pop-up, select SAPLEINM and then select the Choose button.

- On the ABAP Editor: Display Include LEINMF0Q screen, in the application toolbar, select Program>Enhance.

- The Choose Main Program for LEINMF0Q pop-up appears again. Select SAPLEINM and then select the Choose button.

- On the ABAP Editor: Change Enhancements for LEINMF0Q screen, in the application toolbar, select Edit>Enhancement Operations>Show Implicit Enhancement Options.

- A line will be displayed after the lesen_beleg form. Right-click the line and select Enhancement Operations>Create Implementation.

- On the Choose Enhancement Mode pop-up, select Code.

- On the Select or Create Enhancement Implementation pop-up, select the Create Enhancement Implementation button.

- On the Create Enhancement Implementation pop-up, provide the Enhancement Implementation (Name) and Short Text (Description) of your choice, and select the Creation of Enhancement (Enter) button.

- On the Create Object Directory Entry pop-up, specify your Z or Y package, select Enter, and then select the Save button to save the package to a transport request, or you can select Local Object.

- On the Select or Create Enhancement Implementation pop-up, choose the entry for the enhancement implementation you just created and then choose the Select Specified Enhancement Implementation (Enter) button.

- Add the include statement: INCLUDE ARBCIG_QUOTE_REQUEST_LEINMF0Q IF FOUND.
- Select the Activate Enhancements button.
- Select the Save button.
