<?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: Validation on Selection screen (comparing value) ??? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen-comparing-value/m-p/9324290#M1728630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- in sql you have written SELECT SINGLE BELNR........ thst' why it is it is working only for single record. you can change your sql like&amp;nbsp; SELECT&amp;nbsp; F1 F2 F3 ........in to It_TAB (Internal Table) from........ and put into loop to validate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2- for Multi line message try using FM - MESSAGE_STORE &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;Regards &lt;/P&gt;&lt;P&gt;Radhashyam Sahoo&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Feb 2013 05:28:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-02-16T05:28:09Z</dc:date>
    <item>
      <title>Validation on Selection screen (comparing value) ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen-comparing-value/m-p/9324289#M1728629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created one report where i want to give a validation condition...i want to compare the selection screen input value with my ZTABLE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1] if the input value i.e. BELNR from BSAK table (my selection screen input) matches with my ZTABLE's BELNR then it should display a information message (Data alrady exist) with the BELNR number..!!! n conti with execution..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2] If the input value does not match with my ZTABLE then it should execute...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried it like this----&amp;gt;&amp;gt;&amp;gt; START-OF-SELECTION&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SINGLE &lt;/SPAN&gt;BELNR &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;ZREST &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;BELNR &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;BELNR &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;BELNR&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;SY&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;SUBRC &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;MESSAGE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'DATA ALREADY EXIST'&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'I'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;the above code is working for only single BELNR value...but when i am giving the range of BELNR in input..then its not working..i want the particular BELNR number on mesaage box which matches the ZTABLE-BELNR, it may one or more than one..all BELNR shoulld be display on message box window..Is this possible? if yes then how to fix it? please help me with coding part...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;(* my ZTABLE contains BELNR, GJAHR and Posting date,ztable entries are inserted thr this report only...when the report executes for new BELNR then these fields get stored in ZTABLE also...therefore i want to compare the alrady exist BELNR to the selection screen BELNR)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for your information the screen shots of selection will help you to understand more...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/185556" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;thnks n regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Amit.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2013 03:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen-comparing-value/m-p/9324289#M1728629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-16T03:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Validation on Selection screen (comparing value) ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen-comparing-value/m-p/9324290#M1728630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- in sql you have written SELECT SINGLE BELNR........ thst' why it is it is working only for single record. you can change your sql like&amp;nbsp; SELECT&amp;nbsp; F1 F2 F3 ........in to It_TAB (Internal Table) from........ and put into loop to validate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2- for Multi line message try using FM - MESSAGE_STORE &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;Regards &lt;/P&gt;&lt;P&gt;Radhashyam Sahoo&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2013 05:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen-comparing-value/m-p/9324290#M1728630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-16T05:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Validation on Selection screen (comparing value) ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen-comparing-value/m-p/9324291#M1728631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THnku Radhashyam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1] i want to campare the input with ZTABLE only..!! thats why i am not taking internal table in sql...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;2] i dont want to display multiple hard coded messages in message window...i want to display BELNR numbers with message box which are not matching in validations...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2013 05:41:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen-comparing-value/m-p/9324291#M1728631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-16T05:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Validation on Selection screen (comparing value) ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen-comparing-value/m-p/9324292#M1728632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are taking a select-option that meansyou are executing the report with multiple BELNR. So, automatically one internal range table has been generating with your all the values of BELNR from low to high .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you want to check the BELNR with ZTABLE then you have to take one by one and then have to display your message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module&amp;nbsp; MESSAGE_STORE pass your BELNR at msgv1 parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2013 11:10:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen-comparing-value/m-p/9324292#M1728632</guid>
      <dc:creator>Abhijit74</dc:creator>
      <dc:date>2013-02-16T11:10:45Z</dc:date>
    </item>
  </channel>
</rss>

