<?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: text box in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/1537320#M245129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;     Goto Screen painter provide darag and drop Input Parameter and provide the Length the Input Length either from Datadictionery Object or Manually.&lt;/P&gt;&lt;P&gt;     Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Aug 2006 06:58:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-02T06:58:34Z</dc:date>
    <item>
      <title>text box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/1537319#M245128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;Iam working on dialog programing.&lt;/P&gt;&lt;P&gt;I want to create long(big) text box (like Material sales text).User should be able to enter very long text.&lt;/P&gt;&lt;P&gt;How can i create this text box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward guaranteed,&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 06:51:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/1537319#M245128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T06:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: text box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/1537320#M245129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;     Goto Screen painter provide darag and drop Input Parameter and provide the Length the Input Length either from Datadictionery Object or Manually.&lt;/P&gt;&lt;P&gt;     Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 06:58:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/1537320#M245129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T06:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: text box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/1537321#M245130</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 create a small button for maintaining the long text, and by clicking that you can open the editor to maintain the long text, this can be achieved by using the following fms, &lt;/P&gt;&lt;P&gt;1. Edit_text&lt;/P&gt;&lt;P&gt;2. save_text&lt;/P&gt;&lt;P&gt;3. Read_text&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;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 07:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/1537321#M245130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T07:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: text box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/1537322#M245131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello you can create a custom container in your screen&lt;/P&gt;&lt;P&gt;and use the following &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF g_o_cause IS INITIAL.&lt;/P&gt;&lt;P&gt;*Creation of cause text edit control&lt;/P&gt;&lt;P&gt;    CREATE OBJECT g_o_cause_cont&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          container_name = g_f_container&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          OTHERS = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT g_o_cause&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;       parent = g_o_cause_cont&lt;/P&gt;&lt;P&gt;       wordwrap_mode  = cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position&lt;/P&gt;&lt;P&gt;       wordwrap_position      = g_f_len&lt;/P&gt;&lt;P&gt;       wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD g_o_cause_cont-&amp;gt;link&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        repid     = sy-repid&lt;/P&gt;&lt;P&gt;        dynnr     = '9001'&lt;/P&gt;&lt;P&gt;        container = g_f_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD g_o_cause-&amp;gt;set_width&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        width = g_f_width.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD g_o_cause-&amp;gt;set_height&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        height = g_f_height.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CLEAR g_f_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 07:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/1537322#M245131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T07:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: text box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/1537323#M245132</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;For Long Text, i think u can use: SAP TextEdit Control.&lt;/P&gt;&lt;P&gt;This is Text Edit Control that can accomodate unlimited text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For an example about TextEdit Control, you can see program (open using SE80):&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SAPTEXTEDIT_DEMO_1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SAPTEXTEDIT_DEMO_2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SAPTEXTEDIT_DEMO_3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SAPTEXTEDIT_DEMO_4&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;JR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 07:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/1537323#M245132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T07:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: text box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/1537324#M245133</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;here is the procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a custom table with last field type 'LCHR' with length of your choice and second last field should be integer to store the size of string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;b&amp;gt;
MANDT	MANDT	CLNT	3
FUND	BP_GEBER	CHAR	10
CLUSTR	 	INT2	5
TEXT		LCHR	3000&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;here TEDITOR is the custom contorl area name on screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;b&amp;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.

   "  APPEND ztext-text TO mytable.



        call method editor-&amp;gt;set_text_as_r3table
              exporting table = mytable.






endcase.

clear: ok_code.

ENDMODULE.                 " pai  INPUT&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wasim ahemd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Wasim Ahmed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 07:14:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/1537324#M245133</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-08-02T07:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: text box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/1537325#M245134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you are taking the field from the data dictionary in the dialog programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, uncheck the &amp;lt;b&amp;gt;from dict.&amp;lt;/b&amp;gt; field in the properties screen and change the Def. Length of the field. Again its upto some extend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 07:31:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/1537325#M245134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T07:31:52Z</dc:date>
    </item>
  </channel>
</rss>

