<?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: Error handling in dialog programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4647284#M1093723</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;In the module under chain end chain just clear the fields if input is wrong....&lt;/P&gt;&lt;P&gt;say&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE validation_9000 INPUT.
        clear : &amp;lt;your wrong field&amp;gt;.
        MESSAGE s398(00) WITH 'Please enter correct details'.
       

ENDMODULE.                 " VALIDATION_9000  INPUT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Debarshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2008 04:12:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-28T04:12:22Z</dc:date>
    <item>
      <title>Error handling in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4647278#M1093717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to resolve the red error and make the input fields available again to continue to enter?  In dialog programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code i as follow...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: tf_cust_id(10),&lt;/P&gt;&lt;P&gt;      tf_cust_region(3),&lt;/P&gt;&lt;P&gt;      tf_cust_s_name(30),&lt;/P&gt;&lt;P&gt;      tf_cust_l_name(50),&lt;/P&gt;&lt;P&gt;      click_bt TYPE sy-ucomm,&lt;/P&gt;&lt;P&gt;      count_cs(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0001  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_0001 OUTPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET PF-STATUS 'xxxxxxxx'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   "leave to transaction 'ZFSLSCB'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_0001  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_0001  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_0001 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      input  = tf_cust_id&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      output = tf_cust_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF click_bt = 'EXIT'.&lt;/P&gt;&lt;P&gt;    LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF click_bt = 'EAGAIN'.&lt;/P&gt;&lt;P&gt;    LEAVE TO TRANSACTION 'ZFSLSCB'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONDENSE tf_cust_id.&lt;/P&gt;&lt;P&gt;  count_cs = STRLEN( tf_cust_id ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF count_cs = 0.&lt;/P&gt;&lt;P&gt;    CLEAR:  tf_cust_id,&lt;/P&gt;&lt;P&gt;            tf_cust_region,&lt;/P&gt;&lt;P&gt;            tf_cust_s_name,&lt;/P&gt;&lt;P&gt;            tf_cust_l_name.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM kna1 WHERE kunnr = tf_cust_id.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          input  = tf_cust_id&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          output = tf_cust_id.&lt;/P&gt;&lt;P&gt;      tf_cust_region = kna1-regio.&lt;/P&gt;&lt;P&gt;      tf_cust_s_name = kna1-sortl.&lt;/P&gt;&lt;P&gt;      tf_cust_l_name = kna1-name1.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          input  = tf_cust_id&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          output = tf_cust_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     CLEAR:  "tf_cust_id,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             tf_cust_region,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             tf_cust_s_name,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             tf_cust_l_name.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MESSAGE 'Please Enter the correct Customer ID' TYPE 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      "LEAVE TO TRANSACTION 'ZFSLSCB'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_0001  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if any issue please tell me....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 03:40:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4647278#M1093717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T03:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4647279#M1093718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MESSAGE 'Please Enter the correct Customer ID' TYPE 'E'.&lt;/P&gt;&lt;P&gt;when appear this message it not allow me to enter the next input in the input fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 03:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4647279#M1093718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T03:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4647280#M1093719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think this is the problem of not using chain end chain. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ur pai &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the field whre u r operating did u enclose the same in &lt;/P&gt;&lt;P&gt;chain endchain . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chain . &lt;/P&gt;&lt;P&gt;field 'xxxxxxxxx' ..&lt;/P&gt;&lt;P&gt;module yyyyyyyyyy.&lt;/P&gt;&lt;P&gt;endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br, vijay&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 03:45:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4647280#M1093719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T03:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4647281#M1093720</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 have to define your fields in chain endchain in pai .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CHAIN.
 
 FIELDS: f1,f2...
 MODULE CHECK.
 
ENDCHAIN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you can do your checks in this module check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 03:45:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4647281#M1093720</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-10-28T03:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4647282#M1093721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks,&lt;/P&gt;&lt;P&gt;it is working but there is a problem for example I give it a customer id and it display the records in the fields but next time when I give a wrong customer no it display the message and field are enable but I want that when I enter the wrong  customer no it clears out the records related to the previous customer mean display the error message and clear all the fields too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 04:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4647282#M1093721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T04:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4647283#M1093722</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 refresh statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also try to appreciate people by rewarding points to contributing to UN world food pogram, who are trying to help you by spending there time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was telling you this because not even a single post in which you have rewarded people who helped you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 04:09:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4647283#M1093722</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-10-28T04:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4647284#M1093723</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;In the module under chain end chain just clear the fields if input is wrong....&lt;/P&gt;&lt;P&gt;say&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE validation_9000 INPUT.
        clear : &amp;lt;your wrong field&amp;gt;.
        MESSAGE s398(00) WITH 'Please enter correct details'.
       

ENDMODULE.                 " VALIDATION_9000  INPUT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Debarshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 04:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4647284#M1093723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T04:12:22Z</dc:date>
    </item>
  </channel>
</rss>

