2022 Jun 16 11:29 AM
i have a z table that has user validity dates in it .
so my requirement is IF SOMEONE UPDATES/CHANGES THE VALIDITY DATE IN SU01 THEN THE VALUE IN THE Z-TABLE SHOULD ALSO BE UPDATED.
2022 Jun 16 12:03 PM
Are you looking for an ABAP developer, or do you have a specific question?
2022 Jun 16 12:06 PM
Hello Atharva you can also track this via change log or CDHDR/CDPOS
2022 Jun 16 12:42 PM
Yes for an abap developer
Understand this scenario
a z table in maintaining the user validity dates for eg 30.01.2020 to 30.01.2022.
Now lets say someone changes the validity dates in SU01 from 30.01.2020 to 30.01.2025.
Then the value in Z table should automatically be changed there should be noo need of manual changes.
2022 Jun 16 1:34 PM
SAP will not automatically update your in-house "Z" table. You will have to add the code yourself (possibly a user exit) where the SU01 does the update
2022 Jun 16 2:06 PM
Implement BAdI BADI_IDENTITY_UPDATE, the method SAVE is called as the last step during the user data save process. Use it to update your z-table, trigger mail, workflow, etc.
(There is a Exit added Note for reference : 1750161 - User administration: Saving additional information (BAdI BADI_IDENTITY_UPDATE) look also at sample implementation class CL_EXM_IM_IDENTITY_UPDATE)