Hi,
Check TNAPR table.
In NACE Transaction you will configure output type , script name & driver program.
If u want to add code to current logic you can add it in by writing Subroutines.
check below links for it
http://scn.sap.com/thread/429881
http://wiki.sdn.sap.com/wiki/display/ABAP/Subroutines+And+Their+Use+In+SAPScript