<?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: Input field active after selecting checkbox in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-field-active-after-selecting-checkbox/m-p/3280994#M784597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. the problem has been solved &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2008 02:07:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-18T02:07:20Z</dc:date>
    <item>
      <title>Input field active after selecting checkbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-field-active-after-selecting-checkbox/m-p/3280992#M784595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I need to do if I want to create a text field that can only be active after a checkbox has been ticked?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a text field A and checkbox B with OK_CODE CHECKBOX. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO i've set the screen-input for text field A to '0' meaning that I dont want A to receive any input as yet. Only after I've ticked checkbox B then I want A can receive input. I've tried to set at PAI where when the OK_CODE = CHECKBOX, loop at screen and if screen-name = 'A' then i'll set screen-input for A as 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I tried to run, the text field A still cannot receive any input.  My code at PAI as below:&lt;/P&gt;&lt;P&gt;if ok_code = 'CHECKBOX'.&lt;/P&gt;&lt;P&gt; loop at screen.&lt;/P&gt;&lt;P&gt;    if screen-name ='A'.&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;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help. Thanks&lt;/P&gt;&lt;P&gt;    endloop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 01:36:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-field-active-after-selecting-checkbox/m-p/3280992#M784595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T01:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Input field active after selecting checkbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-field-active-after-selecting-checkbox/m-p/3280993#M784596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this sample code.. try to implement the same in the PBO of ur screen. &lt;/P&gt;&lt;P&gt;for your easy understanding i had written it for a selection screen.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS : p_c AS CHECKBOX USER-COMMAND u1.
PARAMETERS : p_file TYPE rlgrap-filename.

AT SELECTION-SCREEN OUTPUT.

  IF p_c = 'X'. " meaning check box is checked
    LOOP AT SCREEN.
      IF screen-name = 'P_FILE'.
        screen-input = 1.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSE. " meaning check box is unchecked
    LOOP AT SCREEN.
      IF screen-name = 'P_FILE'.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 01:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-field-active-after-selecting-checkbox/m-p/3280993#M784596</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2008-01-18T01:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Input field active after selecting checkbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-field-active-after-selecting-checkbox/m-p/3280994#M784597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. the problem has been solved &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 02:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-field-active-after-selecting-checkbox/m-p/3280994#M784597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T02:07:20Z</dc:date>
    </item>
  </channel>
</rss>

