How do you debug sapscript?
Activate the abap debug from the forma layout from menu system -- > utilities --> debug abap , Then go into the print program and execute the print program in the execute the program from and the script opens in the debug mode.