Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Spool

Former Member
0 Likes
1,425

Hi all,

Could any one explain me about spool and the values given as input to a program to generate the Spool.

Please help me...

Thanks in advance...

5 REPLIES 5
Read only

Former Member
0 Likes
863

HI,

Spool request means the Output of a Report that can be printed using an Output device.

SAP stores the spool request. You can create print requests from this spool request as many times as you wish.

SAP-Spool, among other spooling systems, can serve as source for the output data to be processed. Here you can define whether the SAP-Spool interface should be active or not. Reports can be transferred via SAP exits to Entire Output Management for further processing, instead of being printed by the SAP Spooling System. The data are stored in the specified Adabas file (NOM Container File) and an entry is created for each Report in an internal queue. These jobs are run if SAP-Spool interface is activated.

SP01 is the transaction to run the spool requests

SUBMIT rep ... TO SAP-SPOOL.

This is the syntax to submit the report to spool request

Here is a sample program

DATA: PARAMS LIKE PRI_PARAMS,
      DAYS(1)  TYPE N VALUE 2,
      COUNT(3) TYPE N VALUE 1,
      VALID    TYPE C.

CALL FUNCTION 'GET_PRINT_PARAMETERS'
  EXPORTING DESTINATION           = 'LT50'
            COPIES                = COUNT
            LIST_NAME             = 'TEST'
            LIST_TEXT             = 'SUBMIT ... TO SAP-SPOOL'
            IMMEDIATELY           = 'X'
            RELEASE               = 'X'
            NEW_LIST_ID           = 'X'
            EXPIRATION            = DAYS
            LINE_SIZE             = 79
            LINE_COUNT            = 23
            LAYOUT                = 'X_PAPER'
            SAP_COVER_PAGE        = 'X'
            COVER_PAGE            = 'X'
            RECEIVER              = 'SAP*'
            DEPARTMENT            = 'System'
            NO_DIALOG             = ' '
  IMPORTING OUT_PARAMETERS        = PARAMS
            VALID                 = VALID.

IF VALID <> SPACE.
  SUBMIT RSTEST00 TO SAP-SPOOL
    SPOOL PARAMETERS PARAMS
    WITHOUT SPOOL DYNPRO.
ENDIF.

Please check this link

http://help.sap.com/saphelp_nw04/helpdata/en/7e/36e4c4023411d399b70000e83dd9fc/content.htm

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7a5f4061-0a01-0010-c9bc-a4e...

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/submit_t.htm

reward if helpful

raam

Read only

Former Member
0 Likes
863

Hello,

Spool request means the Output of a Report that can be printed using an Output device.

When we execute a Report in Background by default the Output will be Sent to Spool.

We can See the Spool requests (also print ) in Tcode SP01.

Regards,

Deepu.k

Read only

Former Member
0 Likes
863

Hi,

Spool request means the Output of a Report that can be printed using an Output device.

whenever we execute the Report in Background by default the Output will be Sent to Spool.

We can See the Spool requests (and also print them) in Tcode SP01.

check this link

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7a5f4061-0a01-0010-c9bc-a4e4cb10...

Regards

Kiran Sure

Read only

Former Member
0 Likes
863

hi,

Spool is used to hold the output data while we run the job in batch

mode it will be created when u run a job in BG

Spool is nothing but a repository which holds all the requests to the

output devices. For example a printer could be an output device. So a

request which goes to the printer from application is called a spool

request and managed by spool work process in SAP. You can have only

one work process for spool.

The spool requests assigned-- as

The step information is stored in table TBTCP. This has space for exactly one spool request (field LISTIDENT). You can only store one spool request even if a step generates several spool requests during processing. In this case, the application is responsible for a "spool overview".

Whenever you run any transaction, lets say a big report, you require it to run in the background, so you need to see the output when it is finished...so where does SAP will store it?...Answer is it is stored in the spool.

Output of all the background job is stored in the spool.

You can view your spools using transaction SP01.

TSP01 is the table to get spool request number

and the spool request number will be TSP01-RQIDENT.

Chk this links.

http://help.sap.com/saphelp_nw04/helpdata/en/7e/36e4c4023411d399b70000e83dd9fc/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/c7/58c905e5bf11d18e2b0000e83dd9fc/content.htm

http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/94/45c53bcc422d42e10000000a114084/frameset.htm

http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/94/45c53bcc422d42e10000000a114084/frameset.htm

cheers,

sharad.

Read only

Former Member
0 Likes
863

Hi,

A spool gets generated when you execute a report/list/form output in the background.

The spool can be printed as many timea as you like later.

The spool numbers are stored in the table TSP01 and spools can be viewed in the transaction SP02,

Regards,

Ravi Kanth Talagana