Skip to Content

Read warning PO messages with ME_PROCESS_PO_CUST badi

Dear all,

I would like to use ME_PROCESS_PO_CUST badi and if a specific standard warning message appears to append a field in EKKO table.

The message appears after SAP checks the budget of a WBS and in case of over budget (and thus the warning message) I want the PO to be flagged for over-budget in order to retrieve later a different approval procedure. Is it possible to retrieve the messages that appear in the PO during check?


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 27, 2017 at 10:18 AM

    You could get current reference to cl_message_handler_mm calling cl_handle_manager_mm=>get followed by cl_message_handler_mm=>get_handler, then call cl_message_handler_mm->getlist or get_list_for_bapi (easier to check) to get list of events/messages.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 27, 2017 at 10:51 AM

    Hi Raymond,

    As i am not a developer can you please provide more details in order to get the idea? Do you have a sample code in order for me to start?


    Add comment
    10|10000 characters needed characters exceeded

    • Better ask an Abaper of your company/site. The most important point to analyze in your case is the context identifier to use in the method call, as it should come from accounting information, budget check, so for example in PROCESS_ACCOUNT

      ls_accounting = im_account->get_data( ).
        " lo_item = im_account->get_item( ).
        " ls_item = lo_item->get_data( ).
        " lo_header = lo_item->get_header( ).
        " ls_header = lo_header->get_data( ).
      " Use ls_accounting-id in the call to cl_handle_manager_mm