Implicit Enhancements in ABAP enable you to insert custom logic or code into SAP standard programs at predefined extension points—without directly modifying them. This is essential for integrating customer-specific logic, such as adding Z-fields or altering payloads when standard BAdIs or user exits are unavailable.
SAP Ariba provides predefined enhancement points within standard includes or programs, such as at the start or end of a form, method, or function. You can insert your code here to enhance SAP behavior safely and ensure it remains upgrade-proof.
When standard functionality is inadequate, you need to configure Implicit Enhancements in the Managed Gateway Add-On to extend, control,and customize the outbound payload. This guarantees that your specific business and technical requirements are met without compromising SAP upgrade compatibility.
In the case of the purchase order, the standard SAP ORDERS IDoc cannot handle changes to a purchase order or canceling a purchase order by default. This implicit enhancement allows the IDoc to send change and cancel information to the SAP Business Network. SAP Ariba has provided an INCLUDE statement that contains the necessary custom ABAP logic to manage change and cancel purchase order scenarios.
Follow these steps to configure implicit enhancement for change and cancel orders:
- Run the transaction code SE38.

- On the ABAP Editor: Initial Screen, enter LEINMF0Q for Program and choose Display.

- On the Choose Program for LEINMF0Q popup, select SAPLEINM and then select the Choose button.

- On the ABAP Editor: Display Include LEINMF0Q screen, choose the Enhance icon from the application toolbar.

- On the Choose Program for LEINMF0Q popup, select SAPLEINM and then select the Choose button.

- From the menu bar at the top, select Edit, navigate to Enhancement Operations, and then select Show Implicit Enhancement Options to display a line after FORM lesen_beleg.

- Right-click the line below FORM lesen_beleg, navigate to Enhancement Operations, and then select Create Implementation.

- On the Choose Enhancement Mode pop-up, select Choose the Type of Enhancement as Code to display the Select or Create Enhancement Implementation pop-up.

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

- On the Create Enhancement Implementation pop-up, provide the Enhancement Implementation (Name) and Short Text (Description), and choose the Enter button.

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

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

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