<?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: Modifying input field dynamically in selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002300#M76731</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;      Thanks a lot Sanjay. My problem is solved now .    &lt;/P&gt;&lt;P&gt;      I extend my great thanks to all of you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2005 10:42:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-19T10:42:09Z</dc:date>
    <item>
      <title>Modifying input field dynamically in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002290#M76721</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 am having two input fields say s1 and s2 in my selection screen.&lt;/P&gt;&lt;P&gt;How can i disable the user input for s2 if the cursor is presently in s1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select-options : s1 for vbrk-vbeln MODIF ID inv,&lt;/P&gt;&lt;P&gt;                  s2 for vbrk-erdat MODIF ID sal.&lt;/P&gt;&lt;P&gt;In the selection-screen if the user gets the focus of S1 input field , S2 be made input disabled and vice-versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in this regard.&lt;/P&gt;&lt;P&gt;Thanks to all in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 06:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002290#M76721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T06:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying input field dynamically in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002291#M76722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be achieved but not like the way you have described because there must always be an event, like 'Enter' to do some processing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the GET CURSOR FIELD &amp;lt;fieldname&amp;gt; to get the field where the cursor is. Now you have to use&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-FIELD = 'ABCD'.&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;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 06:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002291#M76722</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-09-19T06:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying input field dynamically in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002292#M76723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no way to trigger user command with just by palcing cursor on Select Option Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After pressing cursor you will have to trigger AT Selection SCreen by pressing enter or any other user action.&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;Get CURSOR FIELD  FLD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF FLD(2) = 'S1'.&lt;/P&gt;&lt;P&gt; Loop at screen.&lt;/P&gt;&lt;P&gt;   Check Screen-group1 eq 'sal. &lt;/P&gt;&lt;P&gt;     screen-input = 0 .&lt;/P&gt;&lt;P&gt;     modify screen.&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;ELSEIF FLD(2) = 'S2'.&lt;/P&gt;&lt;P&gt; Loop at screen.&lt;/P&gt;&lt;P&gt;   Check Screen-group1 eq 'inv. &lt;/P&gt;&lt;P&gt;     screen-input = 0 .&lt;/P&gt;&lt;P&gt;     modify screen .&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 07:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002292#M76723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T07:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying input field dynamically in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002293#M76724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.If you want to change the input fields on some user input then use 'user-command ac' after the field on which you want the action. &lt;/P&gt;&lt;P&gt;2.Specify the modif id 'xxx' for each screen object. &lt;/P&gt;&lt;P&gt;3.Then in the event 'AT SELECTION-SCREEN ON OUTPUT' loop at screen. check the screen-group1(modif id ) of screen objects and change the status of the object. &lt;/P&gt;&lt;P&gt;4.You can view all the screen attribute from se11. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following example may help you: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK 001. &lt;/P&gt;&lt;P&gt;PARAMETERS: P_MRU  RADIOBUTTON GROUP SEL DEFAULT 'X' USER-COMMAND AC, &lt;/P&gt;&lt;P&gt;            P_PART RADIOBUTTON GROUP SEL. &lt;/P&gt;&lt;P&gt;    SELECT-OPTIONS P1 FOR &amp;lt;field&amp;gt; MODIF ID PRT. &lt;/P&gt;&lt;P&gt;    SELECT-OPTIONS G1 FOR &amp;lt;field&amp;gt;  MODIF ID MRU. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK 001. &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 P_MRU = 'X'. &lt;/P&gt;&lt;P&gt;      IF SCREEN-GROUP1 = 'PRT'. &lt;/P&gt;&lt;P&gt;        SCREEN-INPUT = '0'. &lt;/P&gt;&lt;P&gt;      ENDIF. &lt;/P&gt;&lt;P&gt;      IF SCREEN-GROUP1 = 'MRU'. &lt;/P&gt;&lt;P&gt;        SCREEN-INPUT = '1'. &lt;/P&gt;&lt;P&gt;      ENDIF. &lt;/P&gt;&lt;P&gt;  ELSEIF P_PART = 'X'. &lt;/P&gt;&lt;P&gt;     IF SCREEN-GROUP1 = 'MRU'. &lt;/P&gt;&lt;P&gt;       SCREEN-INPUT = '0'. &lt;/P&gt;&lt;P&gt;     ENDIF. &lt;/P&gt;&lt;P&gt;     IF SCREEN-GROUP1 = 'PRT'. &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;  MODIFY SCREEN. &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope it helps u.&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Ruthra.R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 07:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002293#M76724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T07:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying input field dynamically in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002294#M76725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There seems to be something wrong with the kind of functionality you're asking for in this case. Let us say the user ahd put his cursor in the first field. the second field will now be disabled. Now, why will the user put his cursor in the second field when he sees that it is disabled for input. this is not a very good UI-Design, I must say.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, there's something that you can do. If you look at the Initial screen of the SE11 transaction, each field is preceded by a Radio Button. So, In your case, you can have one radi button beside each of your select-options fields and when the user the user changes the radio button, you can make the corresponding select-options input enabled. This is done by assigning a Function Code to the radio buttons. That will ensure that the PAI event is triggerred when the user changes the Radio-button selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 07:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002294#M76725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T07:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying input field dynamically in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002295#M76726</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;      As Vinod and Sanjay told I have tried out but I can't achieve yet.&lt;/P&gt;&lt;P&gt;      Even if I press Enter after entering one value into an input field , the other one is not getting disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_invno      for ztvesstatus-zinvoiceno MODIF ID INV &lt;/P&gt;&lt;P&gt;s_ordno      for ztvesstatus-zsalesordno MODIF ID ORD&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; Get CURSOR FIELD v_fld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF v_fld = 'S_INVNO-LOW' or v_fld = 'S_INVNO-HIGH'.&lt;/P&gt;&lt;P&gt;     loop at screen.&lt;/P&gt;&lt;P&gt;       check screen-group1 eq 'ORD'.&lt;/P&gt;&lt;P&gt;       screen-input = 0 .&lt;/P&gt;&lt;P&gt;       modify screen.&lt;/P&gt;&lt;P&gt;     endloop.&lt;/P&gt;&lt;P&gt;    ELSEIF v_fld = 'S_ORDNO-LOW' or  v_fld = 'S_ORDNO-HIGH' .&lt;/P&gt;&lt;P&gt;     loop at screen.&lt;/P&gt;&lt;P&gt;       check screen-group1 eq 'INV'.&lt;/P&gt;&lt;P&gt;       screen-input = 0.&lt;/P&gt;&lt;P&gt;       modify screen.&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;I have also tried this under event .&lt;/P&gt;&lt;P&gt;AT SELCTION-SCREEN ON s_invno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can't achieve the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 10:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002295#M76726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T10:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying input field dynamically in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002296#M76727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct code is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ztest.&lt;/P&gt;&lt;P&gt;data v_fld(50).&lt;/P&gt;&lt;P&gt;tables mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_invno for mara-matnr MODIF ID INV ,&lt;/P&gt;&lt;P&gt;s_ordno for mara-mtart MODIF ID ORD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN  OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF v_fld = 'S_INVNO-LOW' or v_fld = 'S_INVNO-HIGH'.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;check screen-group1 eq 'ORD'.&lt;/P&gt;&lt;P&gt;screen-input = 0 .&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;ELSEIF v_fld = 'S_ORDNO-LOW' or v_fld = 'S_ORDNO-HIGH' .&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;check screen-group1 eq 'INV'.&lt;/P&gt;&lt;P&gt;screen-input = 0.&lt;/P&gt;&lt;P&gt;modify screen.&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;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get CURSOR FIELD v_fld.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 10:18:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002296#M76727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T10:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying input field dynamically in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002297#M76728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Sanjay mentioned, your code must be under AT SELECTION-SCREEN OUTPUT. This is the PBO of the report selection screen. Hope your code will work now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 10:31:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002297#M76728</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-09-19T10:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying input field dynamically in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002298#M76729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Please follow "Ruthra"'s example. I personally feel it is more appropriate for your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 10:37:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002298#M76729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T10:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying input field dynamically in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002299#M76730</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;      Thanks to you all. My problem is solved now .&lt;/P&gt;&lt;P&gt;Thanks a lot Sanjay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 10:41:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002299#M76730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T10:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying input field dynamically in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002300#M76731</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;      Thanks a lot Sanjay. My problem is solved now .    &lt;/P&gt;&lt;P&gt;      I extend my great thanks to all of you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 10:42:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-input-field-dynamically-in-selection-screen/m-p/1002300#M76731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T10:42:09Z</dc:date>
    </item>
  </channel>
</rss>

