<?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 Modifying the selection screen dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen-dynamically/m-p/4520944#M1068873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have posted this question previously but no one understood the real problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 4 fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Company Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;material Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plant &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;storage Location&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I select the company code AA01 from the F4 help I want to disable material number and Plant ..Like this i have 4 scenarios where based upon the input given in the selection screen other fields have to be enabled or disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already used at selection screen on output but that doesn't help me as its a PBO event I tried to search for a proper event but cudn't find it. Is there any way i can achieve this. A sample code wud be easy for me to understand .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;P&gt;Rock&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2008 22:21:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-26T22:21:11Z</dc:date>
    <item>
      <title>Modifying the selection screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen-dynamically/m-p/4520944#M1068873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have posted this question previously but no one understood the real problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 4 fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Company Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;material Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plant &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;storage Location&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I select the company code AA01 from the F4 help I want to disable material number and Plant ..Like this i have 4 scenarios where based upon the input given in the selection screen other fields have to be enabled or disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already used at selection screen on output but that doesn't help me as its a PBO event I tried to search for a proper event but cudn't find it. Is there any way i can achieve this. A sample code wud be easy for me to understand .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;P&gt;Rock&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 22:21:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen-dynamically/m-p/4520944#M1068873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T22:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the selection screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen-dynamically/m-p/4520945#M1068874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set different groups in your fieds on the screen.&lt;/P&gt;&lt;P&gt;Set the screen group for the Material and Plant as the GR1&lt;/P&gt;&lt;P&gt;Set the screen gorup for the Storage location as the GR2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to modify your screen fields on the PBO event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF P_BUKRS = 'AA01'.
 loop at screen.
   if screen-group1 = 'GP1'.
     screen-input = 0.
     modify screen.
   elseif screen-group2 = 'GP2'.  
     screen-input = 1.
     modify screen.
   endif.
 endloop.  
else.
 loop at screen.
   if screen-group1 = 'GP2'.
     screen-active = 0.
     modify screen.
   elseif screen-group2 = 'GP1'.  
     screen-input = 1.
     modify screen.
   endif.
 endloop.  
endif. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 22:33:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen-dynamically/m-p/4520945#M1068874</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-09-26T22:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the selection screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen-dynamically/m-p/4520946#M1068875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its working only when i hit enter. is there any possibility that when i select the values from the F4 help it modifies the screen without hitting enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Rock&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 22:49:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen-dynamically/m-p/4520946#M1068875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T22:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the selection screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen-dynamically/m-p/4520947#M1068876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way with MODIF ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT-OPTIONS NAME FOR SY-REPID MODIF ID XYZ.
...
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
CHECK SCREEN-GROUP1 = 'XYZ'.
SCREEN-INTENSIFIED = '1'.
MODIFY SCREEN.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2008 01:00:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen-dynamically/m-p/4520947#M1068876</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-09-27T01:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the selection screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen-dynamically/m-p/4520948#M1068877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, define the modify ID for the fields you want to disable.&lt;/P&gt;&lt;P&gt;Second, loop at screen to find out the fields and set the attributes for them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2008 03:13:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen-dynamically/m-p/4520948#M1068877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-27T03:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the selection screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen-dynamically/m-p/4520949#M1068878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rock,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following logic in your POV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

 data:    record_tab like seahlpres occurs 0 with header line.
...
...
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
....
....
.         exceptions
              parameter_error = 1
              no_values_found = 2
              others          = 3.

import record_tab from memory id 'mcx_record_tab'.

    if not record_tab[] is initial.

     loop at screen.

        if screen-group1 = ...

           modify screen....
     
       endif.
....
....
     endloop.
   endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Abhishek Jolly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 12:09:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen-dynamically/m-p/4520949#M1068878</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2008-09-30T12:09:31Z</dc:date>
    </item>
  </channel>
</rss>

