<?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: Any function module for  validation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981434#M401320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome Archana.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What kind of validation you are looking for? because depends on the field you need to respective validations...like data...like ...customer number...like vendor number....etc...etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence if you are looking in for your program then you need to make use of AT-SELECTION SCREEN events and write respective validation code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I could able to give you some &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; details..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Feb 2007 13:08:09 GMT</pubDate>
    <dc:creator>Manohar2u</dc:creator>
    <dc:date>2007-02-23T13:08:09Z</dc:date>
    <item>
      <title>Any function module for  validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981432#M401318</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;I am new to ABAP.&lt;/P&gt;&lt;P&gt;Can any body tell me whether there is any built in function module for&lt;/P&gt;&lt;P&gt; field validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 12:55:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981432#M401318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T12:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for  validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981433#M401319</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;Welcome on the board!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your question seems very common, what exactly do you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A few examples: &lt;/P&gt;&lt;P&gt;- datum fields have automatic validation for correct format, but if you wnat an exat date range, you have to program it yourself&lt;/P&gt;&lt;P&gt;- at the select-option command, you can use the OBLIGATORY extension, to prevent the field staying empty&lt;/P&gt;&lt;P&gt;- in SE11, you can define to your data element a foreign key, which checks in the background, are there entries for the given field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 13:07:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981433#M401319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T13:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for  validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981434#M401320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome Archana.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What kind of validation you are looking for? because depends on the field you need to respective validations...like data...like ...customer number...like vendor number....etc...etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence if you are looking in for your program then you need to make use of AT-SELECTION SCREEN events and write respective validation code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I could able to give you some &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; details..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 13:08:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981434#M401320</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2007-02-23T13:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for  validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981435#M401321</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;u can validate the field values using at selectiion-screen&lt;/P&gt;&lt;P&gt;&amp;#149;	AT SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When user enters the values in the fields of selection screen and clicks on execute button, this event gets triggered. This event is basically for checking the values entered by the user for the fields of the selection screen i.e., data validity checking. This event is for entire selection screen.  For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are accepting carrid, connid, fldate from user and you don&amp;#146;t want to proceed if user enters no value for carrid and fldate.  Using AT SELECTION-SCREEN can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options: carrid1 for sflight-carrid,&lt;/P&gt;&lt;P&gt;		Connid1 for sflight-connid,&lt;/P&gt;&lt;P&gt;		F1date1 for sflight-f1date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;If carrid1-low ne &amp;#145;  &amp;#146; and fldate1-low = &amp;#145;  &amp;#146;.&lt;/P&gt;&lt;P&gt;    Error message.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, if both the fields are entered blank, then the user gets error message.&lt;/P&gt;&lt;P&gt;Basically, this event is for many fields on selection screen.  Usually, it is for the fields which are logically related.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149;	AT SELECTION-SCREEN ON  &amp;lt;field&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you want to check for specific value of a field. For example, carrid should be in the range of &amp;#145;LH&amp;#146; and &amp;#145;SQ&amp;#146;. This can be done in this event.  Basically, this event is for checking individual fields. You can have many AT selection-screen events in your program (i.e., for each field specified in the Select-Options).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-Options carrid1 for sflight-carrid.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;If carrid1-low ne &amp;#145;LH&amp;#146; and carrid1-high ne &amp;#145;SQ&amp;#146;.&lt;/P&gt;&lt;P&gt;   Error message.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;Here the system will not proceed on entering wrong values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 13:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981435#M401321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T13:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for  validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981436#M401322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obligatory is making the input mandatory.&lt;/P&gt;&lt;P&gt;You can use the below event at selection-screen on field and write you respective validation code in the perform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN  ON field p_fname.&lt;/P&gt;&lt;P&gt;  PERFORM get_filename USING p_fname.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 13:16:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981436#M401322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T13:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for  validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981437#M401323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Hi,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I am new to ABAP.&lt;/P&gt;&lt;P&gt;&amp;gt; Can any body tell me whether there is any built in&lt;/P&gt;&lt;P&gt;&amp;gt; function module for&lt;/P&gt;&lt;P&gt;&amp;gt;  field validation.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Archana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you everybody.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My exact query is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing module programming. &lt;/P&gt;&lt;P&gt;I want to validate a particular field while getting input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field like location. In that field input should be only india.&lt;/P&gt;&lt;P&gt;If user enters some other value, it should display a message like invalid input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 13:27:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981437#M401323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T13:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for  validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981438#M401324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this code&lt;/P&gt;&lt;P&gt;Code to demonstrate screen validation for dialog programs. The following code should be inserted into &lt;/P&gt;&lt;P&gt;the PAI module. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validate single field via module call&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; FIELD sc_field-ebeln
   MODULE validate_screen_field     "validation code performed in module
  ON INPUT.


* Validate multiple fields via module call
  CHAIN.
    FIELD: sc_field-ebeln, sc_field-ebelp.
    MODULE validate_screen_field.   "validation code performed in module
  ENDCHAIN.


* Validate field via table selection
  FIELD sc_field-ebeln
    SELECT *
      FROM ekko
     WHERE ebeln = sc_field-ebeln
      INTO ekko
       WHENEVER NOT FOUND SEND ERRORMESSAGE 001
                         WITH ' Document Number &amp;#146;
 ON INPUT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dialog/dialoghome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dialog/dialoghome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will oslve ur query, reward if this helsp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 13:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981438#M401324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T13:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for  validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981439#M401325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi archana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the Flow logic of the screen..&lt;/P&gt;&lt;P&gt;under the PROCESS AFTER INPUT event..&lt;/P&gt;&lt;P&gt;write module...&lt;/P&gt;&lt;P&gt;module MOD1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE MOD1 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF V_FLD NE 'INDIA'.&lt;/P&gt;&lt;P&gt;MESSAGE E001(ZERR).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 13:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981439#M401325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T13:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for  validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981440#M401326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this it will help you,AT SELECTION-SCREEN ON FIELD S_KUNNR-LOW.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM KNA1 WHERE KUNNR = S_KUNNR-LOW.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;MESSAGE E000(0) WITH 'ENTER VALID VALUE'.&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;CHEERS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 13:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-validation/m-p/1981440#M401326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T13:41:52Z</dc:date>
    </item>
  </channel>
</rss>

