<?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: error in FM read text/save text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440353#M209542</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;see the below code&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                            = 'FKK0'&lt;/P&gt;&lt;P&gt;        language                      = sy-langu&lt;/P&gt;&lt;P&gt;        name                          = w_text&lt;/P&gt;&lt;P&gt;        object                        = 'FKKKO'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        lines                         = it_read_line&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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    LOOP AT it_read_line.
      MOVE: it_read_line-tdline TO it_fline-tdline.
      APPEND it_fline.
    ENDLOOP.  " LOOP AT notes&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Creating the TEXT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'CREATE_TEXT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        fid               = 'FKK0'&lt;/P&gt;&lt;P&gt;        flanguage         = sy-langu&lt;/P&gt;&lt;P&gt;        fname             = w_text&lt;/P&gt;&lt;P&gt;        fobject           = 'FKKKO'&lt;/P&gt;&lt;P&gt;        save_direct       = 'X'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        flines            = it_fline&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        NO_INIT           = 1&lt;/P&gt;&lt;P&gt;        NO_SAVE           = 2&lt;/P&gt;&lt;P&gt;        OTHERS            = 3.&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;    CLEAR w_text.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here, just get the text using FM 'READ_TEXT' then move to another Internal table adding the new text to that internal table then call the FM 'CREATE_TEXT', &lt;/P&gt;&lt;P&gt;so if you have the new text then it will add to the existing one, if there is no new text then it will create the old one itself..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you got my point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jun 2006 07:23:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-28T07:23:14Z</dc:date>
    <item>
      <title>error in FM read text/save text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440346#M209535</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;&lt;/P&gt;&lt;P&gt;I am using FM read text and save text respectively to read the already existing value in text element and concatenate with new text and then save the text using save text FM and this method is perfectly working fine in this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If when there is no text to be read while using read text I am getting an error and hence could not able to save my new text and the program is terminating.How to handle this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is with reference to text elements on text tab in the header section of transaction VL02N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrads&lt;/P&gt;&lt;P&gt;pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 07:06:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440346#M209535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T07:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: error in FM read text/save text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440347#M209536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;   Remove the &amp;lt;b&amp;gt;exception handling&amp;lt;/b&amp;gt; after the &amp;lt;b&amp;gt;READ_TEXT&amp;lt;/b&amp;gt; think this is the problem. It wont cause any problem. After that you know the text, id and object and save with the new text using &amp;lt;b&amp;gt;SAVE_TEXT&amp;lt;/b&amp;gt;. It will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tushar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 07:15:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440347#M209536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T07:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: error in FM read text/save text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440348#M209537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try catching the errors in the exceptions parameter of the function module, using if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 07:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440348#M209537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T07:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: error in FM read text/save text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440349#M209538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;comment the execptions in READ_TEXT FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;comment the MESSAGE statement after SY_SUBRC check&lt;/P&gt;&lt;P&gt;after calling READ_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shashank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 07:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440349#M209538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T07:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: error in FM read text/save text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440350#M209539</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;you can also use INIT_TEXT when creating a new text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 07:18:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440350#M209539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T07:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: error in FM read text/save text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440351#M209540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Pavan Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following Code for F.M READ_TEXT &amp;amp; SAVE_TEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF XTHEAD.&lt;/P&gt;&lt;P&gt;         INCLUDE STRUCTURE THEAD.&lt;/P&gt;&lt;P&gt;DATA: END OF XTHEAD.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ZZTLINE OCCURS 10.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE TLINE.&lt;/P&gt;&lt;P&gt;DATA: END OF ZZTLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    XTHEAD-TDID     = 'ZPPM'.          "TEXT-ID&lt;/P&gt;&lt;P&gt;    XTHEAD-TDSPRAS  = SY-LANGU.        "Language&lt;/P&gt;&lt;P&gt;    XTHEAD-TDNAME   = 'ZTKF'.          "identification&lt;/P&gt;&lt;P&gt;    CONCATENATE SY-TCODE(5) ITAB0300POS-AUFNR&lt;/P&gt;&lt;P&gt;           INTO XTHEAD-TDNAME.&lt;/P&gt;&lt;P&gt;    XTHEAD-TDOBJECT = 'TEXT'.          "Object type top/position&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                            = XTHEAD-TDID&lt;/P&gt;&lt;P&gt;    LANGUAGE                      = XTHEAD-TDSPRAS&lt;/P&gt;&lt;P&gt;    NAME                          = XTHEAD-TDNAME&lt;/P&gt;&lt;P&gt;    OBJECT                        = XTHEAD-TDOBJECT&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   HEADER                         = XTHEAD&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    LINES                         =  ZZTLINE&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 = 0.&lt;/P&gt;&lt;P&gt;      REFRESH ZZTLINE.&lt;/P&gt;&lt;P&gt;      ZZTLINE-TDLINE = ITAB0300POS-BEM.&lt;/P&gt;&lt;P&gt;      APPEND ZZTLINE.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'SAVE_TEXT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          HEADER                = XTHEAD&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          FUNCTION              = ZFUNCTION&lt;/P&gt;&lt;P&gt;          NEWHEADER             = XTHEAD&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          LINES                 = ZZTLINE&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;    ELSE.&lt;/P&gt;&lt;P&gt;      XTHEAD-TDID     = 'ZPPM'.        "TEXT-ID&lt;/P&gt;&lt;P&gt;      XTHEAD-TDSPRAS  = SY-LANGU.      "Language&lt;/P&gt;&lt;P&gt;      XTHEAD-TDNAME   = 'ZTKF'.        "identification&lt;/P&gt;&lt;P&gt;      CONCATENATE SY-TCODE(5) ITAB0300POS-AUFNR&lt;/P&gt;&lt;P&gt;             INTO XTHEAD-TDNAME.&lt;/P&gt;&lt;P&gt;      XTHEAD-TDOBJECT = 'TEXT'.        "Object type top/position&lt;/P&gt;&lt;P&gt;      REFRESH ZZTLINE.&lt;/P&gt;&lt;P&gt;      ZZTLINE-TDLINE = ITAB0300POS-BEM.&lt;/P&gt;&lt;P&gt;      APPEND ZZTLINE.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'CREATE_TEXT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;              FID               = XTHEAD-TDID&lt;/P&gt;&lt;P&gt;              FLANGUAGE         = XTHEAD-TDSPRAS&lt;/P&gt;&lt;P&gt;              FNAME             = XTHEAD-TDNAME&lt;/P&gt;&lt;P&gt;              FOBJECT           = XTHEAD-TDOBJECT&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;               FLINES           = ZZTLINE&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;               NO_INIT = 01&lt;/P&gt;&lt;P&gt;               NO_SAVE = 02.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 07:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440351#M209540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T07:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: error in FM read text/save text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440352#M209541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tushar!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed I removed the exception handling part and tested but my code is getting struck at the read text FM giving an error "Text 80006463 ID ZHIS Language EN not found".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 07:22:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440352#M209541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T07:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: error in FM read text/save text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440353#M209542</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;see the below code&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                            = 'FKK0'&lt;/P&gt;&lt;P&gt;        language                      = sy-langu&lt;/P&gt;&lt;P&gt;        name                          = w_text&lt;/P&gt;&lt;P&gt;        object                        = 'FKKKO'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        lines                         = it_read_line&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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    LOOP AT it_read_line.
      MOVE: it_read_line-tdline TO it_fline-tdline.
      APPEND it_fline.
    ENDLOOP.  " LOOP AT notes&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Creating the TEXT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'CREATE_TEXT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        fid               = 'FKK0'&lt;/P&gt;&lt;P&gt;        flanguage         = sy-langu&lt;/P&gt;&lt;P&gt;        fname             = w_text&lt;/P&gt;&lt;P&gt;        fobject           = 'FKKKO'&lt;/P&gt;&lt;P&gt;        save_direct       = 'X'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        flines            = it_fline&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        NO_INIT           = 1&lt;/P&gt;&lt;P&gt;        NO_SAVE           = 2&lt;/P&gt;&lt;P&gt;        OTHERS            = 3.&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;    CLEAR w_text.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here, just get the text using FM 'READ_TEXT' then move to another Internal table adding the new text to that internal table then call the FM 'CREATE_TEXT', &lt;/P&gt;&lt;P&gt;so if you have the new text then it will add to the existing one, if there is no new text then it will create the old one itself..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you got my point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 07:23:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440353#M209542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T07:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: error in FM read text/save text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440354#M209543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;   Remove the sy-subrc check after the READ_TEXT funciton module. to the internal table where u pass to the SAVE_TEXT append the new text you want to save and do the save part. Hope this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tushar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 08:38:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440354#M209543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T08:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: error in FM read text/save text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440355#M209544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;   Remove the sy-subrc check after the READ_TEXT funciton module. to the internal table where u pass to the SAVE_TEXT append the new text you want to save and do the save part. Hope this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tushar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 08:40:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440355#M209544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T08:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: error in FM read text/save text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440356#M209545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first find the Correct parameters TDID,TDNAME ,TDOBJ from STXH table and then proceed.can i see your code, so that it is easy to tell what is wrong.&lt;/P&gt;&lt;P&gt;TDNAME should be padded with zeroes.&lt;/P&gt;&lt;P&gt;say sales order.(VBELN)if you give 12345 then it will give error.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;0000012345&amp;lt;/b&amp;gt; you should pass with padded zeroes. it if item then it should be &amp;lt;b&amp;gt;0000012345000010&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;try that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 08:52:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-read-text-save-text/m-p/1440356#M209545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T08:52:10Z</dc:date>
    </item>
  </channel>
</rss>

