<?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: problem with text edit control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-text-edit-control/m-p/5239896#M1210816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SOLVED BY MY OWN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 May 2010 09:59:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-18T09:59:05Z</dc:date>
    <item>
      <title>problem with text edit control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-text-edit-control/m-p/5239891#M1210811</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;I used a text edit control in my module pool program where i passed the data which was entered in the text edit control to a field in my ztable and this field is of type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is when i passed the data to my ztable although the field is of type string &lt;/P&gt;&lt;P&gt;it is taking '##'  WHEN I PRESS ENTER WHILE  WRITING DATA IN THE TEXT EDIT CONTROL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF PROCD IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT EDITOR_CONTAINER&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        CONTAINER_NAME              = 'PROCD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CREATE OBJECT PROCD&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        PARENT                     = EDITOR_CONTAINER&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          = LINE_LENGTH&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  PROCD-&amp;gt;SET_TOOLBAR_MODE&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        TOOLBAR_MODE = CL_GUI_TEXTEDIT=&amp;gt;FALSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD  PROCD-&amp;gt;SET_STATUSBAR_MODE&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        STATUSBAR_MODE = CL_GUI_TEXTEDIT=&amp;gt;FALSE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD PROCD-&amp;gt;GET_TEXTSTREAM&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            ONLY_WHEN_MODIFIED     = CL_GUI_TEXTEDIT=&amp;gt;TRUE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;              TEXT                   = TEXT.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&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;      CALL METHOD CL_GUI_CFW=&amp;gt;FLUSH.&lt;/P&gt;&lt;P&gt;if i entered 1234&lt;/P&gt;&lt;P&gt;                567&lt;/P&gt;&lt;P&gt;                789&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move text to ztable-text.&lt;/P&gt;&lt;P&gt;iam getting data in itab-text as 1234##567##789&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS IN ADVANCE.&lt;/P&gt;&lt;P&gt;Archana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 11:58:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-text-edit-control/m-p/5239891#M1210811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T11:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem with text edit control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-text-edit-control/m-p/5239892#M1210812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Methods like [GET_TEXT_AS_STREAM or GET_TEXTSTREAM|https://www.sdn.sap.com/irj/scn/advancedsearch?query=get_text_as_stream&lt;EM&gt;or&lt;/EM&gt;GET_TEXTSTREAM&amp;amp;cat=sdn_all] wont give you a string but a stream of data (with information about line breaks) so the result you get is normal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you only want text use a method like [GET_TEXT_AS_R3TABLE|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&amp;amp;query=get_text_as_r3table&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue] so you will be able to keep only the relevant texts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Warning : If you programmatically remove the line break information, the text wont be later displayed as it was input.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 12:06:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-text-edit-control/m-p/5239892#M1210812</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-02-11T12:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem with text edit control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-text-edit-control/m-p/5239893#M1210813</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;Remove CL_GUI_TEXTEDIT=&amp;gt;WORDWRAP_AT_FIXED_POSITION&lt;/P&gt;&lt;P&gt;and try other method for the class.Also try with character type 'abc and then fgh and then ikj .&lt;/P&gt;&lt;P&gt;Let me know if this works ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 12:08:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-text-edit-control/m-p/5239893#M1210813</guid>
      <dc:creator>rejish_balakrishnan</dc:creator>
      <dc:date>2009-02-11T12:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: problem with text edit control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-text-edit-control/m-p/5239894#M1210814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for ur reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here when i used the method  'SET_TEXT_AS_R3TABLE'  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab1 type standard table of zreport-procd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where zreport is my ztable.&lt;/P&gt;&lt;P&gt;and procd is my field which is of type string where i'm passing the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD me-&amp;gt;GET_TEXT_AS_R3TABLE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ONLY_WHEN_MODIFIED     = FALSE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    TABLE                  = itab1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IS_MODIFIED            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ERROR_DP               = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ERROR_CNTL_CALL_METHOD = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ERROR_DP_CREATE        = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   POTENTIAL_DATA_LOSS    = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   others                 = 5&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN I DO THIS I'M GETTING SY-SUBRC AS '2'  ---&lt;/P&gt;&lt;P&gt;---&amp;gt; "WHICH SAYS unsupported table type: non char-like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 07:19:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-text-edit-control/m-p/5239894#M1210814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T07:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: problem with text edit control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-text-edit-control/m-p/5239895#M1210815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The method GET_TEXT_AS_R3TABLE will fill a table of a CHAR type field, use a definition long enough for wordwrap_position of constructor method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you will have to concatenate the CHAR fields into your string field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Look at documentation like [SAP Textedit|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCITEXTEDIT/BCCITEXTEDIT.pdf]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I never store long text in string fields (for downwards compatibility), i used one of the three following solutions&lt;/P&gt;&lt;P&gt;- Create a secondary table with same keys as master table and an index to store lines of text&lt;/P&gt;&lt;P&gt;- Create a cluster table (INDX like) to store a whole internal table via EXPORTY/IMPORT database&lt;/P&gt;&lt;P&gt;- Create a custom  text and use FM like READ_TEXT and SAVE_TEXT&lt;/P&gt;&lt;P&gt;Look at [some threads at sdn with keywords : store text|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&amp;amp;query=store&lt;EM&gt;long&lt;/EM&gt;text&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to store a string, keep the get as stream, but you will need the ## special characters to manage line feed/carriage return. You have to choice a solution depending on what you expect to do with those texts and how you will manage them later. (redisplay, edit, print, etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Remember, if you don't keep the line breaks input by  user, you will not redisplay or print the text as it was input by user.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Look also for stream/string management FM like CONVERT_STREAM_TO_ITF_TEXT&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 07:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-text-edit-control/m-p/5239895#M1210815</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-02-12T07:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: problem with text edit control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-text-edit-control/m-p/5239896#M1210816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SOLVED BY MY OWN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 09:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-text-edit-control/m-p/5239896#M1210816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T09:59:05Z</dc:date>
    </item>
  </channel>
</rss>

