<?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: setting a screen field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-a-screen-field/m-p/1799626#M343332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi giri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the following code u can  get what do u want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables sscrfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:a type c value 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b with frame.&lt;/P&gt;&lt;P&gt;parameters:chk type c  as checkbox user-command CHEK.&lt;/P&gt;&lt;P&gt;parameters:prm(4) type c Modif id g1.&lt;/P&gt;&lt;P&gt;selection-screen end of block b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'G1'.&lt;/P&gt;&lt;P&gt;   if a = 'X'.&lt;/P&gt;&lt;P&gt;   screen-input = 0.&lt;/P&gt;&lt;P&gt;   modify screen.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SSCRFIELDS-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'CHEK'.&lt;/P&gt;&lt;P&gt;if chk = 'X'.&lt;/P&gt;&lt;P&gt;clear a.&lt;/P&gt;&lt;P&gt;elseif a = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Dec 2006 15:24:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-18T15:24:24Z</dc:date>
    <item>
      <title>setting a screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-a-screen-field/m-p/1799619#M343325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;      I have a checkbox and a text box on the screen.I have to activate the textbox whenever check box value is set.Please help me to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Giri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 10:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-a-screen-field/m-p/1799619#M343325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T10:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: setting a screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-a-screen-field/m-p/1799620#M343326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the  AT SELECTION-SCREEN OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at Screen.&lt;/P&gt;&lt;P&gt;If chk_box = 'X'.&lt;/P&gt;&lt;P&gt; If screen-name  = 'YOur parameter name '.&lt;/P&gt;&lt;P&gt;  screen-input = '1'.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;Endif&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically what you are doing is in that once the checkbox is clicked.&lt;/P&gt;&lt;P&gt;You are looping at the Screen in search of your field name&lt;/P&gt;&lt;P&gt;and then setting the screen characteristics to input enabled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 10:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-a-screen-field/m-p/1799620#M343326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T10:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: setting a screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-a-screen-field/m-p/1799621#M343327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pbo of the screen (at selection-screen output for selection screen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if chkbox = 'x'.&lt;/P&gt;&lt;P&gt;loop at screen. &lt;/P&gt;&lt;P&gt;  if screen-name = &amp;lt;your fieldname&amp;gt;&lt;/P&gt;&lt;P&gt;     screen-input = '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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 10:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-a-screen-field/m-p/1799621#M343327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T10:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: setting a screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-a-screen-field/m-p/1799622#M343328</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;Don't forget to use 'MODIFY SCREEN' in the above code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Sreenviasa Reddy V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 10:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-a-screen-field/m-p/1799622#M343328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T10:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: setting a screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-a-screen-field/m-p/1799623#M343329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   First of all while creating the checkbox you should use usercommand of that.&lt;/P&gt;&lt;P&gt;in the coding AT SLECTION-SCREEN ouput.&lt;/P&gt;&lt;P&gt;You can use the code &lt;/P&gt;&lt;P&gt;if that check box = 'X'&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-input = 'fieldname'.&lt;/P&gt;&lt;P&gt;screen-input = '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;&lt;/P&gt;&lt;P&gt;Reward Points if it is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Kiran I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 11:01:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-a-screen-field/m-p/1799623#M343329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T11:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: setting a screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-a-screen-field/m-p/1799624#M343330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello giri ,&lt;/P&gt;&lt;P&gt;write following code ,it will fulfill ur requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: P_pernr(8)  modif ID ABD ,&lt;/P&gt;&lt;P&gt;            P_CBOX AS CHECKBOX MODIF ID ABC USER-COMMAND CH   &lt;/P&gt;&lt;P&gt;             DEFAULT 'X'.&lt;/P&gt;&lt;P&gt;Check sy-ucomm = 'CH'.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if p_CBOX = 'X'.&lt;/P&gt;&lt;P&gt;   if screen-group1 = 'ABD'.&lt;/P&gt;&lt;P&gt;      SCREEN-ACTIVE = '0'.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;ELSEIF P_CBOX = SPACE.&lt;/P&gt;&lt;P&gt;  if screen-group1 = 'ABD'.&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;ENDIF.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it helps..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 11:15:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-a-screen-field/m-p/1799624#M343330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T11:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: setting a screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-a-screen-field/m-p/1799625#M343331</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;&lt;/P&gt;&lt;P&gt;just execute the code ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_pc AS CHECKBOX ,
            p_pcfile LIKE rlgrap-filename DEFAULT 'PPPPPPPP' 
            MODIF ID d1.


             at selection-screen output.
             if P_PC NE 'X'.
             loop at screen.
             if screen-group1 = 'D1'.
             screen-INPUT = 0.
             modify screen.
             endif.
             endloop.

             ELSEIF P_PC EQ 'X'.

             loop at screen.
             if screen-group1 = 'D1'.
             screen-INPUT = 1.
             modify screen.
             endif.
             endloop.
             endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if u want the text box to be enabled u need to check the checkbox and an F8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps ,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 11:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-a-screen-field/m-p/1799625#M343331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T11:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: setting a screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-a-screen-field/m-p/1799626#M343332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi giri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the following code u can  get what do u want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables sscrfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:a type c value 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b with frame.&lt;/P&gt;&lt;P&gt;parameters:chk type c  as checkbox user-command CHEK.&lt;/P&gt;&lt;P&gt;parameters:prm(4) type c Modif id g1.&lt;/P&gt;&lt;P&gt;selection-screen end of block b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'G1'.&lt;/P&gt;&lt;P&gt;   if a = 'X'.&lt;/P&gt;&lt;P&gt;   screen-input = 0.&lt;/P&gt;&lt;P&gt;   modify screen.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SSCRFIELDS-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'CHEK'.&lt;/P&gt;&lt;P&gt;if chk = 'X'.&lt;/P&gt;&lt;P&gt;clear a.&lt;/P&gt;&lt;P&gt;elseif a = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 15:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-a-screen-field/m-p/1799626#M343332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T15:24:24Z</dc:date>
    </item>
  </channel>
</rss>

