cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform Print in Background

Former Member
0 Kudos

Dear Experts,

I have a program which prints a smartform.

MY objective is to schedule this Program in Background. In the Background this program should print.

Currently its going to Spool but not printing in the Printer when its executed in Background.

Please kindly advise.

Regards

Sam

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

It might be the case that printer which you are using is frontend printer which can't be called in background.

Please have a look at the following thread. It might help.

http://forums.sdn.sap.com/thread.jspa?threadID=1881552

Regards,

Shubham

aidan_black
Active Contributor
0 Kudos

Hi,

When the application program calls the smartform function module, the parameter OUTPUT_OPTOPNS-TDIMMED must be filled so that the print happens immediately.

Regards,

Aidan

Former Member
0 Kudos

HI friend,

Its simple.

Just try using SET_PRINT_PARAMETERS and GET_PRINT_PARAMETERS. This will work.

Also make sure you are giving NO_DIALOGUE = 'X', NO_PREVIEW = 'X' and PRINT_IMMEDIATELY option = 'X'.

Also try using combinations if setting all these don't work.

This will surely solve your issue. If you face any queries please revert back to me i will help you.

Thanks,

Sri Hari

Former Member
0 Kudos

Hi,

Thanks for your reply.

Can you please help me how to use these SET_PRINT_PARAMETERS and GET_PRINT_PARAMETERS. I mean which one i should use first and get what values and set what values.

Also The Printer should be Frontend Printer or anyother type in SPAD.

Regards

Sam