<?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: field validation in dialog programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312385#M793346</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;Perform validation on this field in the following event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON &amp;lt;fieldname&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF &amp;lt;check error condition&amp;gt;.&lt;/P&gt;&lt;P&gt;    MESSAGE &amp;lt;ur error message&amp;gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jan 2008 12:09:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-31T12:09:11Z</dc:date>
    <item>
      <title>field validation in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312382#M793343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;any can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in screen i am having one field  i.e numat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this validation required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used error msg type.&lt;/P&gt;&lt;P&gt;if u fill this field with any number or words and press enter its is showing error msg but  field goning is disable.&lt;/P&gt;&lt;P&gt;how to clear that field automatically after clicking the enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: prs on Jan 31, 2008 5:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 12:05:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312382#M793343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T12:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: field validation in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312383#M793344</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;Do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'NUMERIC_CHECK'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;STRING_IN = X&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;STRING_OUT = X&lt;/P&gt;&lt;P&gt;HTYPE = H_TYPE.&lt;/P&gt;&lt;P&gt;if h_type = 'CHAR'.&lt;/P&gt;&lt;P&gt;Message 'NOt Numeric' Type 'E'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write:/ 'Numeric'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 12:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312383#M793344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T12:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: field validation in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312384#M793345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use AT SELECTION-SCREEN ON &amp;lt;field&amp;gt; so that field is available for input after the error. e.g:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON numat.

  IF numat IS INITIAL.
    MESSAGE e055(00).
    CLEAR numat.       " To clear the field!
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 12:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312384#M793345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T12:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: field validation in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312385#M793346</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;Perform validation on this field in the following event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON &amp;lt;fieldname&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF &amp;lt;check error condition&amp;gt;.&lt;/P&gt;&lt;P&gt;    MESSAGE &amp;lt;ur error message&amp;gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 12:09:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312385#M793346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T12:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: field validation in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312386#M793347</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;User CLEAR &amp;lt;field&amp;gt; after using the message in IF and Endif statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;lt;condtion&amp;gt;&lt;/P&gt;&lt;P&gt;message &amp;lt;mesg&amp;gt;&lt;/P&gt;&lt;P&gt;clear &amp;lt;field&amp;gt;&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;regards,&lt;/P&gt;&lt;P&gt;sunil kairam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 12:17:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312386#M793347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T12:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: field validation in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312387#M793348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i used like his.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  sy-subrc NQ 0.&lt;/P&gt;&lt;P&gt; message 'does not  exist'. type 'E'.&lt;/P&gt;&lt;P&gt;clear filed.&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;after pressing the enter  i am getting the error msg but that field is on disable mode only,&lt;/P&gt;&lt;P&gt;my question is how to make editable mode automatically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 12:23:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312387#M793348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T12:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: field validation in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312388#M793349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;do the field validation in between chain and end chain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 12:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312388#M793349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T12:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: field validation in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312389#M793350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;pls explain how to do&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 12:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312389#M793350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T12:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: field validation in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312390#M793351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are writing a report, do the validation as I told you. If it's a modul pool, in the code of the dynpro you are making, you should do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CHAIN.
    FIELD: your_field
      MODULE validation.
  ENDCHAIN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then create a module called validation and do the validation and clear the variable there. The CHAIN statement will leave the field ready for input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 12:32:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312390#M793351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T12:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: field validation in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312391#M793352</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;use chain...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAIN. &lt;/P&gt;&lt;P&gt;  ... &lt;/P&gt;&lt;P&gt;ENDCHAIN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The statements CHAIN and ENDCHAIN of the dynpro flow logic define processing chains. Between CHAIN and ENDCHAIN, the statements FIELD and MODULE can be executed. The statements between CHAIN and ENDCHAIN form a processing chain. Processing chains cannot be nested. The CHAIN statement can be specified in the event blocks at PAI and PBO , however, in the event block at PBO it has no effect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A processing chain allows the joint processing of all the screen fields stated between CHAIN and ENDCHAIN after FIELD statements: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The contents of all screen fields combined to a processing chain by the FIELD statements can be checked in the shared conditions ON CHAIN-INPUT and ON CHAIN-REQUEST of the MODULE statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A warning or error message in a module called within a processing chain resets all input fields whose screen fields are combined in this processing chain using FIELD statements to ready-for-input. After a user input, the PAI processing resumes at the CHAIN statement at the latest. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call dialog modules to check input values. The screen fields input1 and input2 are checked in individual dialog modules check_1 and check_2. The screen fields input3 to input5 are checked in a processing chain in a shared dialog module check_chain. Warning or error messages in the dialog modules either make only one input field input1 or input2 ready for input again or all three input fields input3 to input5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT. &lt;/P&gt;&lt;P&gt;  MODULE leave_dynpro AT EXIT-COMMAND. &lt;/P&gt;&lt;P&gt;  FIELD input1 MODULE check_1 ON REQUEST. &lt;/P&gt;&lt;P&gt;  FIELD input2 MODULE check_2 ON REQUEST. &lt;/P&gt;&lt;P&gt;  CHAIN. &lt;/P&gt;&lt;P&gt;    FIELD input3. &lt;/P&gt;&lt;P&gt;    FIELD input4. &lt;/P&gt;&lt;P&gt;    FIELD input5. &lt;/P&gt;&lt;P&gt;    MODULE check_chain ON CHAIN-REQUEST. &lt;/P&gt;&lt;P&gt;  ENDCHAIN. &lt;/P&gt;&lt;P&gt;  MODULE handle_user_command. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 12:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312391#M793352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T12:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: field validation in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312392#M793353</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;Try this piece of code in PAI of your screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD numat MODULE validate_numat ON CHAIN-INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have not created the module validate_numat, double click on it and create it in the F-include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within it, you can call a subroutine numat_val, &lt;/P&gt;&lt;P&gt;PERFORM numat_val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double click on numat_val and create it in the F include.&lt;/P&gt;&lt;P&gt;Write your logic within this subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 12:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312392#M793353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T12:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: field validation in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312393#M793354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;process after input.&lt;/P&gt;&lt;P&gt;field &amp;lt;field-name as in screen&amp;gt;&lt;/P&gt;&lt;P&gt;module check_input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module check_input  input.&lt;/P&gt;&lt;P&gt;put ur validation here fort this field.&lt;/P&gt;&lt;P&gt;message e.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if an error or warning occurs during this module.&lt;/P&gt;&lt;P&gt;the system sends the screen again without processing pbo.&lt;/P&gt;&lt;P&gt;only the field to which check was applied will be ready for input again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 05:47:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-in-dialog-programming/m-p/3312393#M793354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T05:47:50Z</dc:date>
    </item>
  </channel>
</rss>

