<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Read_Text and Save Text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-and-save-text/m-p/2659975#M613572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ID = 'LTQM'&lt;/P&gt;&lt;P&gt;LANGUAGE = T_QMFE-KZMLA&lt;/P&gt;&lt;P&gt;NAME = L_TEXTNAME&lt;/P&gt;&lt;P&gt;OBJECT = 'QMFE'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;HEADER = TABLE_HEADER&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;LINES = TABLE_LINES&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ID = 1&lt;/P&gt;&lt;P&gt;LANGUAGE = 2&lt;/P&gt;&lt;P&gt;NAME = 3&lt;/P&gt;&lt;P&gt;NOT_FOUND = 4&lt;/P&gt;&lt;P&gt;OBJECT = 5&lt;/P&gt;&lt;P&gt;REFERENCE_CHECK = 6&lt;/P&gt;&lt;P&gt;WRONG_ACCESS_TO_ARCHIVE = 7&lt;/P&gt;&lt;P&gt;OTHERS = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAVE_TEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   CLIENT                = SY-MANDT&lt;/P&gt;&lt;P&gt;    HEADER                = thead&lt;/P&gt;&lt;P&gt;   SAVEMODE_DIRECT       = 'X'&lt;/P&gt;&lt;P&gt;   insert                = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OWNER_SPECIFIED       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LOCAL_CAT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FUNCTION              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEWHEADER             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    LINES                 = it_lines&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ID                    = 1&lt;/P&gt;&lt;P&gt;   LANGUAGE              = 2&lt;/P&gt;&lt;P&gt;   NAME                  = 3&lt;/P&gt;&lt;P&gt;   OBJECT                = 4&lt;/P&gt;&lt;P&gt;   OTHERS                = 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2007 06:57:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-28T06:57:22Z</dc:date>
    <item>
      <title>Read_Text and Save Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-and-save-text/m-p/2659974#M613571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;please give me an example for &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save_Text&lt;/P&gt;&lt;P&gt;Read_Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;in brief and simple language.&lt;/P&gt;&lt;P&gt;please dont provide me links and help material for this.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 06:52:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-and-save-text/m-p/2659974#M613571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T06:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text and Save Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-and-save-text/m-p/2659975#M613572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ID = 'LTQM'&lt;/P&gt;&lt;P&gt;LANGUAGE = T_QMFE-KZMLA&lt;/P&gt;&lt;P&gt;NAME = L_TEXTNAME&lt;/P&gt;&lt;P&gt;OBJECT = 'QMFE'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;HEADER = TABLE_HEADER&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;LINES = TABLE_LINES&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ID = 1&lt;/P&gt;&lt;P&gt;LANGUAGE = 2&lt;/P&gt;&lt;P&gt;NAME = 3&lt;/P&gt;&lt;P&gt;NOT_FOUND = 4&lt;/P&gt;&lt;P&gt;OBJECT = 5&lt;/P&gt;&lt;P&gt;REFERENCE_CHECK = 6&lt;/P&gt;&lt;P&gt;WRONG_ACCESS_TO_ARCHIVE = 7&lt;/P&gt;&lt;P&gt;OTHERS = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAVE_TEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   CLIENT                = SY-MANDT&lt;/P&gt;&lt;P&gt;    HEADER                = thead&lt;/P&gt;&lt;P&gt;   SAVEMODE_DIRECT       = 'X'&lt;/P&gt;&lt;P&gt;   insert                = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OWNER_SPECIFIED       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LOCAL_CAT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FUNCTION              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEWHEADER             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    LINES                 = it_lines&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ID                    = 1&lt;/P&gt;&lt;P&gt;   LANGUAGE              = 2&lt;/P&gt;&lt;P&gt;   NAME                  = 3&lt;/P&gt;&lt;P&gt;   OBJECT                = 4&lt;/P&gt;&lt;P&gt;   OTHERS                = 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 06:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-and-save-text/m-p/2659975#M613572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T06:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text and Save Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-and-save-text/m-p/2659976#M613573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek,&lt;/P&gt;&lt;P&gt;Following is the code for READ_TEXT&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;zz_lines like tline occurs 10 with header line,&lt;/P&gt;&lt;P&gt;zz_text(132),&lt;/P&gt;&lt;P&gt;zz_name like THEAD-TDNAME.&lt;/P&gt;&lt;P&gt;clear: zz_text,zz_insp_text,zz_name,zz_lines[].&lt;/P&gt;&lt;P&gt;zz_name = w_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   CLIENT                        = SY-MANDT&lt;/P&gt;&lt;P&gt;    id                            = 'PRUE'&lt;/P&gt;&lt;P&gt;    language                      = 'E'&lt;/P&gt;&lt;P&gt;    name                          = zz_name&lt;/P&gt;&lt;P&gt;    object                        = 'MATERIAL'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_HANDLE                = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LOCAL_CAT                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    lines                         = zz_lines&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ID                            = 1&lt;/P&gt;&lt;P&gt;   LANGUAGE                      = 2&lt;/P&gt;&lt;P&gt;   NAME                          = 3&lt;/P&gt;&lt;P&gt;   NOT_FOUND                     = 4&lt;/P&gt;&lt;P&gt;   OBJECT                        = 5&lt;/P&gt;&lt;P&gt;   REFERENCE_CHECK               = 6&lt;/P&gt;&lt;P&gt;   WRONG_ACCESS_TO_ARCHIVE       = 7&lt;/P&gt;&lt;P&gt;   OTHERS                        = 8&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at zz_lines.&lt;/P&gt;&lt;P&gt;zz_text = zz_lines-tdline.&lt;/P&gt;&lt;P&gt;concatenate  zz_text zz_insp_text into zz_insp_text separated by space.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nikhil Moghe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 06:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-and-save-text/m-p/2659976#M613573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T06:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text and Save Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-and-save-text/m-p/2659977#M613574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Save Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To re-transfer texts from the internal work areas to the text file, use the function module SAVE_TEXT.The application program does not know whether the text is new or a changed version of an existing text. To be able to find this out, the program must read the text file first.If a text exists, the transferred text lines overwrite the old version. If it does not exist, the system creates it. If you know from the beginning that the text is new, you can suppress this read process using the parameter INSERT and thus improve performance.A text you want to store in the text file must consist of at least one line whose paragraph format or line contents is unequal to SPACE. Otherwise the system automatically deletes this text from the text file.Changes to the text file are valid at once if the text object of the text is set to direct storage. If it is set to storage in update task, the text changes are temporarily stored in the text memory. The function module COMMIT_WORK then transfers them to the log file, from where they are updated with the next COMMIT WORK.The function module SAVE_TEXT can handle only texts that are eventually stored in the text file, that is, text with storage mode 'D' or 'V'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read_Text &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can process texts only if they are stored in the internal work areas of the program. Therefore, you must first transfer a text into the work areas.To transfer the text header of a text into the specified structure and the text lines into the specified lines table, use the function module READ_TEXT.Usually, the system reads a text from the text file. However, for texts with storage in the update task, the system first looks into the text memory to see whether it contains a currently processed version. If so, the system reads this version of the text into the work area, otherwise the text version from the text file.To read a text version stored in the archive, use the parameter ARCHIVE_HANDLE.If the desired text does not exist, READ_TEXT ends with the exception NOT_FOUND. The contents of the work areas for text header and text lines are then undefined. To be able to use these work areas for another text, you must first initialize them with INIT_TEXT.&lt;/P&gt;&lt;P&gt;The function module READ_TEXT also handles text references. It reads the reference chain to its end and supplies the text lines of this text in the lines table as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 07:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-and-save-text/m-p/2659977#M613574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T07:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text and Save Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-and-save-text/m-p/2659978#M613575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order to copy your text you need save_text fm.&lt;/P&gt;&lt;P&gt;the prameters are similar to what you passs it to READ_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here you have to pass it to THEAD all the parms...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thead-tdid = 'KOPF'.&lt;/P&gt;&lt;P&gt; thead-tdobject = 'AUFK'.&lt;/P&gt;&lt;P&gt; THEAD-TDSPRAS = 'EN'.&lt;/P&gt;&lt;P&gt; thead-tdname = '050000020633761'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAVE_TEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   CLIENT                = SY-MANDT&lt;/P&gt;&lt;P&gt;    HEADER                = thead&lt;/P&gt;&lt;P&gt;   SAVEMODE_DIRECT       = 'X'&lt;/P&gt;&lt;P&gt;   insert                = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OWNER_SPECIFIED       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LOCAL_CAT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FUNCTION              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEWHEADER             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    LINES                 = it_lines&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ID                    = 1&lt;/P&gt;&lt;P&gt;   LANGUAGE              = 2&lt;/P&gt;&lt;P&gt;   NAME                  = 3&lt;/P&gt;&lt;P&gt;   OBJECT                = 4&lt;/P&gt;&lt;P&gt;   OTHERS                = 5&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read_text:&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF T_DET OCCURS 0,&lt;/P&gt;&lt;P&gt;       QMNUM LIKE QMEL-QMNUM,&lt;/P&gt;&lt;P&gt;       MBLNR LIKE QMEL-MBLNR,&lt;/P&gt;&lt;P&gt;       LOSMENGE LIKE QALS-LOSMENGE,&lt;/P&gt;&lt;P&gt;      END OF T_DET.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA:F_TDOBJECT LIKE THEAD-TDOBJECT,&lt;/P&gt;&lt;P&gt;     F_TDNAME   LIKE THEAD-TDNAME,&lt;/P&gt;&lt;P&gt;     F_TDID     LIKE THEAD-TDID,&lt;/P&gt;&lt;P&gt;     ITAB_LINES LIKE TLINE OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA:BEGIN OF ITAB OCCURS 10,&lt;/P&gt;&lt;P&gt;      DESC(72),&lt;/P&gt;&lt;P&gt;     END OF ITAB.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  SELECT QMNUM REFNUM QMDAT QMTXT OBJNR QMGRP QMCOD FROM QMEL&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF TABLE T_DET&lt;/P&gt;&lt;P&gt;                              WHERE QMNUM IN S_QMNUM AND&lt;/P&gt;&lt;P&gt;                                    QMART IN S_QMART AND&lt;/P&gt;&lt;P&gt;                                    QMDAT IN S_QMDAT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT T_DET.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   F_TDID     = 'LTQM'.&lt;/P&gt;&lt;P&gt;    F_TDNAME   = T_DET-QMNUM.&lt;/P&gt;&lt;P&gt;    F_TDOBJECT = 'QMEL'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    F_TDID     = 'LTQM'.&lt;/P&gt;&lt;P&gt;    F_TDNAME   = T_DET-QMNUM.&lt;/P&gt;&lt;P&gt;    F_TDOBJECT = 'QMEL'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        CLIENT                  = SY-MANDT&lt;/P&gt;&lt;P&gt;        ID                      = F_TDID&lt;/P&gt;&lt;P&gt;        LANGUAGE                = SY-LANGU&lt;/P&gt;&lt;P&gt;        NAME                    = F_TDNAME&lt;/P&gt;&lt;P&gt;        OBJECT                  = F_TDOBJECT&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        LINES                   = ITAB_LINES&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        ID                      = 1&lt;/P&gt;&lt;P&gt;        LANGUAGE                = 2&lt;/P&gt;&lt;P&gt;        NAME                    = 3&lt;/P&gt;&lt;P&gt;        NOT_FOUND               = 4&lt;/P&gt;&lt;P&gt;        OBJECT                  = 5&lt;/P&gt;&lt;P&gt;        REFERENCE_CHECK         = 6&lt;/P&gt;&lt;P&gt;        WRONG_ACCESS_TO_ARCHIVE = 7&lt;/P&gt;&lt;P&gt;        OTHERS                  = 8.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    DESCRIBE TABLE ITAB_LINES LINES SY-TFILL.&lt;/P&gt;&lt;P&gt;    IF SY-TFILL &amp;gt; 0.&lt;/P&gt;&lt;P&gt;      LOOP AT ITAB_LINES.&lt;/P&gt;&lt;P&gt;        ITAB-QMNUM = T_DET-QMNUM.&lt;/P&gt;&lt;P&gt;        ITAB-DESC = ITAB_LINES-TDLINE.&lt;/P&gt;&lt;P&gt;        APPEND ITAB.&lt;/P&gt;&lt;P&gt;        CLEAR ITAB.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 07:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-and-save-text/m-p/2659978#M613575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T07:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text and Save Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-and-save-text/m-p/2659979#M613576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;READ_TEXT provides a text for the application program in the specified work areas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save_text&lt;/P&gt;&lt;P&gt;SAVE_TEXT writes a text module back to the text file or the text memory, depending on the storage mode of the corresponding text object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this module either to change existing texts or to create new texts. If you know for sure that the text is new, use the parameter INSERT to indicate this. The system then does not have to read the text first, which improves the performance of the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the lines table passed with the function module is empty, the system deletes the text from the text file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 07:07:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-and-save-text/m-p/2659979#M613576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T07:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Read_Text and Save Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-and-save-text/m-p/2659980#M613577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi nikil and Satayanarayana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx for ur instant reply. i have run ur code. its givin error. please tell me wat data is to be declared.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;please provide me the executable code not the one with errors&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 07:10:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-and-save-text/m-p/2659980#M613577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T07:10:11Z</dc:date>
    </item>
  </channel>
</rss>

