on 10-23-2007 6:40 AM
Hi All
I am executing a a program which genereates sapscript. I want to run this program as back ground job. To do this i have to supress the print screen. What parameters i need to pass to supress the screen & create a new spool request.
Thanks in advance
Hi
Declare the following :
wa_ctrlop TYPE ssfctrlop, " Smart Forms: Control structure
wa_outopt TYPE ssfcompop, " SAP Smart Forms: Smart Composer (transfer)
<b>Set the following options to supress the print screen:</b>
wa_ctrlop-no_dialog = 'X'.
wa_outopt-tdnoprev = 'X'.
<b>Generate New Spool id:</b>
wa_outopt-tdnewid = 'X'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You can use a Logic in your report by using the table ITCPO for SAPscript output interface
TDPAGESLCT--> Pages selected for printing 60
TDCOPIES--> Number of copies 3
TDDEST--> Output destination 4
TDPRINTER--> Device type 8
TDPREVIEW--> Print preview 1
TDNOPREV--> Suppress print preview 1
Table ITCPO - SAPscript output interface
Spool Control
Print Immediately - itcpo-tdimmed = 'X'.
Delete after print - itcpo-tddelete = 'X'.
New spool request - itcpo-tdnewid = 'X'.
Output device - itcpo-tddest = 'SAP1'.
Calling layout script from ABAP/4
call function 'OPEN_FORM'
exporting
form = space
language = 'E'
device = 'PRINTER'
options = itcpo
dialog = 'X'
exceptions form = 5.
call function 'START_FORM'
exporting
form = 'ZSAP_FORM'
language = 'E'
startpage = 'FIRST'.
call function 'WRITE_FORM'
exporting
window = 'MAIN'
type = 'BODY'
element = 'HEADER_TEXT'.
call function 'END_FORM'.
call function 'CLOSE_FORM'
Check this link
Regards
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.