Skip to Content
0

Read warning PO messages with ME_PROCESS_PO_CUST badi

Apr 27, 2017 at 09:58 AM

123

avatar image

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?

BR

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Raymond Giuseppi
Apr 27, 2017 at 10:18 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Alexandros Ntais Apr 27, 2017 at 10:51 AM
0

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?

BR

Show 1 Share
10 |10000 characters needed characters left 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
0