<?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: Lauching the SCRIPT editor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lauching-the-script-editor/m-p/1082889#M98359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can use EDIT_TEXT if we want to do it programatically. I want to lauch the SCRIPT editor on clicking on a button so that the user can type his text and SAVE it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Rahul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Nov 2005 09:55:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-27T09:55:45Z</dc:date>
    <item>
      <title>Lauching the SCRIPT editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lauching-the-script-editor/m-p/1082887#M98357</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;Can you suggest me if there is any function module which is going to open SCRIPT editor. On passing the THEAD the contents for that object should be displayed in the editor. The user should be able to edit it and SAVE it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Rahul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Nov 2005 09:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lauching-the-script-editor/m-p/1082887#M98357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-27T09:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lauching the SCRIPT editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lauching-the-script-editor/m-p/1082888#M98358</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 use EDIT_TEXT fm. Do a where-used list on the fm to understand how it can be called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also take a look at the following sample code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ls_thead LIKE thead,&lt;/P&gt;&lt;P&gt;        lt_lines LIKE TABLE OF tline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ls_thead-tdname = 'ZTESTTEXT'.&lt;/P&gt;&lt;P&gt;      ls_thead-tdobject = 'TEXT'.&lt;/P&gt;&lt;P&gt;      ls_thead-tdid = 'ST'.&lt;/P&gt;&lt;P&gt;      ls_thead-tdspras = sy-langu.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        CLIENT                        = SY-MANDT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          id                            = ls_thead-tdid&lt;/P&gt;&lt;P&gt;          language                      = sy-langu&lt;/P&gt;&lt;P&gt;          name                          = ls_thead-tdname&lt;/P&gt;&lt;P&gt;          object                        = ls_thead-tdobject&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;/UL&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;         header                         = ls_thead&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          lines                         = lt_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 NE 0.&lt;/P&gt;&lt;P&gt;****Create New Text&lt;/P&gt;&lt;P&gt;****Initialize Text - Get TTXOB settings like line size&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'INIT_TEXT'&lt;/P&gt;&lt;P&gt;             EXPORTING&lt;/P&gt;&lt;P&gt;                  id       = ls_thead-tdid&lt;/P&gt;&lt;P&gt;                  language = sy-langu&lt;/P&gt;&lt;P&gt;                  name     = ls_thead-tdname&lt;/P&gt;&lt;P&gt;                  object   = ls_thead-tdobject&lt;/P&gt;&lt;P&gt;             IMPORTING&lt;/P&gt;&lt;P&gt;                  header   = ls_thead&lt;/P&gt;&lt;P&gt;             TABLES&lt;/P&gt;&lt;P&gt;                  lines    = lt_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;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'EDIT_TEXT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          display             = space&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        EDITOR_TITLE        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          header              = ls_thead&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        PAGE                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          window              = ' '&lt;/P&gt;&lt;P&gt;          save                = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        LINE_EDITOR         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        CONTROL             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        PROGRAM             = ' '&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;/UL&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        FUNCTION            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         newheader           = ls_thead&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        RESULT              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          lines               = lt_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;         linesize            = 3&lt;/P&gt;&lt;P&gt;         name                = 4&lt;/P&gt;&lt;P&gt;         object              = 5&lt;/P&gt;&lt;P&gt;         textformat          = 6&lt;/P&gt;&lt;P&gt;         communication       = 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 'I' 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;LI level="1" type="ul"&gt;&lt;P&gt;       EXIT.&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;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Pinnamaneni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Nov 2005 09:36:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lauching-the-script-editor/m-p/1082888#M98358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-27T09:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lauching the SCRIPT editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lauching-the-script-editor/m-p/1082889#M98359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can use EDIT_TEXT if we want to do it programatically. I want to lauch the SCRIPT editor on clicking on a button so that the user can type his text and SAVE it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Rahul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Nov 2005 09:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lauching-the-script-editor/m-p/1082889#M98359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-27T09:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lauching the SCRIPT editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lauching-the-script-editor/m-p/1082890#M98360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purpose of Function module EDIT_TEXT is to call SCRIPT Editor only. The only prerequisite is to give a name to the text that will be entered by user. User can still type his text once the editor appears and then save it too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think on clicking your button, you can prompt user for a text name (this TDNAME you have to save some where if user can also change it afterwards) and then call EDIT_TEXT to take him to the script editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample code I gave you works for both create case and then change case (if user wants to change the text that is saved already).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Pinnamaneni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Nov 2005 10:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lauching-the-script-editor/m-p/1082890#M98360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-27T10:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Lauching the SCRIPT editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lauching-the-script-editor/m-p/1082891#M98361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After calling the EDIT_TEXT function module do we need to call any other function module as the modified text is not getting reflected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Rahul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Nov 2005 11:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lauching-the-script-editor/m-p/1082891#M98361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-27T11:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Lauching the SCRIPT editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lauching-the-script-editor/m-p/1082892#M98362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should call SAVE_TEXT after calling EDIT_TEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Nov 2005 11:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lauching-the-script-editor/m-p/1082892#M98362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-27T11:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Lauching the SCRIPT editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lauching-the-script-editor/m-p/1082893#M98363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have to use COMMIT_TEXT to save the texts but normally but EDIT_TEXT call with SAVE = 'X' parameter it should save automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points and close the post if this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Nov 2005 11:50:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lauching-the-script-editor/m-p/1082893#M98363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-27T11:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Lauching the SCRIPT editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lauching-the-script-editor/m-p/1082894#M98364</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 agree with Sri, I forgot those parameter, if you set SAVE, fm EDIT_TEXT call directly fm SAVE_TEXT, the problem is this fm is called without to set the parameter SAVEMODE_DIRECT, so probably you need a commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try to do this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'EDIT_TEXT'&lt;/P&gt;&lt;P&gt;  ............&lt;/P&gt;&lt;P&gt;  SAVE = SPACE&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;  ...........&lt;/P&gt;&lt;P&gt;  SAVEMODE_DIRECT = 'X'&lt;/P&gt;&lt;P&gt;  .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Nov 2005 12:02:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lauching-the-script-editor/m-p/1082894#M98364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-27T12:02:53Z</dc:date>
    </item>
  </channel>
</rss>

