cancel
Showing results for 
Search instead for 
Did you mean: 

How to call two smartforms in one print program

Former Member
0 Kudos

Hi,

I have to print original form and copy form from one print program in background,once the original is printed it should print copy form.

Can we do some setting in sartor so that it should print original first and then copy with one extra text "COPY". Or two forms should be developed and called in single print program?

Thanks in advance,

Regards,

Ali

Accepted Solutions (0)

Answers (2)

Answers (2)

mnicolai_77
Active Participant
0 Kudos

hi

i think that you will have to call smartforms twice.

the first smartform you print out the original and in the second you printout the copy.

discriminating could be a field in the importing parameters of the function that allows to show text "COPY" in the smartforms.

If you want you can create a unique spool WITH 2 smartform you have to set value NO_OPEN and NO_CLOSE int the CONTROL_PARAMETERS (type SSFCTRLOP) of the output_parameter (this in an importing parameter of smartforms function)

for example 3 smartform in 1 spool

1st call: NO_OPEN = SPACE.

NO_CLOSE = 'X'.

nth call: NO_OPEN = 'X'.

NO_CLOSE = 'X'.

last call: NO_OPEN = 'X'.

NO_CLOSE = SPACE .

Bye

Marco

Former Member
0 Kudos

Thanks Marco,

Spool information would be helpful for me,But i would be calling 2 Smartforms Function Modules in between FM SSF_OPEN and SSF_CLOSE or only 1 Smartform FM between SSF_OPEN and SSF_CLOSE FM.

Can you please guide me how to process.

Regards,

Ali

mnicolai_77
Active Participant
0 Kudos

hi,

i never used these function but i've found this link.

[http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/62ae7fcd-0b01-0010-3e9d-a54f26944450]

[http://help.sap.com/saphelp_nw2004s/helpdata/en/64/bf2f12ed1711d4b655006094192fe3/content.htm]

[http://help.sap.com/saphelp_nw04/helpdata/en/64/bf2f12ed1711d4b655006094192fe3/frameset.htm]

[;

hope that is useful.

bye

Marco

Edited by: nicolai marco on Jan 14, 2008 12:36 AM

former_member188005
Contributor
0 Kudos

Ali,

No need of creating 2 Smartforms.

When calling the Function module of the smartform you can specify the number of copies you want to print.

Import param for FM has OUTPUT_OPTIONS in that specify

OUTPUT_OPTIONS-TDCOPIES = 2 and in print program control the output for printing COPY as heading.

Hope things are little clear now.

Regards..

Former Member
0 Kudos

But original has to be printed in tray one and copy in tray two.Can we control this also for copy print ?