If a text has the attribute 'direct storage', all changes are written to the text database as soon as SAPscript calls the corresponding function modules (SAVE_TEXT, DELETE_TEXT,...). Since SAPscript does not create backup copies of texts, the old version of the text can no longer be reconstructed.
The function module SAVE_TEXT is called implicitly within the function modules EDIT_TEXT and EDIT_TEXT_INLINE. To avoid too many accesses to the text database (performance) or to synchronize the modification time of the texts with those of the application object, you can deactivate automatic storage for these function modules (parameter SAVE). However, you must then call the function module SAVE_TEXT explicitly at the appropriate time. This is usually the time when the other application data is stored as well. This procedure ensures that the system executes all changes to an application object simultaneously.