The below code shows how function module CREATE_TEXT is used to create SAP standard texts.
Create SAP standard text DATA: IT_TEXTS type standard table of TLINE, wa_texts like line of it_texts, THEAD TYPE THEAD. **Populate text table wa_texts-tdformat = '*'. "new line wa_texts-tdline = 'First line of text'. append wa_texts to it_texts. clear: wa_texts. wa_texts-tdformat = '='. "continuation line wa_texts-tdline = 'still first section of text'. append wa_texts to it_texts. clear: wa_texts. *** **Also need to Populate THEAD details which can be gathered from the Text Identification Details *** CALL FUNCTION 'CREATE_TEXT' EXPORTING FID = THEAD-TDID FLANGUAGE = THEAD-TDSPRAS FNAME = THEAD-TDNAME FOBJECT = THEAD-TDOBJECT * SAVE_DIRECT = 'X' * FFORMAT = '*' TABLES FLINES = IT_TEXTS EXCEPTIONS NO_INIT = 1 NO_SAVE = 2 OTHERS = 3.