<?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 EDIT_TEXT function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-text-function/m-p/1192127#M128804</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;I am using EDIT_TEXT function to show and save text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need in some cases to open that screen in read-only mode, is there any way I can do this?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2006 19:34:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-30T19:34:15Z</dc:date>
    <item>
      <title>EDIT_TEXT function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-text-function/m-p/1192127#M128804</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;I am using EDIT_TEXT function to show and save text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need in some cases to open that screen in read-only mode, is there any way I can do this?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 19:34:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-text-function/m-p/1192127#M128804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T19:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: EDIT_TEXT function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-text-function/m-p/1192128#M128805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; You can use the same EDIT_TEXT also to open in read only mode.Just pass parameter DISPLAY as 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 19:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-text-function/m-p/1192128#M128805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T19:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: EDIT_TEXT function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-text-function/m-p/1192129#M128806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the display parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002.

data: header type thead.
data: txt_lines type table of tline with header line.
&amp;lt;b&amp;gt;data: mode(1) type c.

parameters: p_edit radiobutton group grp1 default 'X',
            p_disp radiobutton group grp1.&amp;lt;/b&amp;gt;

* Set up the text header
header-tdobject = 'AUFK'.
header-tdname   = '001000000001'.
header-tdid     = 'LTXT'.
header-tdspras  = sy-langu.
header-tdlinesize = 70.

* First read the text, if there is any.
call function 'READ_TEXT'
  exporting
*   CLIENT                        = SY-MANDT
    id                            = header-tdid
    language                      = sy-langu
    name                          = header-tdname
    object                        = header-tdobject
*   ARCHIVE_HANDLE                = 0
*   LOCAL_CAT                     = ' '
* IMPORTING
*   HEADER                        =
  tables
    lines                         = txt_lines
* 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.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.



&amp;lt;b&amp;gt;if p_edit = 'X'.
  mode = space.
else.
  mode = 'X'.
endif.&amp;lt;/b&amp;gt;

* throw editor, allow user to change
call function 'EDIT_TEXT'
  exporting
&amp;lt;b&amp;gt;    display             = mode&amp;lt;/b&amp;gt;
*   EDITOR_TITLE        = ' '
    header              = header
*   PAGE                = ' '
*   WINDOW              = ' '
    save                = 'X'
*   LINE_EDITOR         = ' '
*   CONTROL             = ' '
*   PROGRAM             = ' '
*   LOCAL_CAT           = ' '
* IMPORTING
*   FUNCTION            =
*   NEWHEADER           =
*   RESULT              =
  tables
    lines               = txt_lines
* EXCEPTIONS
*   ID                  = 1
*   LANGUAGE            = 2
*   LINESIZE            = 3
*   NAME                = 4
*   OBJECT              = 5
*   TEXTFORMAT          = 6
*   COMMUNICATION       = 7
*   OTHERS              = 8
          .
if sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.

* When user comes back from editor, save the text
* Only for edit mode.
&amp;lt;b&amp;gt;check mode = space.&amp;lt;/b&amp;gt;

call function 'SAVE_TEXT'
  exporting
    client                = sy-mandt
    header                = header
*   INSERT                = ' '
*   SAVEMODE_DIRECT       = ' '
*   OWNER_SPECIFIED       = ' '
*   LOCAL_CAT             = ' '
* IMPORTING
*   FUNCTION              =
*   NEWHEADER             =
  tables
    lines                 = txt_lines
* EXCEPTIONS
*   ID                    = 1
*   LANGUAGE              = 2
*   NAME                  = 3
*   OBJECT                = 4
*   OTHERS                = 5
          .
if sy-subrc &amp;lt;&amp;gt; 0.
* 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;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 19:46:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-text-function/m-p/1192129#M128806</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-30T19:46:17Z</dc:date>
    </item>
  </channel>
</rss>

