Where do we maintain Print programs, routines and forms to be printed in Transaction QM02?

You have the print program configured in IMG. Run T-code: SPRO

Next is to assign Shop Papers to “Notification Type” this is used to tell which Shop Paper 4-CHAR code you care about, define Shop Papers has the ABAP Form and Print Program.