<?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  for input  validations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-for-input-validations/m-p/5469346#M1252660</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;Problem:I'm writing  FM  for the material plant details  on inputs material and plant.&lt;/P&gt;&lt;P&gt;                   if  material is not valied  and i need to show  error messages&lt;/P&gt;&lt;P&gt;                    if material is not in plant  then it shows relevent Error messages&lt;/P&gt;&lt;P&gt;                   i need to handle all  possiable  error messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirement:I need standard  FM  to handle any type of error messages that will eraise,&lt;/P&gt;&lt;P&gt;                   that i need to show.&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;could anyone tel me any standard FM to handle any type Error messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;sivakumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Apr 2009 07:16:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-10T07:16:56Z</dc:date>
    <item>
      <title>Error  handling  for input  validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-for-input-validations/m-p/5469346#M1252660</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;Problem:I'm writing  FM  for the material plant details  on inputs material and plant.&lt;/P&gt;&lt;P&gt;                   if  material is not valied  and i need to show  error messages&lt;/P&gt;&lt;P&gt;                    if material is not in plant  then it shows relevent Error messages&lt;/P&gt;&lt;P&gt;                   i need to handle all  possiable  error messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirement:I need standard  FM  to handle any type of error messages that will eraise,&lt;/P&gt;&lt;P&gt;                   that i need to show.&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;could anyone tel me any standard FM to handle any type Error messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;sivakumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 07:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-for-input-validations/m-p/5469346#M1252660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-10T07:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error  handling  for input  validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-for-input-validations/m-p/5469347#M1252661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the past I have used the following function modules to handle multiple error messages;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CALL FUNCTION 'MESSAGES_INITIALIZE' "To initialise the storage table
    EXPORTING
      collect_and_send   = ' '
      reset              = 'X'
      line_from          = ' '
      line_to            = ' '
      i_store_duplicates = ' '
      check_on_commit    = 'X'
      i_reset_line       = ' '.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CALL FUNCTION 'MESSAGE_STORE' " Use to store each message one by one as they occur
    EXPORTING
      arbgb                  = p_msid
      msgty                  = p_tipo
      msgv1                  = p_var1
      msgv2                  = p_var2
      msgv3                  = p_var3
      msgv4                  = p_var4
      txtnr                  = p_txtnr
    EXCEPTIONS
      message_type_not_valid = 1
      not_active             = 2
      OTHERS                 = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CALL FUNCTION 'MESSAGES_SHOW' " Use at the end to finally display the messages 
    EXPORTING
      object             = text-004
      send_if_one        = 'X'
      i_use_grid         = 'X'
    EXCEPTIONS
      inconsistent_range = 1
      no_messages        = 2
      OTHERS             = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 09:53:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-for-input-validations/m-p/5469347#M1252661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T09:53:56Z</dc:date>
    </item>
  </channel>
</rss>

