<?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: modify screen when a screen field change without enter button. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-screen-when-a-screen-field-change-without-enter-button/m-p/5280555#M1218784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Put your logic in at selection-screen event and give user-command to the check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_carrid TYPE s_carr_id .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS  check AS CHECKBOX USER-COMMAND check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  IF check = 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-name = 'P_CARRID'.&lt;/P&gt;&lt;P&gt;        screen-input = 1.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;        EXIT.&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;&lt;/P&gt;&lt;P&gt;AT-selection screen event will process whenever an event occurs in the sel. screen. ie, it will trigger when you check the checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Soumya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2009 04:31:27 GMT</pubDate>
    <dc:creator>soumya_jose3</dc:creator>
    <dc:date>2009-03-18T04:31:27Z</dc:date>
    <item>
      <title>modify screen when a screen field change without enter button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-screen-when-a-screen-field-change-without-enter-button/m-p/5280549#M1218778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys!&lt;/P&gt;&lt;P&gt;I have a question about modify a screen . I have a checkbox in my screen and when it's checked &lt;/P&gt;&lt;P&gt;other field of the screen called name is editable (screen-input = 1) , in the other case is not editable&lt;/P&gt;&lt;P&gt;(screen-input = 0).&lt;/P&gt;&lt;P&gt;I put in my PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF CHECK IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF SCREEN-NAME = 'MY_FIELD.&lt;/P&gt;&lt;P&gt;        SCREEN-INPUT = 1.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;        EXIT.&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;But it only works  when I press enter button . How can I do for changing screen field mode without press the button , automatically when the I check field CHECK?.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 16:08:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-screen-when-a-screen-field-change-without-enter-button/m-p/5280549#M1218778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T16:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: modify screen when a screen field change without enter button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-screen-when-a-screen-field-change-without-enter-button/m-p/5280550#M1218779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to put FCODE to the check box ( Double click on check box in the layout editor you will get a attribute window , you can find Fcode here)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check demo program &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
demo_dynpro_check_radio  
&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>Tue, 17 Mar 2009 16:15:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-screen-when-a-screen-field-change-without-enter-button/m-p/5280550#M1218779</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-03-17T16:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: modify screen when a screen field change without enter button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-screen-when-a-screen-field-change-without-enter-button/m-p/5280551#M1218780</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;Add Function Code to the Check box in the  check box field Attributes. When ever you clink on this Check box Func code get's triggered which you can handle in PAI of the screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 16:19:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-screen-when-a-screen-field-change-without-enter-button/m-p/5280551#M1218780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T16:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: modify screen when a screen field change without enter button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-screen-when-a-screen-field-change-without-enter-button/m-p/5280552#M1218781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is one event data_changed, which actually track any change of data in the alv grid, you can try to create an implementation for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kuntal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 16:21:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-screen-when-a-screen-field-change-without-enter-button/m-p/5280552#M1218781</guid>
      <dc:creator>former_member376453</dc:creator>
      <dc:date>2009-03-17T16:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: modify screen when a screen field change without enter button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-screen-when-a-screen-field-change-without-enter-button/m-p/5280553#M1218782</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;Go to screen layout and double on the checkbox.... you will get the properties...&lt;/P&gt;&lt;P&gt;in the properties window set the FCODE which means the function code to some name....&lt;/P&gt;&lt;P&gt;now when you just click on the check box it will trigger PAI and PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF CHECK IS INITIAL.      " Change from is not initial to is initial
LOOP AT SCREEN.
IF SCREEN-NAME = 'MY_FIELD.
SCREEN-INPUT = 0.                        " Change from 1  to   0
MODIFY SCREEN.
EXIT.
ENDIF.
ENDLOOP.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 16:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-screen-when-a-screen-field-change-without-enter-button/m-p/5280553#M1218782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T16:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: modify screen when a screen field change without enter button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-screen-when-a-screen-field-change-without-enter-button/m-p/5280554#M1218783</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;Use this code, its working:-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You dont need to hit enter. When you select checkbox field is editable else it is grayed out.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When using reporting.&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS : p_chk AS CHECKBOX USER-COMMAND abcd.

PARAMETERS : p_param(10) TYPE c MODIF ID gp1.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF p_chk = 'X'.
      IF screen-group1 = 'GP1'.
        screen-input = 1.
      ENDIF.
    ELSE.
      IF screen-group1 = 'GP1'.
        screen-input = 0.
      ENDIF.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else if you are using &lt;STRONG&gt;MODULE POOL Programming&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then follow these steps:-&lt;/P&gt;&lt;P&gt;Take a &lt;STRONG&gt;checkbox&lt;/STRONG&gt; with &lt;STRONG&gt;name : CHK, Function code : CS and Function type : S&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Also take a textbox with group1 as GP1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use code in PBO:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  LOOP AT SCREEN.
    IF chk = 'X'.
      IF screen-group1 = 'GP1'.
        screen-input = 1.
        screen-active = 1.
      ENDIF.
    ELSE.
      IF screen-group1 = 'GP1'.
        screen-input = 0.
        screen-active = 1.
      ENDIF.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tarun Gambhir on Mar 18, 2009 9:32 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 03:53:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-screen-when-a-screen-field-change-without-enter-button/m-p/5280554#M1218783</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-18T03:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: modify screen when a screen field change without enter button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-screen-when-a-screen-field-change-without-enter-button/m-p/5280555#M1218784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Put your logic in at selection-screen event and give user-command to the check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_carrid TYPE s_carr_id .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS  check AS CHECKBOX USER-COMMAND check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  IF check = 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-name = 'P_CARRID'.&lt;/P&gt;&lt;P&gt;        screen-input = 1.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;        EXIT.&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;&lt;/P&gt;&lt;P&gt;AT-selection screen event will process whenever an event occurs in the sel. screen. ie, it will trigger when you check the checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Soumya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 04:31:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-screen-when-a-screen-field-change-without-enter-button/m-p/5280555#M1218784</guid>
      <dc:creator>soumya_jose3</dc:creator>
      <dc:date>2009-03-18T04:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: modify screen when a screen field change without enter button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-screen-when-a-screen-field-change-without-enter-button/m-p/5280556#M1218785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 08:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-screen-when-a-screen-field-change-without-enter-button/m-p/5280556#M1218785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T08:58:01Z</dc:date>
    </item>
  </channel>
</rss>

