<?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: Issue regarding read_text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-read-text/m-p/1507582#M234348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I HAVE ONE PROGRAM CREATED BY MYSELF FOR TEXT EDITOR USING READ_TEXT FM.gIVE YOUR MAIL ID I WILL SEND IT TO YOU.ONLY I HAVENT INCLUDED THE SAVING OPTION THERE..TRY TO MODIFY IT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Aug 2006 10:42:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-28T10:42:15Z</dc:date>
    <item>
      <title>Issue regarding read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-read-text/m-p/1507579#M234345</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 had a doubt regarding read_text FM. Suppose I am executing read_text FM and giving textname ADRS_SENDER and ID as ADRS and OBJECT as TEXT but after executing it is returning one line in the LINES table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         My query is that I want to edit this line text according to my requirement. Actually where this text gets stored. I want to edit this. I cannot do it in se37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Pls help me in solving this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I will reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; With regards,&lt;/P&gt;&lt;P&gt;  Abir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2006 10:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-read-text/m-p/1507579#M234345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-28T10:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue regarding read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-read-text/m-p/1507580#M234346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then you have to use SAVE_TEXT function module to modify the existing text&lt;/P&gt;&lt;P&gt;here is the small piece of code, where i am getting the lines already there in the TEXT OBJECT. and then adding my new lines to that IT_LINES internal table and then finally calling SAVE_TEXT to save the changes.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;replace NAME,ID,OBJECT with your values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  LV_NAME  = P_DELV_NO .
  X_HEADER-TDOBJECT = 'VBBK'.
  X_HEADER-TDNAME   = LV_NAME . "P_DELV_NO.
  X_HEADER-TDID     = 'ZMAN'.
  X_HEADER-TDSPRAS  = 'E'.


  CALL FUNCTION 'READ_TEXT'
    EXPORTING
      CLIENT                        = SY-MANDT
      ID                            = X_HEADER-TDID
      LANGUAGE                      = X_HEADER-TDSPRAS
      NAME                          = X_HEADER-TDNAME
      OBJECT                        = X_HEADER-TDOBJECT
*     ARCHIVE_HANDLE                = 0
*     LOCAL_CAT                     = ' '
*   IMPORTING
*     HEADER                        =
    TABLES
      LINES                         = IT_TLINES
   EXCEPTIONS
     ID                            = 1
     LANGUAGE                      = 2
     NAME                          = 3
     NOT_FOUND                     = 4
     OBJECT                        = 5
     REFERENCE_CHECK               = 6
     WRONG_ACCESS_TO_ARCHIVE       = 7
     OTHERS                        = 8
            .
  IF SY-SUBRC &amp;lt;&amp;gt; 0 AND SY-SUBRC  &amp;lt;&amp;gt; 4 .
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

  IT_TLINES-TDFORMAT = '*'.
  LOOP AT IT_TEXT .
    it_lines-tdline  = it_text-line.
   append it_lines.
  endloop.

  CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
      CLIENT                = SY-MANDT
      HEADER                = X_HEADER
*       INSERT                = ' '
      SAVEMODE_DIRECT       = 'X'
