Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Copying print program for sapscript

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

nkr1shna
Contributor
0 Kudos

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

7 REPLIES 7

former_member181995
Active Contributor
0 Kudos

Did you Assign Your Script under tree having name "FORM " for List name "LK01"?

0 Kudos

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

0 Kudos

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.

0 Kudos

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

0 Kudos

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.

nkr1shna
Contributor
0 Kudos

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

Former Member
0 Kudos

Krishna,

Got it, the open_form was not called, thanks!!

Anne