Application Development and Automation 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: 
Read only

Dynamically update z table

former_member806481
Participant
0 Likes
1,769

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
Read only

Sandra_Rossi
Active Contributor
1,687

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

Read only

ankurch
Active Contributor
0 Likes
1,687

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

Ankur Chauhan
Read only

former_member806481
Participant
0 Likes
1,687

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.

Read only

RichB
Participant
0 Likes
1,687

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

Read only

RaymondGiuseppi
Active Contributor
1,687

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)