<?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 Runtime compression CL_GUI_TEXTEDIT- in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-compression-cl-gui-textedit/m-p/6672482#M1448221</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;Runtime compression when CL_GUI_TEXTEDIT-&amp;gt;set_visible to FALSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an Subscreen with a Custom Control called GREF_TEXT_9001_CONT of type CL_GUI_CUSTOM_CONTROL. I place the control GREF_TEXT_9001 of type CL_GUI_TEXTEDIT in it. No problem with that. Anyway here my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE OBJECT gref_text_9001_cont
      EXPORTING
        container_name              = 'GREF_TEXT_9001_CONT'
      EXCEPTIONS
        cntl_error                  = 1
        cntl_system_error           = 2
        create_error                = 3
        lifetime_error              = 4
        lifetime_dynpro_dynpro_link = 5
        OTHERS                      = 6.

    CREATE OBJECT gref_text_9001
      EXPORTING
        parent                 = gref_text_9001_cont
        wordwrap_mode          = 2
        wordwrap_position      = 72
      EXCEPTIONS
        error_cntl_create      = 1
        error_cntl_init        = 2
        error_cntl_link        = 3
        error_dp_create        = 4
        gui_type_not_supported = 5
        OTHERS                 = 6.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user can set the control to invisible and visible by pressing a button. Here I use the gref_text_9001-&amp;gt;set_visible method and the gref_text_9001_cont-&amp;gt;set_visible methods. No problem with that either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the textedit control occupies lines 1-10 on the screen. Followed by that are numerous other fields which we also manipulate in a LOOP AT SCREEN statement. When I set all fields of a line to invisible, this line disappears as it should (runtime compression). Only the custom control does not react to the runtime compression and in case of a invisible textedit we see line 1-10 empty. Anyone any suggestions on that? I'm pretty sure I have just forgotten to set a flag or something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance,&lt;/P&gt;&lt;P&gt;Nina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nina Majic on Mar 3, 2010 11:43 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Mar 2010 10:41:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-03T10:41:37Z</dc:date>
    <item>
      <title>Runtime compression CL_GUI_TEXTEDIT-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-compression-cl-gui-textedit/m-p/6672482#M1448221</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;Runtime compression when CL_GUI_TEXTEDIT-&amp;gt;set_visible to FALSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an Subscreen with a Custom Control called GREF_TEXT_9001_CONT of type CL_GUI_CUSTOM_CONTROL. I place the control GREF_TEXT_9001 of type CL_GUI_TEXTEDIT in it. No problem with that. Anyway here my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE OBJECT gref_text_9001_cont
      EXPORTING
        container_name              = 'GREF_TEXT_9001_CONT'
      EXCEPTIONS
        cntl_error                  = 1
        cntl_system_error           = 2
        create_error                = 3
        lifetime_error              = 4
        lifetime_dynpro_dynpro_link = 5
        OTHERS                      = 6.

    CREATE OBJECT gref_text_9001
      EXPORTING
        parent                 = gref_text_9001_cont
        wordwrap_mode          = 2
        wordwrap_position      = 72
      EXCEPTIONS
        error_cntl_create      = 1
        error_cntl_init        = 2
        error_cntl_link        = 3
        error_dp_create        = 4
        gui_type_not_supported = 5
        OTHERS                 = 6.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user can set the control to invisible and visible by pressing a button. Here I use the gref_text_9001-&amp;gt;set_visible method and the gref_text_9001_cont-&amp;gt;set_visible methods. No problem with that either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the textedit control occupies lines 1-10 on the screen. Followed by that are numerous other fields which we also manipulate in a LOOP AT SCREEN statement. When I set all fields of a line to invisible, this line disappears as it should (runtime compression). Only the custom control does not react to the runtime compression and in case of a invisible textedit we see line 1-10 empty. Anyone any suggestions on that? I'm pretty sure I have just forgotten to set a flag or something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance,&lt;/P&gt;&lt;P&gt;Nina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nina Majic on Mar 3, 2010 11:43 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 10:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-compression-cl-gui-textedit/m-p/6672482#M1448221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-03T10:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime compression CL_GUI_TEXTEDIT-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-compression-cl-gui-textedit/m-p/6672483#M1448222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could understand your issue to some extent. But before solving it, &lt;/P&gt;&lt;P&gt;I can see that your code misses a "small convention" while creating a Custom Object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**you should create the custom container object and custom object only once in your program's run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, just try to add these below added lines into your code.&lt;/P&gt;&lt;P&gt;There is a slight chance of your problem to get rectified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

