Stop the combining of spool request to an existing one
Q:this is a general printing question. currently, system has 'Print Immediately' unchecked for all users, so all printings are hold as spool requests and not printed immediately.
however, if a spool request is generated from the same transaction as previous spool requests, they are accumulated into a single spool request- hence many pages will be printed if user sets to 'print immediately'.
how can we have a different spool request for every request to print? and not add on to previous spool requests.
A:you can pass TDNEWID = 'X'. it will generate the new spool number each time JOB_OUTPUT_OPTIONS-TDNEWID = 'X'.
CALL FUNCTION FM_NAME EXPORTING CONTROL_PARAMETERS = CONTROL OUTPUT_OPTIONS = OUTPUT USER_SETTINGS = ' ' EKKO = L_DOC-XEKKO PEKKO = L_DOC-XPEKKO DRUVO = L_DRUVO IMPORTING JOB_OUTPUT_OPTIONS = JOB_OUTPUT_OPTIONS
PRI_PARAMS-PRNEW or ITCPO-TDNEWID: With 'X', a new spool order is created, with ' ' it is tried to attach to an existing spool order. Therefore, name, output device, number of prints and the format must match. In addition, the existent spool order must not already be completed. This can occur if a spool order is released for output. If no matching spool order can be found, then, a new spool order is created for this case as well.
REFER TO:https://forums.sdn.sap.com/thread.jspa?threadID=1342730&tstart=0