There are many ways to add custom logic when processing an Infotype. Here are just a few:
SMOD
PBAS0001
PBAS0002
![](https://nocin.eu/wp-content/uploads/2020/09/grafik.png)
ZXPADU01 – when an infotype is called
ZXPADU02 – when an action is performed on an infotype
https://regotz.jimdofree.com/abap/dynpro/infotypen-pai-pbo/
BAdI’s
- HRPAD00INFTY (method IN_UPDATE) is called by the old infotype framework (PA30, SAP50UPR)
- HRPAD00INFTYDB (method UPDATE_DB) is called in the decoupled infotype framework
BAdI: HRPAD00INFTY – Verbucher / Infotyp-Pflege
![This image has an empty alt attribute; its file name is image-1.png](https://nocin.eu/wp-content/uploads/2020/08/image-1.png)
![This image has an empty alt attribute; its file name is image-2.png](https://nocin.eu/wp-content/uploads/2020/08/image-2.png)
BAdI: HRPAD00INFTYDB – HR: Stammdaten, Infotype DB Update Logik
“The BAdI is called, after the decoupled infotype framework writes the infotype data to the database. This is done during method FLUSH.”
Note: The Infotypes 2000-2999 are not decoupled yet! More here and here.
![](https://nocin.eu/wp-content/uploads/2020/08/image-4.png)
![](https://nocin.eu/wp-content/uploads/2020/09/grafik-1.png)
![](https://nocin.eu/wp-content/uploads/2020/09/grafik-2.png)