cancel
Showing results for 
Search instead for 
Did you mean: 

Copying data from HRUS_D2 table to a Z Table

former_member609120
Contributor
0 Kudos

Hi,

I have a requirement that whenever the user enters a person's name in substitution i need this value in a Z Table i.e the entry would will created in HRUS_D2 but the same needs to be filled in my Z Table. Similarly when he deletes the substitution, this entry is deleted from HRUS_D2 table, at that time i need to update my Z Table with the date of deletion.

Can anyone suggest where i can write such code, i mean which ABAP program/userexit/enhancement/BADI ?

Thanks and Regards,

Vanessa

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member609120
Contributor
0 Kudos

I have written code to insert/update Z Table in BADI WF_SUBSTITUTE

former_member526144
Active Contributor
0 Kudos

Hi Vanessa,

Can you please share the piece of code or instructions for implementing this BADI. We have same requirement.

Thanks

Ravi

Former Member
0 Kudos

If your requirement is to keep tab of changes for audit (internal or external) you can simply enable table logging in HRUS_D2 (which is what we did) and view changes using SCU3.

former_member526144
Active Contributor
0 Kudos

Hi Sanjay,

Can you please confirm whether you are able to activate table log for specific table? Do you have noticed any performance issues...

Thanks

Ravi

Former Member
0 Kudos

Hi,

The table has been used in the FM 'RH_UPDATE_SUBST_LIST_SERVER' in SRM 7.0. If you are looking to update to your Z table then have a enhancement implementation in Code to update to you z table.

Saravanan