<?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 FIELD VALIDATION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-field-validation/m-p/1990899#M404258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello J.C.!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              this is what worked for me finally:&lt;/P&gt;&lt;P&gt;&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;              CHECK sy-ucomm EQ 'ONLI'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;              IF RD2 EQ 'X'.&lt;/P&gt;&lt;P&gt;                  IF SAL_ORG IS INITIAL.&lt;/P&gt;&lt;P&gt;                      MESSAGE 'THIS FIELD IS MANDATORY' TYPE 'I'.&lt;/P&gt;&lt;P&gt;                  ENDIF.&lt;/P&gt;&lt;P&gt;              ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP says sscrfields-ucomm is unrecognized. can you please tell me what it is actually? why did you prefer using it instead of SY-UCOMM? If possible, please direct me to some good reference on calling selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have given your answer 10 points by the way. I am very new here, so i don't know what exactly it's role is, but i figured it is something significant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2007 14:01:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-12T14:01:03Z</dc:date>
    <item>
      <title>SELECTION-SCREEN FIELD VALIDATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-field-validation/m-p/1990896#M404255</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;&lt;/P&gt;&lt;P&gt;         I am trying to write this ABAP program in 4.7 Enterprise. I wish to selectively display (based on radio buttons) selection screen blocks and make them mandatory in runtime. I use code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON SAL_ORG.    (this is one of the fields that will be obligatory)&lt;/P&gt;&lt;P&gt;    IF RD2 EQ 'X'.&lt;/P&gt;&lt;P&gt;        IF SAL_ORG IS INITIAL.&lt;/P&gt;&lt;P&gt;             MESSAGE 'THIS FIELD IS MANDATORY' TYPE 'I'.&lt;/P&gt;&lt;P&gt;        ENDIF.&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;Now, if I execute this as is, then I will get this message as soon as the block is displayed, not just after hitting the execution button. Can you please tell me how I should put a condition on this checking. I know it is triggered by SY-UCOMM = 'ONLI' but i am not sure where to put the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 10:13:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-field-validation/m-p/1990896#M404255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T10:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION-SCREEN FIELD VALIDATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-field-validation/m-p/1990897#M404256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi subhamoy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. for such things, it is better to follow this kind of logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  (it will ensure that the report does not run when executed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. &lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF FIELD IS INITIAL.&lt;/P&gt;&lt;P&gt;MESSAGE 'Please enter Field' type 'I'.&lt;/P&gt;&lt;P&gt;LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Important points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Message should be of type I (and not E)&lt;/P&gt;&lt;P&gt;b) LEAVE LIST-PROCESSING.   is important.&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;&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>Mon, 12 Mar 2007 10:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-field-validation/m-p/1990897#M404256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T10:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION-SCREEN FIELD VALIDATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-field-validation/m-p/1990898#M404257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.

  CHECK sscrfields-ucomm EQ 'ONLI'.

AT SELECTION-SCREEN ON SAL_ORG. (this is one of the fields that will be obligatory)
IF RD2 EQ 'X'.
IF SAL_ORG IS INITIAL.
MESSAGE 'THIS FIELD IS MANDATORY' TYPE 'I'.
ENDIF.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 10:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-field-validation/m-p/1990898#M404257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T10:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION-SCREEN FIELD VALIDATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-field-validation/m-p/1990899#M404258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello J.C.!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              this is what worked for me finally:&lt;/P&gt;&lt;P&gt;&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;              CHECK sy-ucomm EQ 'ONLI'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;              IF RD2 EQ 'X'.&lt;/P&gt;&lt;P&gt;                  IF SAL_ORG IS INITIAL.&lt;/P&gt;&lt;P&gt;                      MESSAGE 'THIS FIELD IS MANDATORY' TYPE 'I'.&lt;/P&gt;&lt;P&gt;                  ENDIF.&lt;/P&gt;&lt;P&gt;              ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP says sscrfields-ucomm is unrecognized. can you please tell me what it is actually? why did you prefer using it instead of SY-UCOMM? If possible, please direct me to some good reference on calling selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have given your answer 10 points by the way. I am very new here, so i don't know what exactly it's role is, but i figured it is something significant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 14:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-field-validation/m-p/1990899#M404258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T14:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION-SCREEN FIELD VALIDATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-field-validation/m-p/1990900#M404259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare table SSCRFIELDS at top&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;this structure stores the selection screen fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Chandrasekhar Jagarlamudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 14:04:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-field-validation/m-p/1990900#M404259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T14:04:34Z</dc:date>
    </item>
  </channel>
</rss>

