SAP Note 11733 - WRITE or(!) ROLLBACK WORK

Component : TemSe (Repository for temporary sequential objects) - List Processing

Solution : https://service.sap.com/sap/support/notes/11733 (SAP Service marketplace login required)

Summary :
In all R/3 releases, using ROLLBACK WORK and WRITE together is problematic. The WRITE command impacts the spooler, which writes data to the database. A ROLLBACK WORK command deletes all database changes since the last COMMIT, leading to inconsistencies and potential errors. Specifically, subsequent WRITEs may overwrite previous ones, forcing temporary storage within the ABAP/4 list processor. Using ROLLBACK WORK can disrupt list processing, leading to data loss or errors in spooling tasks. To avoid these issues, database changes should be committed cautiously, and writing to the database should be delayed until certain.

Key words :
abap/4 commands rollback work, table tst01 key spool, symptom key word, magic==x'4f444f23', terms spool_temse_error reason, negative line counters, system rolls back, cautionyour safest strategy, automatic append mechanism, exporting no_rollback = 'x'

Related Notes :

645151tbb1: Partial print of log in background
504952Composite note regarding spooling and printing
448619Termination report RVBARCHD in test mode
438930Error SPOOL_TEMSE_ERROR in archiving of routing
409479PPBICO40 Spool_Temse_Error in background job
326140SPOOL_TEMSE_ERROR during order update
320758Termination in RPRTEC00 - SPOOL_TEMSE_ERROR
320120Ext.HE sett:SPOOL_TEMSE_ERROR for update in backgnd
302946SPOOL_TEMSE_ERROR for RSWWWIDE execution in the background
200047SPOOL_TEMSE_ERROR for input tax distr. in backgrnd?
135615Program termination when activating MRP profiles
125964CORUAFW0: Termination due to ROLLBACK and WRITE
96141CATS: ABAP processor: SPOOL_INVALID_JOB
46621No handle for open TemSe object