<?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: to SET HANDLER for parameter value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-set-handler-for-parameter-value/m-p/6807621#M1468525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without pressing ENTER I believe you won't do that for normal screen field. I think tha alternative would be creating a listbox, which can have FCODE attached. So once the user selects the plant, you will get PAI triggered.&lt;/P&gt;&lt;P&gt;This is the only way I can think of. &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>Wed, 24 Mar 2010 14:31:01 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2010-03-24T14:31:01Z</dc:date>
    <item>
      <title>to SET HANDLER for parameter value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-set-handler-for-parameter-value/m-p/6807617#M1468521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user enters a plant value in PARAMETER then i need to hide some of the Screen fields.&lt;/P&gt;&lt;P&gt;But the system has to trigger the PAI automatically&lt;/P&gt;&lt;P&gt;I know this can be acheived using CL_GUI_CFW but how to implement the SET HANDLER method for a parameter&lt;/P&gt;&lt;P&gt;I searched and found the &lt;STRONG&gt;HANDLER METHODS for ALV, TREE, TIMER&lt;/STRONG&gt; etc but I want it for  &lt;STRONG&gt;SELECTION-SCREEN&lt;/STRONG&gt; elements.&lt;/P&gt;&lt;P&gt;I searched WIKI.SDN.SAP.COM and SDN and other stuff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please provide me sample code possibly&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 13:59:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-set-handler-for-parameter-value/m-p/6807617#M1468521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T13:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: to SET HANDLER for parameter value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-set-handler-for-parameter-value/m-p/6807618#M1468522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for selecion screens, I have this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS p_cebe TYPE char01 RADIOBUTTON GROUP grp1 DEFAULT 'X' USER-COMMAND flag.
           PARAMETERS p_ceco TYPE char01 RADIOBUTTON GROUP grp1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_kokrs LIKE cobk-kokrs DEFAULT 'CORP' MODIF ID cec,
                                    p_gjahr LIKE cobk-gjahr                MODIF ID cec.


         PARAMETERS : p_rbukrs LIKE faglflexp-rbukrs MODIF ID ceb,
                                   p_ryear LIKE faglflexp-ryear   MODIF ID ceb,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF p_cebe = 'X' AND screen-group1 = 'CEC'.
      screen-active = '0'.
    ENDIF.

    IF p_ceco = 'X' AND screen-group1 = 'CEB'.
      screen-active = '0'.
    ENDIF.

    MODIFY SCREEN.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 14:03:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-set-handler-for-parameter-value/m-p/6807618#M1468522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T14:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: to SET HANDLER for parameter value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-set-handler-for-parameter-value/m-p/6807619#M1468523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PAI gets triggered once user hits ENTER. Here you can code your "handler". What's wrong with that? Is it a screen field or some GUI control?&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>Wed, 24 Mar 2010 14:13:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-set-handler-for-parameter-value/m-p/6807619#M1468523</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-03-24T14:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: to SET HANDLER for parameter value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-set-handler-for-parameter-value/m-p/6807620#M1468524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is once the user enters  plant value  then i need to disable some of the Screen fields.&lt;/P&gt;&lt;P&gt;if it is a radio button, check box or List box assigning a FCODE will trigger the PAI subsequently PBO so using LOOP AT SCREEN the screen field can be hidden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since it is a PARAMETER how to handle this. as user should not get a chance to enter a value in other field for that perticular Plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Respond to double click will do but it is equivalent to pressing enter like only &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched and found the SET HANDLER methods available for TREE, CONTROLS, ALV but not for PARAMETERS or screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 14:24:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-set-handler-for-parameter-value/m-p/6807620#M1468524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T14:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: to SET HANDLER for parameter value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-set-handler-for-parameter-value/m-p/6807621#M1468525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without pressing ENTER I believe you won't do that for normal screen field. I think tha alternative would be creating a listbox, which can have FCODE attached. So once the user selects the plant, you will get PAI triggered.&lt;/P&gt;&lt;P&gt;This is the only way I can think of. &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>Wed, 24 Mar 2010 14:31:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-set-handler-for-parameter-value/m-p/6807621#M1468525</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-03-24T14:31:01Z</dc:date>
    </item>
  </channel>
</rss>

