<?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: hide/unhide screen elements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-unhide-screen-elements/m-p/8822086#M1682243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with the Program Events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT-SELECTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;AT &lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ON &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;VALUE-REQUEST&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;REgards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;Venkat&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jun 2012 15:11:23 GMT</pubDate>
    <dc:creator>venkateswaran_k</dc:creator>
    <dc:date>2012-06-07T15:11:23Z</dc:date>
    <item>
      <title>hide/unhide screen elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-unhide-screen-elements/m-p/8822085#M1682242</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 am using classical screen programming method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;single screen&lt;/STRONG&gt;&lt;/SPAN&gt; which has following elements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;A F4 help&lt;/LI&gt;&lt;LI&gt;input text field 1&lt;/LI&gt;&lt;LI&gt;input text field 2&lt;/LI&gt;&lt;LI&gt;A Sub Area [ which has 2 labels, Couple of custom controls (2 table controls) and couple of buttons ]&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the screen renders for the first time, only F4 help and input text fields are seen. I am able to hide sub area. Requirement is to see first 3 elements.&lt;/P&gt;&lt;P&gt;The hiding of sub area is done in PBO (depending upon certain input).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once user selects F4 and chooses a value, i want to render (or unhide) the sub area.&lt;/P&gt;&lt;P&gt;But that doesn't happen, because control &lt;STRONG&gt;does not&lt;/STRONG&gt; go back to PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to explicitly hit a ENTER key (on the keyboard) to get the sub area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this without hitting ENTER key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Can I forcefully invoke PBO from PAI ?&lt;/LI&gt;&lt;LI&gt;Can I force a refresh or hitting-enter-key like scenario from PAI.&lt;/LI&gt;&lt;LI&gt;Is there any other way of achieving this ?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Advay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 14:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-unhide-screen-elements/m-p/8822085#M1682242</guid>
      <dc:creator>Advay</dc:creator>
      <dc:date>2012-06-07T14:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: hide/unhide screen elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-unhide-screen-elements/m-p/8822086#M1682243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with the Program Events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT-SELECTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;AT &lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ON &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;VALUE-REQUEST&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;REgards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;Venkat&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 15:11:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-unhide-screen-elements/m-p/8822086#M1682243</guid>
      <dc:creator>venkateswaran_k</dc:creator>
      <dc:date>2012-06-07T15:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: hide/unhide screen elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-unhide-screen-elements/m-p/8822087#M1682244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Advay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your PAI, upon F4 select, use the event AT SELECTION-SCREEN ON VALUE-REQUEST, you can use the below code to unhide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Here, make you subarea visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sindhu Pulluru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 14:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-unhide-screen-elements/m-p/8822087#M1682244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-08T14:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: hide/unhide screen elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-unhide-screen-elements/m-p/8822088#M1682245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sindhu,&lt;/P&gt;&lt;P&gt;I tried the above approach but it did not work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not using the report program for UI display, its a screen program with PBO and PAI modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PAI I am using, PROCESS ON VALUE-REQUEST event (which internally will trigger the event that you mentioned above.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From inside POV module, I try to unhide the screen elements, by LOOP AT SCREEN and MODIFY SCREEN code, but the elements are still hidden even the code executes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to explicitly hit ENTER key to unhide the screen elements.&lt;/P&gt;&lt;P&gt;Note that, I want to unhide the elements only F4 selection itself and not with ENTER key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Advay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jun 2012 14:24:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-unhide-screen-elements/m-p/8822088#M1682245</guid>
      <dc:creator>Advay</dc:creator>
      <dc:date>2012-06-10T14:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: hide/unhide screen elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-unhide-screen-elements/m-p/8822089#M1682246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try to simulate an ENTER within the PROCESS ON VALUE-REQUEST event with the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;functioncode = '=00'&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;function_not_supported = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;You should put the LOOP AT SCREEN in the PBO.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 11:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-unhide-screen-elements/m-p/8822089#M1682246</guid>
      <dc:creator>RicardoRomero_1</dc:creator>
      <dc:date>2012-06-12T11:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: hide/unhide screen elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-unhide-screen-elements/m-p/8822090#M1682247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Recardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks. It worked. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/797/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Advay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 08:19:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-unhide-screen-elements/m-p/8822090#M1682247</guid>
      <dc:creator>Advay</dc:creator>
      <dc:date>2012-06-13T08:19:31Z</dc:date>
    </item>
  </channel>
</rss>

