Start of Content Area

Changing the Storage Mode Dynamically  Locate the document in its SAP Library structure

In certain cases, it makes no sense to change a text module using the update task (for example, background programs). In these situations, the system must handle text with storage mode 'V' just like texts with direct storage to the database. The corresponding function modules offer the parameter SAVEMODE_DIRECT, which ensures that a text is stored immediately when calling, for example, SAVE_TEXT. However, you can also use this parameter with COMMIT_TEXT. In this case, all texts are stored in the text memory first and written to the database together at the same time, that is, at the call of COMMT_TEXT. For these texts, you need no COMMIT WORK.