<?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: Changing Text Field Size in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040389#M965720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;4 columns?  are you asking if you can break the 255 field into 4 columns?  I guess you could, but you wouldn't get the text to jump from one field to the next.&lt;/P&gt;&lt;P&gt;4 rows?  Well.. not as a text box.  I this case you would need to create an text editor in a Custom control and store the text in an intenral table  until you wanted to combine it and move it to your single storage field.  Only potential issue here is that I'm not sure you could limit it to 255 characters.  I know you can protect areas of the edit box.  Perhaps you could set the protection from the 256th position to the end to the text box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2008 13:10:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-23T13:10:43Z</dc:date>
    <item>
      <title>Changing Text Field Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040384#M965715</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;&lt;/P&gt;&lt;P&gt;I want to change the Text Field Size from 117 to 255. How i can do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 11:25:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040384#M965715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T11:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Text Field Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040385#M965716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest to create new Z dataelement of length 255 and attach it to your requirment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AMit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 11:31:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040385#M965716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T11:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Text Field Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040386#M965717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I already have my field as char 255. But in my dynpro only 117 char will be visible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 11:45:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040386#M965717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T11:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Text Field Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040387#M965718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're screen will need to be more then 255 columns wide such that you can put a field of that length on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally this his handle by flagging the wrap option on so that when the user types and hits the end of the visible area, they can continue to type without the loss of data up to your 255 length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore, if you are trying to change the length of this field dynamically, you would still need to have the screen more then 255 columns, but then, you can change the length in a LOOP AT SCREEN loop and when it's this field, set the SCREEN-LENGTH value to 255.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 12:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040387#M965718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T12:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Text Field Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040388#M965719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I enlarge the textbox on 4 columns and if it is possible; what should I do exactly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 12:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040388#M965719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T12:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Text Field Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040389#M965720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;4 columns?  are you asking if you can break the 255 field into 4 columns?  I guess you could, but you wouldn't get the text to jump from one field to the next.&lt;/P&gt;&lt;P&gt;4 rows?  Well.. not as a text box.  I this case you would need to create an text editor in a Custom control and store the text in an intenral table  until you wanted to combine it and move it to your single storage field.  Only potential issue here is that I'm not sure you could limit it to 255 characters.  I know you can protect areas of the edit box.  Perhaps you could set the protection from the 256th position to the end to the text box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 13:10:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040389#M965720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T13:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Text Field Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040390#M965721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have now a Custom control, but where I can create a text editor in this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 13:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040390#M965721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T13:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Text Field Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040391#M965722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your global data area.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
      g_editor4 TYPE REF TO cl_gui_textedit,
      g_custom_container4 TYPE REF TO cl_gui_custom_container.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your PBO routine&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  MODULE init_0101.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE init_0101 OUTPUT.

  PERFORM initialize_text_editor_0101.
  PERFORM set_text_in_editor_0101.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  initialize_text_editor_0101
*&amp;amp;---------------------------------------------------------------------*
FORM initialize_text_editor_0101.
  IF g_editor4 IS INITIAL.
    repid = sy-repid.
    CREATE OBJECT g_custom_container4
       EXPORTING
          container_name = '0101_SCR_CONTAINER'  "&amp;lt;== Name of your custome control
       EXCEPTIONS
          cntl_error = 1
          cntl_system_error = 2
          create_error = 3
          lifetime_error = 4
          lifetime_dynpro_dynpro_link = 5.

    CREATE OBJECT g_editor4
       EXPORTING
          parent = g_custom_container4
          wordwrap_mode = cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position
          wordwrap_position = line_length   "&amp;lt;== how long is a line?
          wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;true.
    CALL METHOD g_editor4-&amp;gt;set_statusbar_mode
      EXPORTING
        statusbar_mode = 0.
    CALL METHOD g_editor4-&amp;gt;set_toolbar_mode
      EXPORTING
        toolbar_mode = 0.

  ENDIF.                "editor is initial
