Application Development and Automation 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: 
Read only

Copying print program for sapscript

Former Member
0 Likes
1,239

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
Read only

nkr1shna
Contributor
0 Likes
1,149

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
Read only

Former Member
0 Likes
1,149

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

Read only

0 Likes
1,149

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

Read only

0 Likes
1,149

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.

Read only

0 Likes
1,149

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

Read only

0 Likes
1,149

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.

Read only

nkr1shna
Contributor
0 Likes
1,150

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

Read only

Former Member
0 Likes
1,149

Krishna,

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

Anne