<?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 Saving text editor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326467#M796803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I learnt that I will need to use SAVE_TEXT module to save what is inside my text editor with the codes as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&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;EXPORTING CLIENT = SY-MANDT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HEADER = ?...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT = SPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAVEMODE_DIRECT = SPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OWNER_SPECIFIED = SPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING FUNCTION =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEWHEADER =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES LINES = ?...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS ID =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LANGUAGE =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECT =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the line of code TABLE LINES = ?, what should I put for the ? to store the value of what is in the text editor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I ask if someone can give me examples of SAVE_TEXT for text editor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be given to any answer that can somehow answer my questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2008 02:30:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-22T02:30:00Z</dc:date>
    <item>
      <title>Saving text editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326467#M796803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I learnt that I will need to use SAVE_TEXT module to save what is inside my text editor with the codes as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&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;EXPORTING CLIENT = SY-MANDT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HEADER = ?...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT = SPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAVEMODE_DIRECT = SPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OWNER_SPECIFIED = SPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING FUNCTION =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEWHEADER =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES LINES = ?...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS ID =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LANGUAGE =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECT =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the line of code TABLE LINES = ?, what should I put for the ? to store the value of what is in the text editor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I ask if someone can give me examples of SAVE_TEXT for text editor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be given to any answer that can somehow answer my questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 02:30:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326467#M796803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T02:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Saving text editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326468#M796804</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;To determine the values for HEADER, Use menupath: Goto-&amp;gt;Header in editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Over here, you will find details like Name, Object, Language and ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Observe the pattern for Name, it depends on the object. ( for sales order item it can be: &amp;lt;sales order number + item number).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass these information to the structure of type THEAD and use the same for FM: &lt;STRONG&gt;SAVE_TEXT&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 02:35:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326468#M796804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T02:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Saving text editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326469#M796805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then how about my TABLE LINES = ? code? What should I put at ? to store my text editor?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 02:38:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326469#M796805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T02:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Saving text editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326470#M796806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the Bare minimum required parameters for SAVE_TEXT&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;            HEADER          = XTHEAD&lt;/P&gt;&lt;P&gt;            SAVEMODE_DIRECT = 'X'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            LINES           = TLINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now going back to your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to pass the Internal table &lt;STRONG&gt;TLINES&lt;/STRONG&gt; with the Text that needs to be saved inTables  Parameter &lt;STRONG&gt;LINES&lt;/STRONG&gt;&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;Vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 02:40:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326470#M796806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T02:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Saving text editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326471#M796807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABLE_LINES will store the text content of your editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field TDLINE will have the content and TDFORMAT is to store paragraph format if any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 02:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326471#M796807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T02:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Saving text editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326472#M796808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So TDLINE and TDFORMAT is the default field names of my text editor?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 02:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326472#M796808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T02:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Saving text editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326473#M796809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample with reference to my example in my first post&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XTHEAD-tdobject = 'VBBK'. &lt;/P&gt;&lt;P&gt;XTHEAD-tdname = delivery number. &lt;/P&gt;&lt;P&gt;XTHEAD-tdspras = language. &lt;/P&gt;&lt;P&gt;XTHEAD-tdid = text id. "for example: Z022 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tlines-tdformat = '*'. &lt;/P&gt;&lt;P&gt;Tlines-tdline = your text that you want to write . &lt;/P&gt;&lt;P&gt;&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;Vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 02:50:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326473#M796809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T02:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Saving text editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326474#M796810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How am I going to save my text editor? From what I see your codes, you used non-text editor to save.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 02:55:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326474#M796810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T02:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Saving text editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326475#M796811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes JuzMe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TDFORMAT and TDLINE are from editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 02:57:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326475#M796811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T02:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Saving text editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326476#M796812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I tried my codes in the SAVE-TEXT FM as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;LINES = TDLINE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i need to declare TDLINE first? Any example of declaration for me to refer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 03:07:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326476#M796812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T03:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Saving text editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326477#M796813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check below example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: st_head TYPE thead,
      i_tline TYPE STANDARD TABLE OF tline,
      wa_tline TYPE tline.

CALL FUNCTION 'SAVE_TEXT'
  EXPORTING
    header          = st_head
    savemode_direct = 'X'
  TABLES
    lines           = i_tline.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 03:11:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326477#M796813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T03:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Saving text editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326478#M796814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: XTHEAD   LIKE THEAD  .&lt;/P&gt;&lt;P&gt; DATA: TLINES LIKE TLINE    OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 03:11:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326478#M796814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T03:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Saving text editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326479#M796815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the codes provided. But I could not really save it to my database. How am i suppose to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My table name is ZPROGRAM_TABLE and I want to save what is in the text editor into the column name called PROGRAM_CODE. How am I suppose to modify the save text accordingly to be able to save to my table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 03:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-text-editor/m-p/3326479#M796815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T03:19:03Z</dc:date>
    </item>
  </channel>
</rss>

