Hi Dana,
I think you can check the standard dynamic action for your requirement via SM30--> V_T588Z.
Enter the infotype 0002 then, you can check it. i have taken a screen shot from it and you can modify it if you relay need the changes.
here they are coded accoring to the number that ur entering in ANZKD.
ex. if you enter 1 then IT0021, SUBty 02 and the record 1 will be mainatined.
Have a look in standard and modify it.
Regards,
Dinesh