*       OWNER_SPECIFIED       = ' '
*       LOCAL_CAT             = ' '
*     IMPORTING
*       FUNCTION              =
*       NEWHEADER             =
    TABLES
      LINES                 = IT_TLINES
     EXCEPTIONS
       ID                    = 1
       LANGUAGE              = 2
       NAME                  = 3
       OBJECT                = 4
       OTHERS                = 5
            .
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
*--save_text error.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2006 10:34:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-read-text/m-p/1507580#M234346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-28T10:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue regarding read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-read-text/m-p/1507581#M234347</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;once data comes into &amp;lt;b&amp;gt;LINES&amp;lt;/b&amp;gt; table, then do modifications to this table data, and then use FM : SAVE_TEXT to save text after changes(data will be stored into STXH table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ws_thead LIKE thead,&lt;/P&gt;&lt;P&gt;      i_tline LIKE TABLE OF tline WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;data : x_matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_mara(4)            type c value 'MARA',&lt;/P&gt;&lt;P&gt;c_zid(4)            type c value 'Z001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE : x_matnr  TO    ws_thead-tdname, &amp;lt;b&amp;gt;&amp;lt;-moving  MATNR to store data&amp;lt;/b&amp;gt;       &lt;/P&gt;&lt;P&gt;  c_mara   TO    ws_thead-tdobject,&lt;/P&gt;&lt;P&gt;         sy-langu  TO    ws_thead-tdspras,&lt;/P&gt;&lt;P&gt;         c_zid   TO    ws_thead-tdid.&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          = ws_thead&lt;/P&gt;&lt;P&gt;      savemode_direct = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      lines           = i_tline&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;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;DATA: lws_id     LIKE  thead-tdid,&lt;/P&gt;&lt;P&gt;        lws_name   LIKE  thead-tdname,&lt;/P&gt;&lt;P&gt;        lws_object LIKE  thead-tdobject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; lws_id = c_zid.&lt;/P&gt;&lt;P&gt;  lws_name = x_matnr. &amp;lt;b&amp;gt;&amp;lt;- reading data using key field(MATNR)&amp;lt;/b&amp;gt;  &lt;/P&gt;&lt;P&gt;lws_object = c_mara.&lt;/P&gt;&lt;P&gt;&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                      = lws_id&lt;/P&gt;&lt;P&gt;      language                = sy-langu&lt;/P&gt;&lt;P&gt;      name                    = lws_name&lt;/P&gt;&lt;P&gt;      object                  = lws_object&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      lines                   = li_tline&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;  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;Regards&lt;/P&gt;&lt;P&gt;Appana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Reward points for useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2006 10:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-read-text/m-p/1507581#M234347</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-08-28T10:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Issue regarding read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-read-text/m-p/1507582#M234348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I HAVE ONE PROGRAM CREATED BY MYSELF FOR TEXT EDITOR USING READ_TEXT FM.gIVE YOUR MAIL ID I WILL SEND IT TO YOU.ONLY I HAVENT INCLUDED THE SAVING OPTION THERE..TRY TO MODIFY IT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2006 10:42:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-read-text/m-p/1507582#M234348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-28T10:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue regarding read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-read-text/m-p/1507583#M234349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lines is a structure like TLINE&lt;/P&gt;&lt;P&gt;if you go to TLINE you ll find two fields TDFORMAT and TDLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This TDLINE store the value for the particular line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can check these tables&lt;/P&gt;&lt;P&gt;EFG_TAB_TLINE-&amp;gt;Table Type TLINE&lt;/P&gt;&lt;P&gt;EXPD_LINES_T-&amp;gt;Table Type for TLINE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2006 10:57:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-read-text/m-p/1507583#M234349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-28T10:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Issue regarding read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-read-text/m-p/1507584#M234350</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; My email id is abir1.mukherjee@gmail.com.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Pls forward it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Abir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 04:38:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-read-text/m-p/1507584#M234350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T04:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issue regarding read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-read-text/m-p/1507585#M234351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to what I understood, U want edit the line from output u got from Read_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can do that by passing the text line into a internal table and modify it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if I am not clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 04:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-read-text/m-p/1507585#M234351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T04:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issue regarding read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-read-text/m-p/1507586#M234352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; as i mentioned earlier, you first use READ_TEXT then your existing text comes into IT_LINES.&lt;/P&gt;&lt;P&gt;then use,&lt;/P&gt;&lt;P&gt;LOOP IT_LINES.&lt;/P&gt;&lt;P&gt; Each IT_LINES-TDLINE will contain the actual text. so do your editing here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY IT_LINES. "to update the changes in the body &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then finally call SAVE_TEXT and send this modified IT_LINES to this function module,it will be saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 05:43:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-regarding-read-text/m-p/1507586#M234352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T05:43:46Z</dc:date>
    </item>
  </channel>
</rss>

