<?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: Custom Container in module pool program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325339#M1395203</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;The method will give you one string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign this string to &lt;STRONG&gt;wa-desc&lt;/STRONG&gt;. Append this to the internal table &lt;STRONG&gt;itab&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use this internal table to insert these text into Z database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Oct 2009 09:48:56 GMT</pubDate>
    <dc:creator>I355602</dc:creator>
    <dc:date>2009-10-23T09:48:56Z</dc:date>
    <item>
      <title>Custom Container in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325330#M1395194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a custom control in my module pool screen. Now I want to store the text in the container into a ztable field of type string. Could any one suggest me how to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Bhaskar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 10:36:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325330#M1395194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-21T10:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Container in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325331#M1395195</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 proceed with &lt;STRONG&gt;TEXT AREA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Refer:-&lt;/P&gt;&lt;P&gt; Insert a custom control area in the screen and create a object of the text editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code for PBO and PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TEDITOR&lt;/STRONG&gt; is the custom contorl area name on screen:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE PBO OUTPUT.
  IF EDITOR IS INITIAL.
 
*   set status
SET pf-status '1111'.
 
*   create control container
    CREATE OBJECT TextEdit_Custom_Container
        EXPORTING
            CONTAINER_NAME = 'TEDITOR'
        EXCEPTIONS
            CNTL_ERROR = 1
            CNTL_SYSTEM_ERROR = 2
            CREATE_ERROR = 3
            LIFETIME_ERROR = 4
            LIFETIME_DYNPRO_DYNPRO_LINK = 5.
    if sy-subrc ne 0.
*      add your handling
    ENDif.
    mycontainer = 'TEDITOR'.
 
*   create calls constructor, which initializes, creats and links
*   TextEdit Control
    create object editor
          exporting
           parent = TextEdit_Custom_Container
           WORDWRAP_MODE =
*               cl_gui_textedit=&amp;gt;wordwrap_off
              cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position
*              cl_gui_textedit=&amp;gt;WORDWRAP_AT_WINDOWBORDER
           WORDWRAP_POSITION = line_length
           wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;true.
 
*   to handle different containers
    container_linked = 1.
 
    refresh mytable.
 
  ENDIF.
 
ENDMODULE.                 " PBO  OUTPUT
 
 
MODULE pai INPUT.
case ok_code.
 
WHEN 'SAVE'.
*   retrieve table from control
clear: txt.
      call method editor-&amp;gt;get_text_as_r3table
              importing table = mytable.
 
      loop at mytable into wa.
 
         concatenate txt wa into txt
         separated by '|'.
      endloop.
 
      shift txt left.
      length = strlen( txt ).
 
      ztext-CLUSTR = length.
      ztext-text   = txt.
 
      modify ztext.
 
      clear: ztext.
      refresh: mytable.
        call method editor-&amp;gt;set_text_as_r3table
              exporting table = mytable.
      Message s000(zwa).
 
when 'DISP'.
  
      select single * from
      ztext
      where fund = ztext-fund.
 
      SPLIT ztext-text AT '|' INTO TABLE mytable.
 
      call method editor-&amp;gt;set_text_as_r3table
             exporting table = mytable.
 
endcase.
 
clear: ok_code.
 
ENDMODULE.                 " pai  INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can refer:-&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2031714"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 10:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325331#M1395195</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-10-21T10:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Container in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325332#M1395196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the text editor as said by you. But when I press the save button then I need to save the text in the editor into the database table field which is of string type. I am no understanding how to do that. Please hel me in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Bhaskar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 11:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325332#M1395196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-21T11:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Container in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325333#M1395197</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;Refer:&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="146651"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 11:26:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325333#M1395197</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-10-21T11:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Container in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325334#M1395198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I have created a custom control in my module pool screen. Now I want to store the text in the container into a ztable field of type string. Could any one suggest me how to do that.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;gt; Bhaskar.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any particular reason you are using custom control and text area to display a field?&lt;/P&gt;&lt;P&gt;This can be easily done using a Input/Output field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pawan Kesari on Oct 21, 2009 5:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 11:35:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325334#M1395198</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2009-10-21T11:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Container in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325335#M1395199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pawan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the data to be written in multiple lines which is not possible with i/o field. That's the reason Iam using a text editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhaskar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 12:02:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325335#M1395199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-21T12:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Container in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325336#M1395200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the solution provided by Durairaj, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;when the save button is clicked call the method

GET_TEXTSTREAM of textedit control object to get the text entered in the control. and the returned text is in string format.

populate this string in the wa .

wa-textid = 'someid' .
wa_desc = &amp;lt;string returned by method&amp;gt; .

append wa to itab .
modify ztable from table itab .

Hope this is clear.

Regards
Raja&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How to call the method GET_TEXTSTREAM. If it is through pattern, it is saying that the method does not exist. Please suggest me what to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhaskar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 13:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325336#M1395200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-21T13:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Container in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325337#M1395201</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;Refer class &lt;STRONG&gt;CL_GUI_TEXTEDIT&lt;/STRONG&gt; and use method &lt;STRONG&gt;GET_TEXTSTREAM&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click &lt;STRONG&gt;pattern&lt;/STRONG&gt; button, select &lt;STRONG&gt;ABAP objects&lt;/STRONG&gt; -&amp;gt; provide with the &lt;STRONG&gt;object name&lt;/STRONG&gt; created by you for class &lt;STRONG&gt;CL_GUI_TEXTEDIT&lt;/STRONG&gt; and call the method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 10:52:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325337#M1395201</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-10-22T10:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Container in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325338#M1395202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the continues help. Apolgies if these are basic questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;populate this string in the wa .
 
wa-textid = 'someid' .
wa_desc = &amp;lt;string returned by method&amp;gt; .
 
append wa to itab .
modify ztable from table itab .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the solution above,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-textid = 'someid' .&lt;/P&gt;&lt;P&gt;wa_desc = &lt;STRONG&gt;&amp;lt;string returned by method&amp;gt;&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me where the string returned is going to be saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 12:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325338#M1395202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-22T12:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Container in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325339#M1395203</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;The method will give you one string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign this string to &lt;STRONG&gt;wa-desc&lt;/STRONG&gt;. Append this to the internal table &lt;STRONG&gt;itab&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use this internal table to insert these text into Z database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2009 09:48:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325339#M1395203</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-10-23T09:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Container in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325340#M1395204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pavan@SAP on Oct 23, 2009 1:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2009 11:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-container-in-module-pool-program/m-p/6325340#M1395204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-23T11:23:22Z</dc:date>
    </item>
  </channel>
</rss>

