<?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 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/4976562#M1159637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When error is thrown in Module pool programming for a field, its corresponding Text field must be highlighted with bold &amp;amp; with different color. Can any one provide a suggestion to solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kavitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jan 2009 05:16:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-13T05:16:55Z</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/4976562#M1159637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When error is thrown in Module pool programming for a field, its corresponding Text field must be highlighted with bold &amp;amp; with different color. Can any one provide a suggestion to solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kavitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 05:16:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4976562#M1159637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T05:16:55Z</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/4976563#M1159638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kavitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this code, its working:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you enter an invalid value, then an error message will be displayed and the field value entered will be coloured as red.&lt;/P&gt;&lt;P&gt;At screen logic:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS AFTER INPUT.
  FIELD ebeln MODULE get_data. "for field PO#
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In PAI,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  GET_DATA  INPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE get_data INPUT.
  IF ( ebeln &amp;lt;&amp;gt; ' ' ).
    SELECT
      ebeln
      ebelp
      matnr
      werks
      menge
      netpr
    INTO TABLE it_ekpo
    FROM zekpo
    WHERE
      ebeln = ebeln.
    IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE e000. " invalid PO# with field value as red colored
    ENDIF.
  ELSE.
    MESSAGE e005. "if no value entered
  ENDIF.
ENDMODULE.                 " GET_DATA  INPUT 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the line as mentioned at screen logic, only field EBELN will be enabled when error message is encountered, and rest fields will be greyed-out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To keep a set of field values on screen enabled when error message is encountered, you can use the concept of &lt;STRONG&gt;CHAIN...ENDCHAIN&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Tarun Gambhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 05:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4976563#M1159638</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-01-13T05:34:13Z</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/4976564#M1159639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use CHAIN...END CHAIN to group the fields together .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CHAIN.
    FIELD:
           w_werks,
           w_con_pt,
           w_date_low,
           w_date_high MODULE field_validation ON CHAIN-INPUT.
  ENDCHAIN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is error in any of the above 4 fields, all these fields will be open and the rest of the fields on the screen will be disabled.&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;Jinson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 11:24:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4976564#M1159639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T11:24: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/4976565#M1159640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There won't be a way to make the field BOLD, and to change the color, the only option is to set the&lt;/P&gt;&lt;P&gt;SCREEN-INTESIFIED = 1 in the PBO routine.  This will give you the color of RED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunetly, when you use MESSAGE to do the error, you do not get back to the PAI routine to&lt;/P&gt;&lt;P&gt; make the adjustments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could keep a list of the fields with errors instead of using the MESSAGE verb then handle the&lt;/P&gt;&lt;P&gt; coloring in the PAI routine.. but then.. where/when do you display the message?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 11:52:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4976565#M1159640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T11:52:24Z</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/4976566#M1159641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Making Bold the text is not possible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 04:31:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-dialog-programming/m-p/4976566#M1159641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T04:31:35Z</dc:date>
    </item>
  </channel>
</rss>

