2.1.11.1.2.5. BAdI for payments and charges compensations
In the enhancement point /EDGE/SII_EVENTS_CREATION, you have created a BAdI /EDGE/IF_BADI_COMPENSAC_PR_CE to be able to change the association of a payment/collection and its eliminations.
This BAdI has a default implementation, so you do not need to make any changes unless you want to modify the conditions for creation. The default class provided in this BAdI is /EDGE/CL_COMPENSAC_PR_CE.
This class has two methods:
- SEARCH_DOCUM_COMPENSATION: This method is executed in the eDocuments creation BTE:
The logic of this method is to search for the invoice corresponding to the payment or collection, and to search for the payment or collection of a clearing document. The standard logic that was in this part of the code has been incorporated into this BAdI in version 1.7.3 in order to be able to modify this association of clearing documents.
- GET_CE_PR_ORIGINAL: This method has its call in class /EDGE/CL_CLR_ITEM_SOURCE_SII, method SET_DATA_FROM_DOCUMENT_NUMBER. The logic of this method returns the structure of the document being cleared. The standard behavior that was the default in the product is incorporated into this BAdI in version 1.7.3 so that it can be modified in case of a different process.
Avvale 2024