In the extension point /EDGE/SII_EVENTOS_CREACION a BAdI /EDGE/BADI_SII_CREACION_BAJAS has also been created to be able to modify the conditions of creation of cancellation (low) eDocuments.
This BAdI has a default implementation so it is not necessary to make any modifications unless the client wants to modify the creation conditions. The fallback class provided in this BAdI is the /EDGE/CL_SII_CREACION_BAJAS:
In this class, the method GET_DOC_ANNULATION has been implemented, which is the method to be implemented if you want to modify these conditions through a new implementation for this BAdI:
In this class the method GET_DOC_ANULACION has been implemented, which is the method to be implemented in case of wanting to modify these conditions through a new implementation for this BAdI.