<?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: Warning messages from ME_PROCESS_REQ_CUST  method CHECK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-messages-from-me-process-req-cust-method-check/m-p/8253064#M1631264</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 can  use  Below  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;include mm_messages_mac. "useful macros for message handling

if  ur condition   .

mmpur_message_forced 'W' 'ME' '083' text-001 '' '' ''.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text-001  : text element   for your description  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUt Warning Message will not keep the screen on error page  .  it will be  better  to use   'E' for error   if you want  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mmpur_message_forced 'E' 'ME' '083' text-001 '' '' ''.&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;Deepak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Deepak Dhamat on Oct 21, 2011 8:20 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Oct 2011 06:15:51 GMT</pubDate>
    <dc:creator>deepak_dhamat</dc:creator>
    <dc:date>2011-10-21T06:15:51Z</dc:date>
    <item>
      <title>Warning messages from ME_PROCESS_REQ_CUST  method CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-messages-from-me-process-req-cust-method-check/m-p/8253061#M1631261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am facing below mentioned issue with BADI ME_PROCESS_REQ_CUST &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: how can we issue warning messages from BADI ME_PROCESS_REQ_CUST method CHECK?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2: Check method is called twice if I click on check button in ME52N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 04:56:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-messages-from-me-process-req-cust-method-check/m-p/8253061#M1631261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-21T04:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Warning messages from ME_PROCESS_REQ_CUST  method CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-messages-from-me-process-req-cust-method-check/m-p/8253062#M1631262</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;1. Use MESSAGE '&amp;lt;text&amp;gt;' type 'W' in the check method to raise your warning.&lt;/P&gt;&lt;P&gt;2. Use a counter to make the your code execute only one time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will surely help you !!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Punit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 05:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-messages-from-me-process-req-cust-method-check/m-p/8253062#M1631262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-21T05:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Warning messages from ME_PROCESS_REQ_CUST  method CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-messages-from-me-process-req-cust-method-check/m-p/8253063#M1631263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Punit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: I have tried that but no messages are shown at check if i issue warning messages. if i trigger error messages then it will be displyed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 06:07:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-messages-from-me-process-req-cust-method-check/m-p/8253063#M1631263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-21T06:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Warning messages from ME_PROCESS_REQ_CUST  method CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-messages-from-me-process-req-cust-method-check/m-p/8253064#M1631264</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 can  use  Below  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;include mm_messages_mac. "useful macros for message handling

if  ur condition   .

mmpur_message_forced 'W' 'ME' '083' text-001 '' '' ''.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text-001  : text element   for your description  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUt Warning Message will not keep the screen on error page  .  it will be  better  to use   'E' for error   if you want  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mmpur_message_forced 'E' 'ME' '083' text-001 '' '' ''.&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;Deepak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Deepak Dhamat on Oct 21, 2011 8:20 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 06:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-messages-from-me-process-req-cust-method-check/m-p/8253064#M1631264</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-10-21T06:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Warning messages from ME_PROCESS_REQ_CUST  method CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-messages-from-me-process-req-cust-method-check/m-p/8253065#M1631265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot it solved my first issue. Will work on it and will close thread after finishing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 06:27:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-messages-from-me-process-req-cust-method-check/m-p/8253065#M1631265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-21T06:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Warning messages from ME_PROCESS_REQ_CUST  method CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-messages-from-me-process-req-cust-method-check/m-p/8253066#M1631266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Did you figure out how to assign the warning/error messages to specific items of the purchase requisition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I can issue warning messages that are shown at header lever but I did not discover how to assign it to a specìfic item.&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 a lot!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Douglas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 14:42:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-messages-from-me-process-req-cust-method-check/m-p/8253066#M1631266</guid>
      <dc:creator>DouglasCezar</dc:creator>
      <dc:date>2011-12-14T14:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Warning messages from ME_PROCESS_REQ_CUST  method CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-messages-from-me-process-req-cust-method-check/m-p/8253067#M1631267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If messages are issued from method PROCESS_ITEM it will get assigned to specific line items in PR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use include include mm_messages_mac to issue warning message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 03:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-messages-from-me-process-req-cust-method-check/m-p/8253067#M1631267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-15T03:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Warning messages from ME_PROCESS_REQ_CUST  method CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-messages-from-me-process-req-cust-method-check/m-p/13599959#M2026461</link>
      <description>&lt;P&gt;I am aware that this question was asked more than 10 years ago, but there will continue to be new developers who face this problem. So...&lt;BR /&gt;Use the macro mmpur_business_obj in the methods for processing header, item and account assignment. And then the final nice trick which I discovered today after working with ABAP for more than 20 years, but admittedly not with ME_PROCESS_REQ_CUST all those years &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;BR /&gt;In the CHECK method, get the message handler and get the highest message severity to decide whether the check failed (to prevent saving a requisition with error messages).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;  METHOD if_ex_me_process_req_cust~check.
    CHECK im_hold = mmpur_no AND im_park = mmpur_no.

    ch_failed = im_header-&amp;gt;is_valid( ).

    INCLUDE mm_messages_mac. " useful macros for message handling
    cl_message_handler_mm=&amp;gt;get_handler( IMPORTING ex_handler = gl_message_handler ).
    DATA(msg_severity) = gl_message_handler-&amp;gt;get_severity_bo( im_header ).
    IF msg_severity &amp;gt;= mmpur_event_e.
      ch_failed = mmpur_yes.
      RETURN.
    ENDIF.

    LOOP AT im_header-&amp;gt;get_items( ) ASSIGNING FIELD-SYMBOL(&amp;lt;itm&amp;gt;).
      msg_severity = gl_message_handler-&amp;gt;get_severity_bo( im_business_obj          = &amp;lt;itm&amp;gt;-item
                                                          im_include_child_objects = mmpur_yes ).
      IF msg_severity &amp;gt;= mmpur_event_e.
        ch_failed = mmpur_yes.
        EXIT.
      ENDIF.
    ENDLOOP.
  ENDMETHOD.

  METHOD if_ex_me_process_req_cust~process_account.
    INCLUDE mm_messages_mac. " useful macros for message handling
    mmpur_business_obj im_account_ref.
    [... your checks and MESSAGE tnnn(cl) WITH v1..v4 INTO for_where_used_list ...]
    mmpur_metafield mmmfd_[whatever].
    mmpur_message_forced sy-msgty sy-msgid sy-msgno
                         sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDMETHOD.

  METHOD if_ex_me_process_req_cust~process_header.
    INCLUDE mm_messages_mac. " useful macros for message handling
    mmpur_business_obj im_header.
    [... your checks and MESSAGE tnnn(cl) WITH v1..v4 INTO for_where_used_list ...]
    mmpur_metafield mmmfd_[whatever].
    mmpur_message_forced sy-msgty sy-msgid sy-msgno
                         sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDMETHOD.

  METHOD if_ex_me_process_req_cust~process_item.
    INCLUDE mm_messages_mac. " useful macros for message handling
    mmpur_business_obj im_item.
    [... your checks and MESSAGE tnnn(cl) WITH v1..v4 INTO for_where_used_list ...]
    mmpur_metafield mmmfd_[whatever].
    mmpur_message_forced sy-msgty sy-msgid sy-msgno
                         sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDMETHOD.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Feb 2024 22:24:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-messages-from-me-process-req-cust-method-check/m-p/13599959#M2026461</guid>
      <dc:creator>KjetilKilhavn</dc:creator>
      <dc:date>2024-02-08T22:24:02Z</dc:date>
    </item>
  </channel>
</rss>

