Hi Nicoleta,
I guess you can modify the T51T8 table to call your new Z sapscript. Be aware that when the support pack or notes will change the value of the table so you will need to redo your config. And also, if there's a change to the original sapscript, you will also have to apply it to your Z.
Take care,
Frederick