Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically update z table

former_member806481
Participant
0 Kudos
333

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.

5 REPLIES 5

Sandra_Rossi
Active Contributor
251

Are you looking for an ABAP developer, or do you have a specific question?

ankurch
Active Contributor
0 Kudos
251

Hello Atharva you can also track this via change log or CDHDR/CDPOS

former_member806481
Participant
0 Kudos
251

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.

RichB
Participant
0 Kudos
251

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

raymond_giuseppi
Active Contributor
251

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)