<?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 message in ME_PROCESS_PO_CUST- check method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-me-process-po-cust-check-method/m-p/12272499#M1988003</link>
    <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;raymond.giuseppi&lt;/SPAN&gt; ,&lt;/P&gt;&lt;P&gt;I wanted to change the  Service item(s) against Po item , but i am not able to read proper service items with Method GET_DATA .&lt;/P&gt;&lt;P&gt;Please help me out to read and change  the  service item using get_data , set_data .&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Om . &lt;/P&gt;</description>
    <pubDate>Sat, 17 Oct 2020 09:13:51 GMT</pubDate>
    <dc:creator>former_member396030</dc:creator>
    <dc:date>2020-10-17T09:13:51Z</dc:date>
    <item>
      <title>Error message in ME_PROCESS_PO_CUST- check method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-me-process-po-cust-check-method/m-p/12272497#M1988001</link>
      <description>&lt;P&gt;I wanted to put a validation at item level while creating PO, The error message should display in Pop up like standard errors, I am able to achieve that in Check method of BADI ME_PROCESS_PO_CUST.&lt;/P&gt;
  &lt;P&gt;The issue is i want to display all error in the Pop up like if multiple items have failed all items should be in the list, But when i display error in CHECK method, control comes out from method and only one error can be displayed at a time, is it possible to display all errors through this method?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 07:18:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-me-process-po-cust-check-method/m-p/12272497#M1988001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-10-16T07:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in ME_PROCESS_PO_CUST- check method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-me-process-po-cust-check-method/m-p/12272498#M1988002</link>
      <description>&lt;P&gt;Should I understand that you didn't use the macros of the include mm_messages_mac to handle error messages in the BAdI, or am I mistaken?&lt;/P&gt;&lt;P&gt;Sample on how to handle errors in PROCESS_ITEM&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  INCLUDE mm_messages_mac.
  DATA: ls_item TYPE mepoitem.
* Get data
  ls_item = im_item-&amp;gt;get_data( ).
* Cleansing time
  mmpur_context mmcnt_context_badi.
  IF NOT ls_item-id IS INITIAL.
    mmpur_remove_msg_by_context ls_item-id mmcnt_context_badi.
  ENDIF.
* ...
* Raise an error on field Material
  im_item-&amp;gt;invalidate( ).
  mmpur_metafield mmmfd_matnr.
  mmpur_message_forced 'E' 'ZXXX' '123' &amp;lt;item_data&amp;gt;-matnr ' ' ' ' ' '.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Oct 2020 13:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-me-process-po-cust-check-method/m-p/12272498#M1988002</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2020-10-16T13:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in ME_PROCESS_PO_CUST- check method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-me-process-po-cust-check-method/m-p/12272499#M1988003</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;raymond.giuseppi&lt;/SPAN&gt; ,&lt;/P&gt;&lt;P&gt;I wanted to change the  Service item(s) against Po item , but i am not able to read proper service items with Method GET_DATA .&lt;/P&gt;&lt;P&gt;Please help me out to read and change  the  service item using get_data , set_data .&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Om . &lt;/P&gt;</description>
      <pubDate>Sat, 17 Oct 2020 09:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-me-process-po-cust-check-method/m-p/12272499#M1988003</guid>
      <dc:creator>former_member396030</dc:creator>
      <dc:date>2020-10-17T09:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in ME_PROCESS_PO_CUST- check method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-me-process-po-cust-check-method/m-p/12272500#M1988004</link>
      <description>&lt;P&gt;I used error message without macros like e000(), but even with macros multiple errors are not displayed, control comes out from the method&lt;/P&gt;&lt;P&gt;once you displayed first error&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 08:44:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-me-process-po-cust-check-method/m-p/12272500#M1988004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-11-05T08:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in ME_PROCESS_PO_CUST- check method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-me-process-po-cust-check-method/m-p/12272501#M1988005</link>
      <description>&lt;P&gt;Strange as macro 'mmpur_message_forced' force the collect.&lt;/P&gt;&lt;P&gt;Could you try to force message handler behavior with following macro :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" message type / dialog / collect
mmpur_message_config 'E' ' ' 'X'. " no display and collect&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and some debug (e.g. break-point at start of method CL_MESSAGE_MM=&amp;gt;CREATE)&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 15:35:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-me-process-po-cust-check-method/m-p/12272501#M1988005</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2020-11-06T15:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in ME_PROCESS_PO_CUST- check method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-me-process-po-cust-check-method/m-p/12272502#M1988006</link>
      <description>&lt;P&gt;Did you try to put your control in methods such as PROCESS_ITEM rather than CHECK?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 14:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-me-process-po-cust-check-method/m-p/12272502#M1988006</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2020-11-10T14:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in ME_PROCESS_PO_CUST- check method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-me-process-po-cust-check-method/m-p/12272503#M1988007</link>
      <description>&lt;P&gt;You have to set business object (item) for which you output the message:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;METHOD if_ex_me_process_po_cust~check.
  INCLUDE mm_messages_mac.

  ...
  mmpur_business_obj item_ref.    "Reference to the item
  mmpur_metafield mmmfd_cust_01.  "Field with error
  MESSAGE ... INTO dummy.
  mmpur_message_forced sy-msgty sy-msgid sy-msgno sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  DATA(lf_failed) = 'X'.
  ...

  IF lf_failed = 'X'.
    ch_failed = 'X'.
  ENDIF.
ENDMETHOD.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Nov 2023 10:13:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-me-process-po-cust-check-method/m-p/12272503#M1988007</guid>
      <dc:creator>erovneiko</dc:creator>
      <dc:date>2023-11-15T10:13:50Z</dc:date>
    </item>
  </channel>
</rss>

