<?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: Creating a long text using ABAP code.. fm SAVE_TEXT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-long-text-using-abap-code-fm-save-text/m-p/2972501#M701583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;depending on the situation and object ID you may have to use FM COMMIT_TEXT. See documentation of this module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2007 17:44:53 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2007-11-08T17:44:53Z</dc:date>
    <item>
      <title>Creating a long text using ABAP code.. fm SAVE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-long-text-using-abap-code-fm-save-text/m-p/2972499#M701581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you create an order via IW31 one of the options is to click on the text button and create a long text. I am basically trying to mimic this action from within my ABAP code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text id details are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text Name       500000015000046  which is (5000000 + order number)&lt;/P&gt;&lt;P&gt;Language        EN&lt;/P&gt;&lt;P&gt;Text ID            KOPF         Order header text&lt;/P&gt;&lt;P&gt;Text Object      AUFK       Order text &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i manually create the text within the transaction i am then able to view and update it via function modules READ_TEXT and SAVE_TEXT. But if the text has not already been created READ_TEXT obviously returns nothing as it does not exist and SAVE_TEXT does not seem to created it! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know how i would go about creating this text using ABAP code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this make a bit of sense &lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Mart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2007 17:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-long-text-using-abap-code-fm-save-text/m-p/2972499#M701581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-08T17:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a long text using ABAP code.. fm SAVE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-long-text-using-abap-code-fm-save-text/m-p/2972500#M701582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Use INIT_TEXT and then use READ_TEXT, it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2007 17:12:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-long-text-using-abap-code-fm-save-text/m-p/2972500#M701582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-08T17:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a long text using ABAP code.. fm SAVE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-long-text-using-abap-code-fm-save-text/m-p/2972501#M701583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;depending on the situation and object ID you may have to use FM COMMIT_TEXT. See documentation of this module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2007 17:44:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-long-text-using-abap-code-fm-save-text/m-p/2972501#M701583</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-11-08T17:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a long text using ABAP code.. fm SAVE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-long-text-using-abap-code-fm-save-text/m-p/2972502#M701584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, unfortunately im having the same problem, in that init_text seems to work if the text has already been created but will not create one if it does not already exist. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2007 10:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-long-text-using-abap-code-fm-save-text/m-p/2972502#M701584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-09T10:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a long text using ABAP code.. fm SAVE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-long-text-using-abap-code-fm-save-text/m-p/2972503#M701585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for the replies,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it helps, when i try to save data to a text that does not exist the save_text FM sometimes seems to hang!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2007 10:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-long-text-using-abap-code-fm-save-text/m-p/2972503#M701585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-09T10:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a long text using ABAP code.. fm SAVE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-long-text-using-abap-code-fm-save-text/m-p/2972504#M701586</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;go through this link hope this would help you to solve your problem&lt;/P&gt;&lt;P&gt;&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;reward point if helpful.&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>Fri, 09 Nov 2007 10:57:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-long-text-using-abap-code-fm-save-text/m-p/2972504#M701586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-09T10:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a long text using ABAP code.. fm SAVE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-long-text-using-abap-code-fm-save-text/m-p/2972505#M701587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have implemented the code as i think it should be. See below, can any see what is wrong. If i add init_text it makes no difference and adding the commit_text just makes it hang &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: IT_TEXTS type standard table of TLINE,&lt;/P&gt;&lt;P&gt;       wa_texts like line of it_texts,&lt;/P&gt;&lt;P&gt;       wa_txtheader type THEAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_txtheader-TDID     = 'KOPF'.&lt;/P&gt;&lt;P&gt;wa_txtheader-TDSPRAS  = 'EN'.&lt;/P&gt;&lt;P&gt;wa_txtheader-TDNAME   = '500000015000056'.&lt;/P&gt;&lt;P&gt;wa_txtheader-TDOBJECT = 'AUFK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; wa_texts-tdformat = '*'.&lt;/P&gt;&lt;P&gt; wa_texts-tdline = 'hello'.&lt;/P&gt;&lt;P&gt; append wa_texts to it_texts.&lt;/P&gt;&lt;P&gt; wa_texts-tdformat = '*'.&lt;/P&gt;&lt;P&gt; wa_texts-tdline = 'hello'.&lt;/P&gt;&lt;P&gt; append wa_texts to it_texts.&lt;/P&gt;&lt;P&gt;  wa_texts-tdformat = '*'.&lt;/P&gt;&lt;P&gt; wa_texts-tdline = 'hello'.&lt;/P&gt;&lt;P&gt; append wa_texts to it_texts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; wa_texts-tdformat = '*'.&lt;/P&gt;&lt;P&gt; wa_texts-tdline = 'hello'.&lt;/P&gt;&lt;P&gt; append wa_texts to it_texts.&lt;/P&gt;&lt;P&gt; wa_texts-tdformat = '*'.&lt;/P&gt;&lt;P&gt; wa_texts-tdline = 'hello'.&lt;/P&gt;&lt;P&gt; append wa_texts to it_texts.&lt;/P&gt;&lt;P&gt;  wa_texts-tdformat = '*'.&lt;/P&gt;&lt;P&gt; wa_texts-tdline = 'hello'.&lt;/P&gt;&lt;P&gt; append wa_texts to it_texts.&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;  EXPORTING&lt;/P&gt;&lt;P&gt;    CLIENT                = SY-MANDT&lt;/P&gt;&lt;P&gt;    HEADER                = wa_txtheader&lt;/P&gt;&lt;P&gt;    INSERT                = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   SAVEMODE_DIRECT       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   OWNER_SPECIFIED       = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LOCAL_CAT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FUNCTION              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEWHEADER             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    LINES                 = IT_TEXTS&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2007 11:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-long-text-using-abap-code-fm-save-text/m-p/2972505#M701587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-09T11:11:55Z</dc:date>
    </item>
  </channel>
</rss>