IF gref_text_9001_cont is INITIAL. """""""""""create only if the object doesn't exist
CREATE OBJECT gref_text_9001_cont
      EXPORTING
        container_name              = 'GREF_TEXT_9001_CONT'
      EXCEPTIONS
        cntl_error                  = 1
        cntl_system_error           = 2
        create_error                = 3
        lifetime_error              = 4
        lifetime_dynpro_dynpro_link = 5
        OTHERS                      = 6.
 ENDIF.

IF gref_text_9001 IS INITIAL. """""""same, create the object only if it doesn't exist
    CREATE OBJECT gref_text_9001
      EXPORTING
        parent                 = gref_text_9001_cont
        wordwrap_mode          = 2
        wordwrap_position      = 72
      EXCEPTIONS
        error_cntl_create      = 1
        error_cntl_init        = 2
        error_cntl_link        = 3
        error_dp_create        = 4
        gui_type_not_supported = 5
        OTHERS                 = 6.
ENDIF
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you show the code where you are trying to call the method "SET_VISIBLE" so that we can continue solving your problem.&lt;/P&gt;&lt;P&gt;Also, confirm in which part it is i.e., PAI or PBO.&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;Shravan Parepalli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 05:23:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-compression-cl-gui-textedit/m-p/6672483#M1448222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T05:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime compression CL_GUI_TEXTEDIT-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-compression-cl-gui-textedit/m-p/6672484#M1448223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shravan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your reply. The coding convention that you have mentioned is already in the code. I just didn't copy those line in here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As requested here the code from the PBO module. If certain conditions are met I call&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD gref_text_9001-&amp;gt;set_visible
      EXPORTING
        visible           = gref_text_9001-&amp;gt;visible_false
      EXCEPTIONS
        cntl_error        = 1
        cntl_system_error = 2
        OTHERS            = 3.

    CALL METHOD gref_text_9001_cont-&amp;gt;set_visible
      EXPORTING
        visible           = gref_text_9001_cont-&amp;gt;visible_false
      EXCEPTIONS
        cntl_error        = 1
        cntl_system_error = 2
        OTHERS            = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The controls are invisible but the runtime compression does not work. Line 1 to 10 on the subscreen are blank/empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Nina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nina Majic on Mar 4, 2010 12:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 11:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-compression-cl-gui-textedit/m-p/6672484#M1448223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T11:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime compression CL_GUI_TEXTEDIT-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-compression-cl-gui-textedit/m-p/6672485#M1448224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that is because you are not Delete-ing/Free-ing the custom container object.&lt;/P&gt;&lt;P&gt;Hence, to my knowledge, if would occupy its space on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think deleting the objects, both custom container and the custom object, &lt;/P&gt;&lt;P&gt;(ofcourse, by persisting the existing data into a backup variable)&lt;/P&gt;&lt;P&gt;your query would work.&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;Shravan Parepalli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 12:18:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-compression-cl-gui-textedit/m-p/6672485#M1448224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T12:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime compression CL_GUI_TEXTEDIT-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-compression-cl-gui-textedit/m-p/6672486#M1448225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that is because you are not Delete-ing/Free-ing the custom container object.&lt;/P&gt;&lt;P&gt;Hence, to my knowledge, if would occupy its space on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think deleting the objects, both custom container and the custom object, &lt;/P&gt;&lt;P&gt;(ofcourse, by persisting the existing data into a backup variable)&lt;/P&gt;&lt;P&gt;your query would work.&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;Shravan Parepalli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 12:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-compression-cl-gui-textedit/m-p/6672486#M1448225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T12:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime compression CL_GUI_TEXTEDIT-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-compression-cl-gui-textedit/m-p/6672487#M1448226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shravan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I have already tried freeing the objects. It does not help. The space that the Custom Control&lt;/P&gt;&lt;P&gt;occupies on the screen seems to be fixed. Even if I do not instanciate the objects at all the space stays empty. &lt;/P&gt;&lt;P&gt;It think this has to be solved with two subscreens, an empty one and one with the custom control and depending on&lt;/P&gt;&lt;P&gt;the conditions calling one or the other in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 12:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-compression-cl-gui-textedit/m-p/6672487#M1448226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T12:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime compression CL_GUI_TEXTEDIT-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-compression-cl-gui-textedit/m-p/6672488#M1448227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right. This can be achieved by two subscreens. This would work as en expand/collapse functionality like i.e. in t-code ME21N. All you need is just to trigger PBO where you determine in turn whether to show empty subscreen or the one with the conrtrol inside.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to my awser &lt;SPAN __jive_macro_name="thread" id="1356543"&gt;&lt;/SPAN&gt; to get more details how to implement this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 13:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-compression-cl-gui-textedit/m-p/6672488#M1448227</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-03-04T13:06:00Z</dc:date>
    </item>
  </channel>
</rss>

