<?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 validation - facing an issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376424#M1543588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do your validations after start of selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Nov 2010 10:53:15 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-11-09T10:53:15Z</dc:date>
    <item>
      <title>Selection screen validation - facing an issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376412#M1543576</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 facing an issue while doing validations on selections screen of a report program.&lt;/P&gt;&lt;P&gt;On selecting a checkbox, a field related to that should become mandatory.&lt;/P&gt;&lt;P&gt;But if I do the validation in selection screen events,&lt;/P&gt;&lt;P&gt;for the first time also, when I select the check box, it is displaying error message saying no data in mandatory field.&lt;/P&gt;&lt;P&gt;So I am doing the validation in start-of-selection event.&lt;/P&gt;&lt;P&gt;Is there any work around for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in this regard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 07:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376412#M1543576</guid>
      <dc:creator>former_member654348</dc:creator>
      <dc:date>2010-11-09T07:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen validation - facing an issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376413#M1543577</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;You could check for the checkbox input in the event at selection on the chck box field. If the field to be made mandatory is not passed on teh selection screen, you could display an error message on the selection screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 08:42:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376413#M1543577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T08:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen validation - facing an issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376414#M1543578</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;Remove OBLIGATORY from your selection screen and do the validation on even AT SELECTION-SCREEN ON FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 08:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376414#M1543578</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2010-11-09T08:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen validation - facing an issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376415#M1543579</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;maybe you could try coding the validations &lt;STRONG&gt;at selection-screen.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Also remove &lt;STRONG&gt;OBLIIGATORY&lt;/STRONG&gt; syntax in selection screen coding.&lt;/P&gt;&lt;P&gt;check the value in your check box and make the required field mandatory there.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
at selection-screen.
if chk_val = 'X'.
  if s_mblnr[] is initial.
    if s_ebeln[] is initial.
      if s_matnr is initial or s_budat is initial.
        message e000(fb) with 'Enter at least a PO and material number/GR date!'.
      endif.
    endif.
  endif.
else.
...
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isaac Prince&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: prince isaac on Nov 9, 2010 11:45 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 09:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376415#M1543579</guid>
      <dc:creator>prince_isaac</dc:creator>
      <dc:date>2010-11-09T09:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen validation - facing an issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376416#M1543580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;Thanks for your inputs.&lt;/P&gt;&lt;P&gt;But validating in selection screen events is not working for me, as I have user command for my check box.&lt;/P&gt;&lt;P&gt;ex: I tick my check box, as there is a user command for that, the selection screen events get triggered, and it displays the error message saying 'NO data entered' , even if the user plans to enter a message now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 09:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376416#M1543580</guid>
      <dc:creator>former_member654348</dc:creator>
      <dc:date>2010-11-09T09:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen validation - facing an issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376417#M1543581</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 these are selection screen checks you want to employ i would suggest removing the user-command and impleneting the checks at selection screen.  I think its much easier to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isaac Prince&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 10:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376417#M1543581</guid>
      <dc:creator>prince_isaac</dc:creator>
      <dc:date>2010-11-09T10:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen validation - facing an issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376418#M1543582</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;Based on the checkbox selected or not, some of the selection screen fields have to be disabled in my program, so I should have user command edition to my check box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 10:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376418#M1543582</guid>
      <dc:creator>former_member654348</dc:creator>
      <dc:date>2010-11-09T10:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen validation - facing an issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376419#M1543583</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 are using a radio button or a Check box You should give USER-COMMAND addition to the declarations.So when an user clicks on these boxes or buttons the fcode(Function code) which you mentioned in user-command gets populated in SY-UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;lakshman.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 10:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376419#M1543583</guid>
      <dc:creator>former_member209217</dc:creator>
      <dc:date>2010-11-09T10:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen validation - facing an issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376420#M1543584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes this can still be achieved without the user-command code.&lt;/P&gt;&lt;P&gt;Place your code in &lt;STRONG&gt;at selection-screen&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at screen.
   if chk_val = 'X'.
      if screen-name = 'S_MATNR'.
         screen-input = 0.
      endif.
else.
  if screen-name = 'S_MATNR'.
    screen-input = '1'.
   endif.
endif.
modify screen
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isaac Prince&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: prince isaac on Nov 9, 2010 12:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 10:40:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376420#M1543584</guid>
      <dc:creator>prince_isaac</dc:creator>
      <dc:date>2010-11-09T10:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen validation - facing an issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376421#M1543585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagapallavi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the below statement along with your loop at screen statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;screen-required  = '2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above statement is make the selection fields as conditional mandatory.&lt;/P&gt;&lt;P&gt;Hope this may be helpful.&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;Sharin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 10:44:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376421#M1543585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T10:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen validation - facing an issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376422#M1543586</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 your mandatory field is suppose 'p_field'. then write your code under AT SELECTION-SCREEN ON p_field event. p_chk is the parameter name for the checkbox. For eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON p_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF p_chk = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF p_field IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MESSAGE e000 with 'Enter mandatory field'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 10:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376422#M1543586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T10:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen validation - facing an issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376423#M1543587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prince&lt;/P&gt;&lt;P&gt;Thanks for you time.&lt;/P&gt;&lt;P&gt;I tried with this.&lt;/P&gt;&lt;P&gt;But when the user selects the check box, the program has to allow the user to enter the field, and when he tries to execute the same it has to throw an error.&lt;/P&gt;&lt;P&gt;With this code, it throws the error immediately when the check box is selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 10:46:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376423#M1543587</guid>
      <dc:creator>former_member654348</dc:creator>
      <dc:date>2010-11-09T10:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen validation - facing an issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376424#M1543588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do your validations after start of selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 10:53:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376424#M1543588</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-09T10:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen validation - facing an issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376425#M1543589</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;Put the validation code after START-OF-SELECTION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 11:07:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-facing-an-issue/m-p/7376425#M1543589</guid>
      <dc:creator>former_member209217</dc:creator>
      <dc:date>2010-11-09T11:07:17Z</dc:date>
    </item>
  </channel>
</rss>

