cancel
Showing results for 
Search instead for 
Did you mean: 

Print spool immediately

Former Member
0 Kudos

In an ABAP program, we call the function for a SMARTFORM, within a loop.

For each occurrence in the loop, the SMARTFORM generates an entry in the spool (transaction SP01) with ststus waiting.

Only when the program finishes, does the spool send the SMARTFORMS layout to the printer.

How can we cause the printing to start immediately for each occurrence in the loop without waiting for the program to finish?

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

Do set the option,

ssfcompop-tdimmed = 'X'

and pass it to the function module of smartform

output_options = ssfcompop-tdimmed

Close the thread if your question is answered.

Regards,

SaiRam

Former Member
0 Kudos

Hi

This option was set before. Any other idea?

Thanks

Former Member
0 Kudos

Hi Zvi,

You got any solution for this, B'cas i am also facing the same prob but here in my case i dont have any loop, for even one entry it is sending into spool, i have set that option also tdimmed to 'X' but still it is spool.can you please help if you have a soln.

thanks,

Gayathri

Answers (2)

Answers (2)

Former Member
0 Kudos

W_CONTROL_PARAMETERS-NO_DIALOG = 'X'. "skip dialog

W_OUTPUT_OPTIONS-TDDEST = 'FRT'. "print

W_OUTPUT_OPTIONS-TDIMMED = 'X'. "immed print

W_OUTPUT_OPTIONS-TDNEWID = 'X'. "create new spool request

W_OUTPUT_OPTIONS-TDCOPIES = 001. "copies

besides above ,you can check the user setting by Tr-code SU3

choose Defaults ,then check the [Output Immediately]

Former Member
0 Kudos

Hi changsheng,

It is working fine, many thanks.

thanks a lot.

- Gayathri.

former_member215870
Participant
0 Kudos

My friend thanks....you have help me a lot with this info....Unfortently I can not give you a reply, becouse this is not my thread.

Thanks

Former Member
0 Kudos

Hi,

But why r u using smartforms fm in loop..It's useless.

If u want to print multiple output at time use print workbench for that it has same feature as smartforms.

Rewards points if it is useful.