cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting Spool Requests from the Buffer during runtime

Former Member
0 Kudos

Hi Peers,

Requirement:

We are priting the 2 different Smartforms for some 1000 deliveries & stapling these 2 forms for each delivery.

For every delivery a spool request is created.This is becoming a basis issue.

Can anyone suggest which function modules we can use to retrieve the spool requests & delete them during run time programmatically.

Thanks in advance!

Regards,

Daniel

Accepted Solutions (1)

Accepted Solutions (1)

naimesh_patel
Active Contributor
0 Kudos

Instead of keeping the spool and running program periodically, You can use this combination to delete the spool just after it got printed.

TDDELETE = 'X'

TDIMMED = 'X'.

If you have Smartform, these parameters are part of structure OUTPUT_OPTIONS

If you have SAPScript, these parameters are part of Strcutre ITCPO

Regards,

Naimesh Patel

Answers (1)

Answers (1)

Former Member
0 Kudos

Try this FM:

l_spoolid = SPOOLID.

CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'

EXPORTING SPOOLID = l_spoolid.