<?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: Hiding fields in a screen-Module pool programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-fields-in-a-screen-module-pool-programming/m-p/4742905#M1112604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Juli,&lt;/P&gt;&lt;P&gt;The same kind of a requirement i had encounterd earlier.&lt;/P&gt;&lt;P&gt;What i did was i gave the functionality of 'TAB' to 'ENTER'.&lt;/P&gt;&lt;P&gt;Which means when ever the user presses enter based on the present cursor location next cursor position is obtained and automatically when ur PAI triggers the code u write for making the field imvisible would take effect.&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;Ravi Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Dec 2008 09:26:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-06T09:26:36Z</dc:date>
    <item>
      <title>Hiding fields in a screen-Module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-fields-in-a-screen-module-pool-programming/m-p/4742899#M1112598</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 have a custom screen which has I/O fields, radio buttions and check boxes. The first three fields of the screen are mandatory fields. When the user enters the data in the first field and goes to the second field by using tab button or mouse click depending on the data entered in the first field the screen should change hiding some fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is happening when the user presses enter after entering data in the first field but I want the fields to be hidden as soon the leaves the first field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Juli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 18:42:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-fields-in-a-screen-module-pool-programming/m-p/4742899#M1112598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T18:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding fields in a screen-Module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-fields-in-a-screen-module-pool-programming/m-p/4742900#M1112599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In theory, a PAI is only triggered when the user presses enter or clicks on some button on the screen. Thus I'm not sure if your requirement can be fulfilled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 18:48:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-fields-in-a-screen-module-pool-programming/m-p/4742900#M1112599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T18:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding fields in a screen-Module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-fields-in-a-screen-module-pool-programming/m-p/4742901#M1112600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Advait notes, this is not straightforward as a you are working with "block mode" screen processing not "character" mode when using SAPGui and dynpros - plus there is no concept of "onFocus" processing.  One option that can work is if your input field can use a listbox for possible values instead - if so, you can trigger a function code when the value is changed by the user and this function code will trigger the PAI logic and allow you to return to the PBO to adjust the screen layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 02:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-fields-in-a-screen-module-pool-programming/m-p/4742901#M1112600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T02:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding fields in a screen-Module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-fields-in-a-screen-module-pool-programming/m-p/4742902#M1112601</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;In &lt;STRONG&gt;PAI&lt;/STRONG&gt; try the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF &amp;lt;tablename-fieldname(i/o name)&amp;gt; NE ''. "not null&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'first field name'.&lt;/P&gt;&lt;P&gt;*screen-invisible = 1. * "this makes your field invisible&lt;/P&gt;&lt;P&gt;screen-active = 1.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 05:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-fields-in-a-screen-module-pool-programming/m-p/4742902#M1112601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T05:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding fields in a screen-Module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-fields-in-a-screen-module-pool-programming/m-p/4742903#M1112602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juli,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can meet this requirement with the help of Radio buttons.&lt;/P&gt;&lt;P&gt;You can put radio buttons next to these fields and on the click on that radio button you can make that particular field editable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this code for the this functionality, you will only have to add the code for making that field editable in this code.&lt;/P&gt;&lt;P&gt;Hope this code will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************************************************&lt;/P&gt;&lt;P&gt;here's the sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-t01 .&lt;/P&gt;&lt;P&gt;PARAMETERS : r_abc RADIOBUTTON GROUP GRP1 USER-COMMAND za DEFAULT 'X',&lt;/P&gt;&lt;P&gt;r_def RADIOBUTTON GROUP GRP1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE TEXT-t02.&lt;/P&gt;&lt;P&gt;PARAMETERS :&lt;/P&gt;&lt;P&gt;p_1 like mara-matnr MODIF ID GR1 ,&lt;/P&gt;&lt;P&gt;p_2 like mara-matnr MODIF ID GR1 .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE TEXT-t03.&lt;/P&gt;&lt;P&gt;PARAMETERS :&lt;/P&gt;&lt;P&gt;p_3 like mara-matnr MODIF ID GR2 ,&lt;/P&gt;&lt;P&gt;p_4 like mara-matnr MODIF ID GR2 .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;IF r_abc = 'X'.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF screen-group1 = 'GR2' .&lt;/P&gt;&lt;P&gt;screen-active = '0'.&lt;/P&gt;&lt;P&gt;ELSEIF screen-group1 = 'GR1'.&lt;/P&gt;&lt;P&gt;screen-active = '1'.&lt;/P&gt;&lt;P&gt;screen-input = 1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF r_def = 'X'.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF screen-group1 = 'GR1' .&lt;/P&gt;&lt;P&gt;screen-active = '0'.&lt;/P&gt;&lt;P&gt;ELSEIF screen-group1 = 'GR2'.&lt;/P&gt;&lt;P&gt;screen-active = '1'.&lt;/P&gt;&lt;P&gt;screen-input = '1' .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&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;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 06:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-fields-in-a-screen-module-pool-programming/m-p/4742903#M1112602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T06:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding fields in a screen-Module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-fields-in-a-screen-module-pool-programming/m-p/4742904#M1112603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Presumably the 3 mandatory fields are always shown and it is a selection of the other fields that may not be required in certain circumstances. So, on first entering the screen, have only the three mandatory fields open for input. The other fields could be hidden or shown and protected. Once the data from the mandatory fields has been successfully evaluated, the mandatory fields could be protected from further input and the required additional fields could be opened for input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 21:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-fields-in-a-screen-module-pool-programming/m-p/4742904#M1112603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T21:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding fields in a screen-Module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-fields-in-a-screen-module-pool-programming/m-p/4742905#M1112604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Juli,&lt;/P&gt;&lt;P&gt;The same kind of a requirement i had encounterd earlier.&lt;/P&gt;&lt;P&gt;What i did was i gave the functionality of 'TAB' to 'ENTER'.&lt;/P&gt;&lt;P&gt;Which means when ever the user presses enter based on the present cursor location next cursor position is obtained and automatically when ur PAI triggers the code u write for making the field imvisible would take effect.&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;Ravi Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Dec 2008 09:26:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-fields-in-a-screen-module-pool-programming/m-p/4742905#M1112604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-06T09:26:36Z</dc:date>
    </item>
  </channel>
</rss>

