Skip to Content
avatar image
Former Member

Sap script printing

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 23, 2007 at 05:53 AM

    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

    sap-script-and-the-report

    Regards

    Pavan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 23, 2007 at 08:04 AM

    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'.

    Add comment
    10|10000 characters needed characters exceeded