A Business Add-In (BAdI) is an SAP enhancement technique that allows you to add custom code to SAP standard transactions without modifying the original application. BAdIs are a part of SAP's Enhancement Framework and provide a more flexible way of integrating custom functionality. This lesson will provide you an additional details on the BAdI available for Purchase Info Records (PIRs) in SAP.
Implementing a BAdI for PIRs involves extending the standard functionality of a delivered PIR program in the SAP system to meet customer-specific requirements related to consuming PIR data received from SAP Ariba Strategic Sourcing solutions. You can implement this BAdI to enhance the incoming PIRs as required to add custom fields to the standard extract.
You can implement the BAdI ARBCIG_PURINFREC to customize the fields in the Purchase Info Records that are created from the SAP Ariba Awards. This BAdI is called in the class CL_ARBCIG_PURCHASEINFO_IMPL.
Hint
For more about implementing a BAdI, refer to the standard SAP Documentation.
You can maintain BAdI for Purchase Info Records program using one or more of the following methods:
Method Name | Description |
---|---|
MAP_PIR | To map additional fields to a purchase info record. |
MAP_PIR_CHANGE | To map the changes to the custom fields of a purchase info record. |
POST_PROCESSING | To customize and send a confirmation to SAP Ariba after creating the purchase info record. |
CONDITION_MAP | Conditions used to map additional fields to a purchase info record. |
PRE_PROCESS_PIR | Pre-processing for the pricing scales in PIR creates/changes (SAP EHP7 and higher versions). |
POST_PROCESS_PIR | Post-processing for the pricing scales in PIR creates/changes (SAP EHP7 and higher versions). |
Follow these steps to implement the BAdI for master data export:
- Using the transaction code SPRO, navigate to Integration with Other SAP Components>Managed Gateway for Spend&Network for Buyer>Master Data Integration>Enhancements>Business Add-Ins (BAdIs).
- Expand the Business Add-Ins (BAdIs) section and select the IMG-Activityfor BAdIs for Purchase Info Record.