cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Spool Stapling

Former Member
0 Kudos

Hi,

We have a requirement for printing outputs thru a particular batch of released documents using one spool request to make sure that all these outputs from the batch are printed simultaneously in one print job. These outputs are printed on a Label Printer. Outputs are created using Custom Print programs and message determination for Handling Units.

We decided to do Spool Stapling by setting the spool parameters similar so they can get appended to the open spool. Below mentioned is the high level design of the same.

Custom Print Program will create a new spool with parameters as mentioned below. This Spool will be created but not released for printing.

Spool Parameters set thru custom print program:

Field : Description : Type : Value

TDDATASET : Spool request: Name : CHAR 6 : First 6 characters of Batch id u2013 ZWMPCKQUE-PBTCHNO

TDSUFFIX1 : Spool request: Suffix 1 : CHAR 4 : 4 characters starting from 7th character of Batch id u2013 ZWMPCKQUE-PBTCHNO

TDSUFFIX2 : Spool request: Suffix 2 : CHAR 12 : Last 12 characters of Batch id u2013 ZWMPCKQUE-PBTCHNO

TDNEWID : New Spool Request : CHAR 1 : u2018Xu2019

TDIMMED : Print Immediately : CHAR 1 : u2018 u2018

TDCOVTITLE : Text for Cover Page : CHAR 68 : ZWMPCKQUE-PBTCHNO

Afterwards Msg Determination for HU will be triggered. Spools to be created thru msg detm will also have the same parameters as the custom print program. This will ensure that the output created thru msg detm will get appended to the spool created thru custom program.

Spool Parameters set thru msg detm:

Field : Description : Type : Value

TDDATASET : Spool request: Name : CHAR 6 : First 6 characters of Batch id u2013 ZWMPCKQUE-PBTCHNO

TDSUFFIX1 : Spool request: Suffix 1 : CHAR 4 : 4 characters starting from 7th character of Batch id u2013 ZWMPCKQUE-PBTCHNO

TDSUFFIX2 : Spool request: Suffix 2 : CHAR 12 : Last 12 characters of Batch id u2013 ZWMPCKQUE-PBTCHNO

TDNEWID : New Spool Request : CHAR 1 : u2018 u2019

TDIMMED : Print Immediately : CHAR 1 : u2018 u2018

TDCOVTITLE : Text for Cover Page : CHAR 68 : ZWMPCKQUE-PBTCHNO

Outputs are issued to same printer thru both these processes.

Now the issue is that Spool Stapling works inconsistently. Sometimes the batch appends all the spools for a batch in one request and sometimes it doesnt.

The instances when it properly appends the outputs to spool - I have noticed that field TSP01-RQCMODE is set to 1. The instances when it doesnt staple the spool field value in TSP01-RQCMODE for the spools created is different.

Is there a way programatically set this field TSP01-RQCMODE thru print programs?

Is there a better way of doing what we are trying to do here?

Waiting for your expert opinions.

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello

I cannot comment regarding customer coding but if a large amount of spools in a short period are created consider appending spools to existing spool requests rather than creating a new spool each time (as this is what I believe this customer code is trying to achieve) Refer to SAP Notes 85318 and 16410.

Regards.