cancel
Showing results for 
Search instead for 
Did you mean: 

Old spool is appending

Former Member
0 Kudos

Hi,

when ever i run the script, it is generating output to spool. but every time when i run the script it is appending the old spool.

It is not generating the new spool request. we are working in ECC 6.0

Any clue?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Do you have a z Print program for your script???

If yes.. Then found where are you calling OPEN_FORM ..

There is a Parameter in this form called OPTIONS ,, Pass here *TDNEWID = 'X' * .. It will always generate a new spool request for your form..

Code like below..


data : s_itcpo type itcpo.     
s_itcpo-tdimmed  = 'X'. 
  s_itcpo-tddelete = 'X'. 
  s_itcpo-tdnewid  = 'X'. 
  s_itcpo-TDNEWID = 'X'   " here a new spool request parameter is set 

*     Display one dialog for user. Then enable several SAP-Script 
  call function 'OPEN_FORM' 
    exporting 
      device   = 'PRINTER' 
      dialog   = 'X' 
      language = sy-langu 
      options  = s_itcpo ----- > here is the structure 
    importing 
      language = sy-langu 
    exceptions 
      canceled = 1 
      device   = 2 
      form     = 3 
      options  = 4 
      unclosed = 5 
      others   = 6.

Edited by: Lokesh Tarey on Jul 16, 2010 12:16 PM

former_member272911
Participant
0 Kudos

Hi Lokesh,

Answer is correct. You need to pass "X" to the field to generate new spool whenver new spool is required.

Thanks

kamath

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

please check in printer setting in SPAD transaction in tab output attributes in the second dropdown box whether it was maintianed as copies as separate output requests .

Regards,

Chandra Kavali

Former Member
0 Kudos

Hi,

If you testing for same output type and document it will append the old spool request. You need to delete the spool for each and every testing of spool.

Regards,

Chandra Kavali

Former Member
0 Kudos

hi,

This setting is from the Basis side.

u need to talk to them.