<?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 Handling Errors in Purchase Requisition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-errors-in-purchase-requisition/m-p/8095273#M1615844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For handling errors in Purchase Orders is quite simple because it can be used &lt;STRONG&gt;mm_messages_mac.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and there can be used macros:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- for adding new errors &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;mmpur_message_forced 'E' 'ZM' '048' TEXT-003 ' '  ' ' ' ' .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- for removing errors, it can be used:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;mmpur_remove_messages_by_id *ID*&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Almost all the macros from &lt;STRONG&gt;mm_messages_mac.&lt;/STRONG&gt; uses this &lt;STRONG&gt;ID&lt;/STRONG&gt;. What is that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for PO (Purchase Order - ME2XN) is very simple to implement BADI's like ME_PROCESS_CUST_PO, where there can be found that &lt;STRONG&gt;ID&lt;/STRONG&gt; in the methods structures (mepo*), which is used by those macros. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But how can you handle errors in Purchase Requisition (PR - ME5XN) ??? In ME_PROCESS_REQ_CUST, for exemple, none of the methods contains structures with that ID field.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help.&lt;/P&gt;&lt;P&gt;I couldn't find any answer on the internet. It seems that nobody knows. Isn't it ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jul 2011 07:40:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-07-13T07:40:09Z</dc:date>
    <item>
      <title>Handling Errors in Purchase Requisition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-errors-in-purchase-requisition/m-p/8095273#M1615844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For handling errors in Purchase Orders is quite simple because it can be used &lt;STRONG&gt;mm_messages_mac.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and there can be used macros:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- for adding new errors &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;mmpur_message_forced 'E' 'ZM' '048' TEXT-003 ' '  ' ' ' ' .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- for removing errors, it can be used:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;mmpur_remove_messages_by_id *ID*&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Almost all the macros from &lt;STRONG&gt;mm_messages_mac.&lt;/STRONG&gt; uses this &lt;STRONG&gt;ID&lt;/STRONG&gt;. What is that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for PO (Purchase Order - ME2XN) is very simple to implement BADI's like ME_PROCESS_CUST_PO, where there can be found that &lt;STRONG&gt;ID&lt;/STRONG&gt; in the methods structures (mepo*), which is used by those macros. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But how can you handle errors in Purchase Requisition (PR - ME5XN) ??? In ME_PROCESS_REQ_CUST, for exemple, none of the methods contains structures with that ID field.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help.&lt;/P&gt;&lt;P&gt;I couldn't find any answer on the internet. It seems that nobody knows. Isn't it ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 07:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-errors-in-purchase-requisition/m-p/8095273#M1615844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-13T07:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Errors in Purchase Requisition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-errors-in-purchase-requisition/m-p/8095274#M1615845</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;                There is a method available in the interface of BADI ME_PROCESS_REQ_CUST. It is called CHECK. You can use this to handle error or park the document. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                Please let me know if this answers your questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 09:52:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-errors-in-purchase-requisition/m-p/8095274#M1615845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-13T09:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Errors in Purchase Requisition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-errors-in-purchase-requisition/m-p/8095275#M1615846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Babu, &lt;/P&gt;&lt;P&gt;How can i handle errors from here??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For exemple I need to give my own message, delete a standard one, and position cursor on a custom field. &lt;/P&gt;&lt;P&gt;In Purchase Order I could use macros from mm_messages_mac.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: mmpur_remove_messages_by_id &lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But the problem is that this ID i couldn't find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 10:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-errors-in-purchase-requisition/m-p/8095275#M1615846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-13T10:31:56Z</dc:date>
    </item>
  </channel>
</rss>

