<?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 how to call a text editor from a module pool program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-text-editor-from-a-module-pool-program/m-p/3760004#M904626</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 want to call the text editor from my modulepool program. Enter my text in it and save it.This text needs to be saved in a Z-program with 2 fields as primary keys. The next time while I call this same record from this z table, I need to fetch the existing text and display it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user now can put in additional text and can again save it. This process thus goes on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has worked in this type of scenario, then please help me in doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Useful answers will surely be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Susanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2008 15:01:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-24T15:01:50Z</dc:date>
    <item>
      <title>how to call a text editor from a module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-text-editor-from-a-module-pool-program/m-p/3760004#M904626</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 want to call the text editor from my modulepool program. Enter my text in it and save it.This text needs to be saved in a Z-program with 2 fields as primary keys. The next time while I call this same record from this z table, I need to fetch the existing text and display it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user now can put in additional text and can again save it. This process thus goes on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has worked in this type of scenario, then please help me in doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Useful answers will surely be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Susanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 15:01:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-text-editor-from-a-module-pool-program/m-p/3760004#M904626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T15:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to call a text editor from a module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-text-editor-from-a-module-pool-program/m-p/3760005#M904627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sushanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We save the text not as fields in a ztable directly but as a text.Please check the format below since it is based on a working code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first you need to create a text in s010 transaction...&lt;/P&gt;&lt;P&gt;there should be some key based on which you plan to save the text..imagine it is Purchase order then..PO+item numner is always unique.eg:0090010(900PO/item10).so in the code you can append these two and they will be unique..so you can always retrieve them,overwrite,save them anytime you need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************data declarations&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF TY_EDITOR,&lt;/P&gt;&lt;P&gt;EDIT(254) TYPE C,&lt;/P&gt;&lt;P&gt;END OF TY_EDITOR.&lt;/P&gt;&lt;P&gt;data: int_line type table of tline with header line.&lt;/P&gt;&lt;P&gt;data: gw_thead like thead.&lt;/P&gt;&lt;P&gt;data: int_table type standard table of ty_editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************fill header..from SO10 t-code..when you save you need the unique key..youfill it here and pass it in save_text function module &lt;/P&gt;&lt;P&gt;GW_THEAD-TDNAME = loc_nam. " unique key for the text -&amp;gt; our unique key to identify the text&lt;/P&gt;&lt;P&gt;GW_THEAD-TDID = 'ST'. " Text ID from SO10&lt;/P&gt;&lt;P&gt;GW_THEAD-TDSPRAS = SY-LANGU. "current language&lt;/P&gt;&lt;P&gt;GW_THEAD-TDOBJECT = 'ZXXX'. "name of the text object created in SO10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To Read from Container and get data to int_table&lt;/P&gt;&lt;P&gt;CALL METHOD EDITOR -&amp;gt;GET_TEXT_AS_R3TABLE&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;TABLE = int_table&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ERROR_DP = 1&lt;/P&gt;&lt;P&gt;ERROR_CNTL_CALL_METHOD = 2&lt;/P&gt;&lt;P&gt;ERROR_DP_CREATE = 3&lt;/P&gt;&lt;P&gt;POTENTIAL_DATA_LOSS = 4&lt;/P&gt;&lt;P&gt;others = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop data from int_table and save to int_line-tdline appending it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*save the text&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAVE_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;HEADER = GW_THEAD&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;LINES = InT_LINE&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;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To pass to Container &lt;/P&gt;&lt;P&gt;CALL METHOD EDITOR -&amp;gt;SET_TEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that the above sample with helps you solve the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check and revert,&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 15:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-text-editor-from-a-module-pool-program/m-p/3760005#M904627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T15:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to call a text editor from a module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-text-editor-from-a-module-pool-program/m-p/3760006#M904628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="752830"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="411130"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="684679"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 16:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-text-editor-from-a-module-pool-program/m-p/3760006#M904628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T16:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to call a text editor from a module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-text-editor-from-a-module-pool-program/m-p/3760007#M904629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Byju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur reply but in my case I will have to fetch the existing standard text and populate in my program container.After which the User might put in additional text and saves the text&lt;/P&gt;&lt;P&gt;(User can write the text in my container or in the long text editor).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this text will be saved in a z table which I had already created.The field type for storing this text might be of string or a raw data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So let me know if u have any solution for this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Susanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 16:39:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-text-editor-from-a-module-pool-program/m-p/3760007#M904629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T16:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to call a text editor from a module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-text-editor-from-a-module-pool-program/m-p/3760008#M904630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So what exactly is it you want to know:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to create a module pool / dialog program?&lt;/P&gt;&lt;P&gt;Or how to create a screen with text editor?&lt;/P&gt;&lt;P&gt;Or how to save the data in your z-table?&lt;/P&gt;&lt;P&gt;Or....?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 19:44:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-text-editor-from-a-module-pool-program/m-p/3760008#M904630</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-24T19:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to call a text editor from a module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-text-editor-from-a-module-pool-program/m-p/3760009#M904631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mickey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your interest in my post.My requirement is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have created a custom container in my module pool          &lt;/P&gt;&lt;P&gt;    program and a pusbutton adjacent to it for entering long text.&lt;/P&gt;&lt;P&gt;2. Now the User can either enter text in this container or he   &lt;/P&gt;&lt;P&gt;   can press the pushbutton(which will call the long text editor)  &lt;/P&gt;&lt;P&gt;   and the enter text into it. He then saves this text entered.&lt;/P&gt;&lt;P&gt;3. This text needs to be saved in a z table(which I have   &lt;/P&gt;&lt;P&gt;    created). This z table has primary keys with which this text &lt;/P&gt;&lt;P&gt;    will be identified.&lt;/P&gt;&lt;P&gt;4. So next time when the User opens this record the &lt;/P&gt;&lt;P&gt;   corresponding text also needs to populated in the custom &lt;/P&gt;&lt;P&gt;   container.He can now edit this text in the custom container &lt;/P&gt;&lt;P&gt;   or in the text editor and save it. This modofied text again &lt;/P&gt;&lt;P&gt;   needs to be saved again in the ztable.This process goes on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  This is what exactly my requirement is..&lt;/P&gt;&lt;P&gt;  Let me know if u need any other clarifiactions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Susanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 05:54:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-text-editor-from-a-module-pool-program/m-p/3760009#M904631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T05:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to call a text editor from a module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-text-editor-from-a-module-pool-program/m-p/3760010#M904632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sushanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Texts are usually saved as text objects in the mentioned example but if you really need to store it in a ztable won't there be a size restriction on the text?...&lt;/P&gt;&lt;P&gt;We cannot put an infinite text length if we are saving in a database table...because we have seen cases where user copy pastes an e-mail entirely into the text editor where the size is much bigger....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if you really want to do it..then after calling the function module get text as r3 table ...text will be stored in int_table line by line...you can loop at int_table and use int_table-edit which contains the text values for a maximum length of 255 since we have declared it of such length in the types..if you need more size check the maximum size and put it(i am not sure of the maximum size)..then you can save it ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that answers your query...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2008 06:09:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-text-editor-from-a-module-pool-program/m-p/3760010#M904632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-27T06:09:38Z</dc:date>
    </item>
  </channel>
</rss>

