From the booklet of Rabbi David Shalom Naki, shlit"a: some dedicate a Sefer Torah for a parent’s neshamah, yet a greater mitzvah is to print a needed sefer of halachah. As the Rosh and the Beit Yosef wrote, and as Rabbi Chaim Palagi added, the mitzvah of writing the Torah is in order to learn in it.