ENDFORM.                    " initialize_text_editor_0101
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  set_text_in_editor_0101
*&amp;amp;---------------------------------------------------------------------*
FORM set_text_in_editor_0101.
  CALL METHOD g_editor4-&amp;gt;set_text_as_r3table
    EXPORTING table = it_pi_text  "&amp;lt;==  Your internal table for the text
       EXCEPTIONS
           OTHERS = 1.

  IF sy-subrc NE 0.
    MESSAGE i015 WITH
     repid 'Error in set_text_as_r3table'.
  ENDIF.
  CALL METHOD cl_gui_cfw=&amp;gt;flush.
  IF sy-subrc NE 0.
    MESSAGE i015 WITH
     repid 'set_text_as_r3table: Error in FLUSH'.
  ENDIF.
ENDFORM.                    " set_text_in_editor_0101
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your PAI routine&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  MODULE text_editor_retrieve_0101.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  text_editor_retrieve_0101  INPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE text_editor_retrieve_0101 INPUT.
  PERFORM text_editor_retrieve_0101.
ENDMODULE.                 " text_editor_retrieve_0101  INPUT
*---------------------------------------------------------------------*
*       FORM text_editor_retrieve_0101                                *
*---------------------------------------------------------------------*
FORM text_editor_retrieve_0101.
  CHECK NOT g_editor4 IS INITIAL.
  CALL METHOD g_editor4-&amp;gt;get_text_as_r3table
    IMPORTING table = it_pi_text   "&amp;lt;==  Your internal table for the text
       EXCEPTIONS
           OTHERS = 1.

  IF sy-subrc NE 0.
    MESSAGE i015 WITH
     repid 'Error in get_text_as_r3table'.
  ENDIF.

  CALL METHOD cl_gui_cfw=&amp;gt;flush.
  IF sy-subrc NE 0.
    MESSAGE i015 WITH
     repid 'get_text_as_r3table: Error in FLUSH'.
  ENDIF.
ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 13:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040391#M965722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T13:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Text Field Size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040392#M965723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From another program of mine, where you would need to change the g_editor# value , this can protect where the user can change areas of the text editor.  This one goes from the beginning of the box to the last position of text already there.  You would need to modify to have it after the 255 postion of the box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  protect_direction_txt_9020
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM protect_direction_txt_9020.
  DATA:
    from_line TYPE i,
    from_pos  TYPE i,
    to_line   TYPE i,
    to_pos    TYPE i.

  from_line = 1.
  from_pos  = 1.
  to_line   = g_dir_line.
  to_pos    = g_dir_pos.

  CALL METHOD g_editor1-&amp;gt;set_selection_pos
    EXPORTING
       from_line              = from_line
       from_pos               = from_pos
       to_line                = to_line
       to_pos                 = to_pos
     EXCEPTIONS
       error_cntl_call_method = 1
       OTHERS                 = 2
          .
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE i015 WITH 'Error! Dir. text: Pos 1'.
  ENDIF.

  CALL METHOD g_editor1-&amp;gt;protect_selection
*    EXPORTING
*      PROTECT_MODE                  = TRUE
*      ENABLE_EDITING_PROTECTED_TEXT = false
     EXCEPTIONS
       error_cntl_call_method        = 1
       invalid_parameter             = 2
       OTHERS                        = 3
          .
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE i015 WITH 'Error! Dir. text: Protect 1'.
  ENDIF.
*"  This method places the cursor where you want it.
  from_line = 0.
  from_pos  = 0.
  to_line   = 0.
  to_pos    = 0.
  CALL METHOD g_editor1-&amp;gt;set_selection_pos
    EXPORTING
       from_line              = from_line
       from_pos               = from_pos
       to_line                = to_line
       to_pos                 = to_pos
     EXCEPTIONS
       error_cntl_call_method = 1
       OTHERS                 = 2
          .
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE i015 WITH 'Error! Dir. text: Pos 2'.
  ENDIF.


ENDFORM.                    " protect_direction_txt_9020
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Paul Chapman on Jun 23, 2008 10:01 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 13:59:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-text-field-size/m-p/4040392#M965723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T13:59:22Z</dc:date>
    </item>
  </channel>
</rss>

