<?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: Validating a selection-screen field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-a-selection-screen-field/m-p/1949556#M391247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that u are validating against the header table.&lt;/P&gt;&lt;P&gt;say eg if u wnat t validate matnr in marc, then do as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS: s_matnr FOR  marc-matnr.                  "Material No
AT SELECTION-SCREEN.

*Validate material no details
  PERFORM validate_matno.
FORM validate_matno.
DATA: v_matnr LIEK mara-matnr.
  SELECT SINGLE matnr INTO v_matnr
         FROM &amp;lt;b&amp;gt;mara&amp;lt;/b&amp;gt;
         WHERE matnr IN s_matnr.

  IF sy-subrc NE 0.
    MESSAGE i128.
    LEAVE LIST-PROCESSING.
  ENDIF.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont select from marc.&lt;/P&gt;&lt;P&gt;Hope this is clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Feb 2007 04:04:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-21T04:04:54Z</dc:date>
    <item>
      <title>Validating a selection-screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-a-selection-screen-field/m-p/1949552#M391243</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 Anil.can any body explains me how to validate a selection-screen field for the following scenario?&lt;/P&gt;&lt;P&gt;I have customer nos ranging from 100-1000.among them i dont have any sales orders for the customers who are in between 150-250.I have sales order(VBELN) as select-options and Plant(WERKS) as Parameter on the selection-screen.I want to validate these fields without hardcaode.How can i do that?Please send me the complete code.&lt;/P&gt;&lt;P&gt;I am not getting how to validate a field  which is declared as parameter?&lt;/P&gt;&lt;P&gt;regards and thanks in advance.&lt;/P&gt;&lt;P&gt;Anil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 02:28:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-a-selection-screen-field/m-p/1949552#M391243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T02:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Validating a selection-screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-a-selection-screen-field/m-p/1949553#M391244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your requirement seems to be confusing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you need to validate Sales Order Number and Plant for the range of customers or Sales Order Number and Plant individually???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 02:34:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-a-selection-screen-field/m-p/1949553#M391244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T02:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Validating a selection-screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-a-selection-screen-field/m-p/1949554#M391245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to validate sales order no and plant individually.Plant nos are from 1-10.&lt;/P&gt;&lt;P&gt;Customer numbers are from 100-1000.&lt;/P&gt;&lt;P&gt;How can i do this?&lt;/P&gt;&lt;P&gt;regards and Thanks in advance,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 02:43:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-a-selection-screen-field/m-p/1949554#M391245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T02:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Validating a selection-screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-a-selection-screen-field/m-p/1949555#M391246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;IS it select-options?&lt;/P&gt;&lt;P&gt;data: c_min like kna1-kunnr default '00000100',&lt;/P&gt;&lt;P&gt;        c_max like kna1-kunnr default '00001000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS SO_kunnr FOR kna1-kunnr &lt;/P&gt;&lt;P&gt;                            DEFAULT c_min TO c_max &lt;/P&gt;&lt;P&gt;                                OPTION BT SIGN I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this help??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 03:38:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-a-selection-screen-field/m-p/1949555#M391246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T03:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Validating a selection-screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-a-selection-screen-field/m-p/1949556#M391247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that u are validating against the header table.&lt;/P&gt;&lt;P&gt;say eg if u wnat t validate matnr in marc, then do as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS: s_matnr FOR  marc-matnr.                  "Material No
AT SELECTION-SCREEN.

*Validate material no details
  PERFORM validate_matno.
FORM validate_matno.
DATA: v_matnr LIEK mara-matnr.
  SELECT SINGLE matnr INTO v_matnr
         FROM &amp;lt;b&amp;gt;mara&amp;lt;/b&amp;gt;
         WHERE matnr IN s_matnr.

  IF sy-subrc NE 0.
    MESSAGE i128.
    LEAVE LIST-PROCESSING.
  ENDIF.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont select from marc.&lt;/P&gt;&lt;P&gt;Hope this is clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 04:04:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-a-selection-screen-field/m-p/1949556#M391247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T04:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Validating a selection-screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-a-selection-screen-field/m-p/1949557#M391248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We should not hard code that.If the customers who are in between 150-200 are not having any orders ,will the code work properly?&lt;/P&gt;&lt;P&gt;regards and thanks in advance,&lt;/P&gt;&lt;P&gt;Yours,&lt;/P&gt;&lt;P&gt;Anil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 05:15:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-a-selection-screen-field/m-p/1949557#M391248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T05:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Validating a selection-screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-a-selection-screen-field/m-p/1949558#M391249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your selection-screen has a parameter of Plant and Select option of VBELN. You can validate these fields only as shown above, why do you bother about Customer Nos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 09:35:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-a-selection-screen-field/m-p/1949558#M391249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T09:35:28Z</dc:date>
    </item>
  </channel>
</rss>

