<?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: Selection Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2490298#M562002</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;In AT selection-Screen on field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;chk in tables ********&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'field1' or field2 or field3.&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;With Regards,&lt;/P&gt;&lt;P&gt;S.Barani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2007 12:33:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-18T12:33:42Z</dc:date>
    <item>
      <title>Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2490295#M561999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In my requirement, i have 4 fields in the selection screen which are mandatory as well as the values have to be validated against the standard tables. when i give some wrong value and then press enter, i need all the fields to be greyed out and the particular field only to be in editable stage.&lt;/P&gt;&lt;P&gt;This can be achieved if the case is only 1 field "at selection-screen on &amp;lt;field&amp;gt;".&lt;/P&gt;&lt;P&gt;can anyone suggest me how this can be done for 4 fields?&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 12:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2490295#M561999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T12:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2490296#M562000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In module Pool programming we use CHAIN and ENDCHAIN for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In AT selection-Screen  on field.&lt;/P&gt;&lt;P&gt;write the validation.&lt;/P&gt;&lt;P&gt;select..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  loop at screen.&lt;/P&gt;&lt;P&gt;     if screen-name =  'field1' or field2 or field3.&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;write this code and see&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 12:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2490296#M562000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T12:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2490297#M562001</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;    If you do the validation for all the fields.And u enter 1 field wrongly All the other fields will be greyed out if you give the error message after validation of that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 12:32:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2490297#M562001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T12:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2490298#M562002</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;In AT selection-Screen on field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;chk in tables ********&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'field1' or field2 or field3.&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;With Regards,&lt;/P&gt;&lt;P&gt;S.Barani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 12:33:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2490298#M562002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T12:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2490299#M562003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello declare all the fields on on a block example B01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Than use &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON BLOCK B01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;A.Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 12:35:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2490299#M562003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T12:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2490300#M562004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi deepti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. can anyone suggest me how this can be done for 4 fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Just copy paste this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. It will show 4 (1 character fields )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    A, B, C D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt;We need to enter A in A, B in B... and so on.&lt;/P&gt;&lt;P&gt;   (Other wise it will give error ,&lt;/P&gt;&lt;P&gt;   and ONLY THAT Field will be available for input)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YAM_TEMP03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : A TYPE C.&lt;/P&gt;&lt;P&gt;PARAMETERS : B TYPE C.&lt;/P&gt;&lt;P&gt;PARAMETERS : C TYPE C.&lt;/P&gt;&lt;P&gt;PARAMETERS : D TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON A.&lt;/P&gt;&lt;P&gt;IF A &amp;lt;&amp;gt; 'A'.&lt;/P&gt;&lt;P&gt;MESSAGE 'EEE' TYPE 'E'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON B.&lt;/P&gt;&lt;P&gt;IF B &amp;lt;&amp;gt; 'B'.&lt;/P&gt;&lt;P&gt;MESSAGE 'EEE' TYPE 'E'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON C.&lt;/P&gt;&lt;P&gt;IF C &amp;lt;&amp;gt; 'C'.&lt;/P&gt;&lt;P&gt;MESSAGE 'EEE' TYPE 'E'.&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 ON D.&lt;/P&gt;&lt;P&gt;IF D &amp;lt;&amp;gt; 'D'.&lt;/P&gt;&lt;P&gt;MESSAGE 'EEE' TYPE 'E'.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 12:35:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2490300#M562004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T12:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2490301#M562005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this. It's working :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztest123.


PARAMETERS: p_matnr TYPE matnr   OBLIGATORY,
            p_werks TYPE werks   OBLIGATORY ,
            p_vbeln TYPE vbeln   OBLIGATORY,
            p_date TYPE erdat    OBLIGATORY.

AT SELECTION-SCREEN ON p_matnr.

  DATA: lv_matnr TYPE matnr.

  SELECT SINGLE matnr FROM mara INTO lv_matnr
         WHERE matnr = p_matnr.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    LOOP AT SCREEN .

      CASE screen-name.
        WHEN 'P_WERKS'.
          screen-input = 0.
          MODIFY SCREEN.

        WHEN 'P_VBELN'.
          screen-input = 0.
          MODIFY SCREEN.

        WHEN 'P_DATE'.
          screen-input = 0.
          MODIFY SCREEN.

      ENDCASE.

    ENDLOOP.

    MESSAGE 'Enter valid Material' TYPE 'E'.
    EXIT.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 12:43:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2490301#M562005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T12:43:09Z</dc:date>
    </item>
  </channel>
</rss>

