/
2.1.11.1.2.2. BADI Add Additional self retentions in eDocument creation

2.1.11.1.2.2. BADI Add Additional self retentions in eDocument creation

In the parameter "SIT self-locking conditions" it is possible to add parameterization so that the eDocuments that comply with it are already in the retained state. These conditions must be based on the fields in the BKPF, BSEG, BSET, BSEC, EDOCUMENT and BSE_CLR tables.

If you want to add some condition that takes into account some field not included in the mentioned tables, it is necessary to use this BAdI in order to implement a solution.
The indicated correction is covered by the implementation of the AUTO_RETENCION method.


Creating the Enhancement

Through transaction SE18 we access the enhancement point /EDGE/SII_EVENTOS_CREACION and create the corresponding implementation (or reuse a previously generated expansion).


 


Then, we implement the AUTO_RETENCION method to complete the code that will cause the eDocuments that comply with it to pass to the retained state immediately.

In the example below, those eDocuments that in an associated financial document have a supplier with country code KP will be retained.

 

Avvale 2024