<?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: CL_GUI_TEXTEDIT Problems with Indent in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-problems-with-indent/m-p/1025782#M82406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is exactly what I'm already doing. Also an additional set_readonly_mode with readonly_mode = false and set_readonly_mode with readonly_mode = true does not do a change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Dec 2005 07:43:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-21T07:43:30Z</dc:date>
    <item>
      <title>CL_GUI_TEXTEDIT Problems with Indent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-problems-with-indent/m-p/1025776#M82400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I'm working with the CL_GUI_TEXTEDIT control for displaying/changing text. &lt;/P&gt;&lt;P&gt;The text is set via the method &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;set_text_as_r3table&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;   After setting the text I would like to format it by indenting individual lines.&lt;/P&gt;&lt;P&gt;To indent the lines I use the method indent_lines in the way:&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD edit-&amp;gt;indent_lines
        EXPORTING
          from_line                     = 1
          to_line                       = 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Now the issue is as follows.&lt;/P&gt;&lt;P&gt;	I start the application and create the control. Then I set the text in the control&lt;/P&gt;&lt;P&gt;via &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET_TEXT_AS_R3TABLE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; and do the indenting. &lt;/P&gt;&lt;P&gt;	The result is &lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;Ite            m     1&lt;/P&gt;&lt;P&gt;AC            E 5.4 &amp;amp;     TAO         1.            4&lt;/P&gt;&lt;P&gt;AN        D&lt;/P&gt;&lt;P&gt;Item 2&lt;/P&gt;&lt;P&gt;SA        P &lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;	After the next PAI, PBO cycle (i.e. refilling the control again with &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET_TEXT_AS_R3TABLE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; and&lt;/P&gt;&lt;P&gt;redoing the indenting the result is:&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;        Item 1                     (indented twice)&lt;/P&gt;&lt;P&gt;            ACE 5.4 &amp;amp; TAO 1.4      (indented 3time)&lt;/P&gt;&lt;P&gt;    AND                            (indented one time)&lt;/P&gt;&lt;P&gt;        Item 2                     (indented twice)&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;(unfortunetaly the indenting is lost in this tool as well, I tried to make it clear by the comments in brackets, sorry)&lt;/P&gt;&lt;P&gt;	And this is what I would have expected also after the start at the first display. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I've no clue what happens at the first time. I tried to fix the issue to add &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CL_GUI_CFW=&amp;gt;flush&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;calls, to position the cursor with &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;set_selection_pos_in_line&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; or with &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;edit-&amp;gt;auto_redraw&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;. No change.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;	Any ideas to solve the issue are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	Many thanks and regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		Hans-Ludwig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 10:03:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-problems-with-indent/m-p/1025776#M82400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-20T10:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TEXTEDIT Problems with Indent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-problems-with-indent/m-p/1025777#M82401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hans-Ludwig ,&lt;/P&gt;&lt;P&gt;I tried with the standard program which SAP is providing for the scenario what you described, it is working fine. Please check this Program.&amp;lt;b&amp;gt;SAPTEXTEDIT_TEST_EVENTS&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also Check the Help Here. &amp;lt;a href="here .http://help.sap.com/saphelp_erp2005/helpdata/en/eb/549e36cf0ecb7de10000009b38f889/frameset.htm"&amp;gt;here .http://help.sap.com/saphelp_erp2005/helpdata/en/eb/549e36cf0ecb7de10000009b38f889/frameset.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope This Info Helps YOU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Reward Points If It Helps YOU.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 10:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-problems-with-indent/m-p/1025777#M82401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-20T10:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TEXTEDIT Problems with Indent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-problems-with-indent/m-p/1025778#M82402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;   thanks for your quick reply. &lt;/P&gt;&lt;P&gt;   Unfortunetaly the example does not help me, since the control is already displayed. I had also a look into the &lt;/P&gt;&lt;P&gt;SAPTEXTEDIT_TEST_2 program. Of course here the indenting works also. &lt;/P&gt;&lt;P&gt;   My issue is that I need to load the coding from DB and do the indenting and get it displayed at the first time indented, and this 'at first time indented' I do not get working. But it must be possible to do somehow, since the ABAP editor does the same, doesn't it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 10:27:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-problems-with-indent/m-p/1025778#M82402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-20T10:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TEXTEDIT Problems with Indent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-problems-with-indent/m-p/1025779#M82403</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 think it does not work for the first time around as the control has not been sent to frontend yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the following method after SET_TEXT_AS_R3TABLE&lt;/P&gt;&lt;P&gt;and before edit-&amp;gt;indent_lines call,&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;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 12:40:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-problems-with-indent/m-p/1025779#M82403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-20T12:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TEXTEDIT Problems with Indent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-problems-with-indent/m-p/1025780#M82404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thank you again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I tryed that one also already. It does not solve the issue. &lt;/P&gt;&lt;P&gt;   I results in even more spaces :&lt;/P&gt;&lt;P&gt;with flush&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;I            t    e        m             1&lt;/P&gt;&lt;P&gt;AC    E         5            .            4 &amp;amp; T    A        O             1    .        4&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;Item 2&lt;/P&gt;&lt;P&gt;SAP R/3 ENTERPRISE 47X200 - SAP R/3 Enterprise Server&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;without flush&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;Ite            m     1&lt;/P&gt;&lt;P&gt;AC            E 5.4     &amp;amp; TA        O             1.            4&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 13:03:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-problems-with-indent/m-p/1025780#M82404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-20T13:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TEXTEDIT Problems with Indent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-problems-with-indent/m-p/1025781#M82405</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;It just occured to me. Are you calling method set_readonly_mode before indent_lines to disable the editor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the case then try calling,&lt;/P&gt;&lt;P&gt; set_readonly_mode after indent_lines if possible &lt;/P&gt;&lt;P&gt;  or &lt;/P&gt;&lt;P&gt;first call,&lt;/P&gt;&lt;P&gt; set_readonly_mode with readonly_mode = false&lt;/P&gt;&lt;P&gt;and then call,&lt;/P&gt;&lt;P&gt; indent_lines &lt;/P&gt;&lt;P&gt;and then again,&lt;/P&gt;&lt;P&gt; set_readonly_mode with readonly_mode = true.&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;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 14:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-problems-with-indent/m-p/1025781#M82405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-20T14:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TEXTEDIT Problems with Indent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-problems-with-indent/m-p/1025782#M82406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is exactly what I'm already doing. Also an additional set_readonly_mode with readonly_mode = false and set_readonly_mode with readonly_mode = true does not do a change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 07:43:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-problems-with-indent/m-p/1025782#M82406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T07:43:30Z</dc:date>
    </item>
  </channel>
</rss>

