<?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: Problems setting MAX_NUMBER_CHARS in TEXTEDIT CONTROL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879667#M51383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, that's it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDITOR is declared as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: editor           type ref to c_textedit_control .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I'm trying to create the Obj. and gv_length is set to 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    create object editor&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;         repid            = repid&lt;/P&gt;&lt;P&gt;         dynnr            = '0100'&lt;/P&gt;&lt;P&gt;         dynpro_container = 'TEXTEDITOR1'&lt;/P&gt;&lt;P&gt;         max_number_chars = gv_length&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;In the next code, I pretend to pass the TEXT written by user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method editor-&amp;gt;set_text_as_r3table&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        table           = mytable&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        error_dp        = 1&lt;/P&gt;&lt;P&gt;        error_dp_create = 2&lt;/P&gt;&lt;P&gt;        others          = 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are more lines of code, but they are not relevant to this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first, the user can write a comment with 255 characters, but I'm not able to show this same comment although mytable is fulfilled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Feb 2005 15:06:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-02-02T15:06:45Z</dc:date>
    <item>
      <title>Problems setting MAX_NUMBER_CHARS in TEXTEDIT CONTROL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879662#M51378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a problem with C_TEXTEDIT_CONTROL interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to maintain a Function Module that displays a TEXT EDIT CONTROL in a popup. One parameter of this FM is MAX_NUMBER_CHARS that is passed to the control in the constructor method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This parameter pretends to lock the maximum quantity of characters written in the popup. It&amp;#146;s set to 255 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first, when user writes his commentary with 255 ch (yeah, he writes till the end) everything works ok; but after that, when he tries to visualize his commentary, nothing appears in the control, although the commentary is passed correctly to the control via set_text_as_r3table method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done some tests, and sawn in Debugger Time that if I change the parameter MAX_NUMBER_CHARS to 265 when the commentary length is 255, the control displays the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what happens or what I&amp;#146;m doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2005 08:58:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879662#M51378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-02T08:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problems setting MAX_NUMBER_CHARS in TEXTEDIT CONTROL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879663#M51379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm....seems to me that you have found your problem.  Is there a specific reason why you want to limit the text to 255 characters?  Does the control stop the user from typing more than 255 characters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2005 14:03:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879663#M51379</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-02T14:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problems setting MAX_NUMBER_CHARS in TEXTEDIT CONTROL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879664#M51380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Hmmm....seems to me that you have found your problem."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wow.... amazing response. O_o &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course I have to limit input text, it's a requirement, and C_TEXTEDIT_CONTROL, and also CL_GUI_TEXT_EDITOR, allows it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, why it's not working?!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2005 14:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879664#M51380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-02T14:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problems setting MAX_NUMBER_CHARS in TEXTEDIT CONTROL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879665#M51381</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;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2005 14:45:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879665#M51381</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-02T14:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problems setting MAX_NUMBER_CHARS in TEXTEDIT CONTROL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879666#M51382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just written a quick &amp;amp; dirty to test this out.  I have set my text editor to 20 max characters,  I does limit my entry to the 20 characters, when setting it, it shows my 20 characters. In debug, if I change the max characters to 19, then the text no longer shows.  In your case you put in 255 and expect to get out 255 when the max characters is set to 255, and you are not, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be able to post your code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2005 14:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879666#M51382</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-02T14:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problems setting MAX_NUMBER_CHARS in TEXTEDIT CONTROL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879667#M51383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, that's it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDITOR is declared as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: editor           type ref to c_textedit_control .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I'm trying to create the Obj. and gv_length is set to 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    create object editor&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;         repid            = repid&lt;/P&gt;&lt;P&gt;         dynnr            = '0100'&lt;/P&gt;&lt;P&gt;         dynpro_container = 'TEXTEDITOR1'&lt;/P&gt;&lt;P&gt;         max_number_chars = gv_length&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;In the next code, I pretend to pass the TEXT written by user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method editor-&amp;gt;set_text_as_r3table&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        table           = mytable&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        error_dp        = 1&lt;/P&gt;&lt;P&gt;        error_dp_create = 2&lt;/P&gt;&lt;P&gt;        others          = 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are more lines of code, but they are not relevant to this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first, the user can write a comment with 255 characters, but I'm not able to show this same comment although mytable is fulfilled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2005 15:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879667#M51383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-02T15:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problems setting MAX_NUMBER_CHARS in TEXTEDIT CONTROL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879668#M51384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,  I'm now seeing the same.  My test for 20 characters was working, but when doing the same thing with 160 characters, I have to set the max to 174 to get the text to show.  This is weird.  I'll keep looking at it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2005 15:16:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879668#M51384</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-02T15:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problems setting MAX_NUMBER_CHARS in TEXTEDIT CONTROL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879669#M51385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its counting the CR as part of the text.  You can see this by using the method get_text_as_stream. The CR are the "##"  This explains why I need 14 more characters for the text to show.  I had 8 lines of 20 with CR at the end of the first 7.  Not sure how you are suppose to get around this.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2005 16:04:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879669#M51385</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-02T16:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problems setting MAX_NUMBER_CHARS in TEXTEDIT CONTROL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879670#M51386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Ive been looking in to this and as you both can see is very strange. &lt;/P&gt;&lt;P&gt;If its very important you should post a message to SAP to see if it might be an error they can solve.&lt;/P&gt;&lt;P&gt;I've been looking into notes to see if any solves it but no god luck...&lt;/P&gt;&lt;P&gt;If you find a solution please post it... I'm also interested.&lt;/P&gt;&lt;P&gt;Kind Regards.&lt;/P&gt;&lt;P&gt;Jorge Balart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2005 16:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879670#M51386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-02T16:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problems setting MAX_NUMBER_CHARS in TEXTEDIT CONTROL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879671#M51387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I think this is not the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I you retrieves the information with editor-&amp;gt;get_text_as_r3table method, the CR doesn't appears; and if you check the length of the table, is the correct length (in my case 255).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was looking into OSS but I saw nothing, I'll try posting a SAP OSS Note.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have some answer I'll post it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2005 08:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879671#M51387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-03T08:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problems setting MAX_NUMBER_CHARS in TEXTEDIT CONTROL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879672#M51388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is solved with &amp;lt;b&amp;gt;SAPGui's patch 52&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2005 10:14:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-setting-max-number-chars-in-textedit-control/m-p/879672#M51388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-07T10:14:59Z</dc:date>
    </item>
  </channel>
</rss>

