12-09-2008 8:23 PM
Hello all,
I would like to customize the print program PSFCPICK which we are using to print a sap script for shop orders.
So I did a copy of the program and named the new one ZPSFCPICK and assigned the copied print program to the list in OPK8. I know the copied print program is called when printing the script,
but no output is coming out of the printer. When I change it back to the original program, it is working fine.
Is there anything I have to pay attention when copying a print program??
Thanks
Anne
12-09-2008 8:42 PM
HI Anne,
Check in this custom program or copied program whether you are calling FM - CLOSE_FORM
The function module closes the layout set opened using OPEN_FORM. The system executes any terminating processing steps for the last opened layout set. You must use this function module to close layout set printing. Otherwise, no output appears on printer or screen.
Best Regards,
Krishna
12-09-2008 8:35 PM
Did you Assign Your Script under tree having name "FORM " for List name "LK01"?
12-09-2008 8:41 PM
Hello,
yes, that's right, I assigned the script. The script is basically going to be the same, the only thing that's changing is the print program assigned to LK01.
Thanks
12-09-2008 8:54 PM
How you Copied the program?Just Copy paste? Because the Defination of OPEN_FORM is written in CODRIF02(Include),so please copy program from SE80 and make sure you have copied all includes also.
12-09-2008 8:57 PM
Hello,
I did a copy out of se80.
It asked me if I want to copy the includes as well. I had to rename all includes and I just put a Z in front of the name.
Thanks
Anne
12-09-2008 9:09 PM
yes it would ask you to rename all includes so you must be rename tham in your Z includes.
That's why i asked to copy all inclueds in your main ZPSFCPICK because OPEN_FORM defination is written in CODRIF02 so it were missing earlier.
12-09-2008 8:42 PM
HI Anne,
Check in this custom program or copied program whether you are calling FM - CLOSE_FORM
The function module closes the layout set opened using OPEN_FORM. The system executes any terminating processing steps for the last opened layout set. You must use this function module to close layout set printing. Otherwise, no output appears on printer or screen.
Best Regards,
Krishna
12-09-2008 9:00 PM