Skip to Content

BADI ME_PROCESS_OUT_CUST Error

Hello ,

BADI - ME_PROCESS_OUT_CUST method PROCESS_ITEMS is getting executed 10 times and for the 11th time , It is giving error message MEOUT - 134 (Error in BAdI ME_PROCESS_OUT / ME_PROCESS_OUT_CUST).

I observed that, in Process_items ,whenever we use method IM_ITEM->SET_DATA method , then only this is happening . and IF don't update ITEM Data using SET_DATA ,then there is no point of implementing this BADI.

So strange. I saw notes saying, inorder to avoid infinite loop , SAP used this 10 times logic . But not sure why and how to save custom field data into EKPO using this BADI .Does anyone have any idea?

Katharina Hellmich any help please?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Nov 27, 2018 at 08:48 AM

    To prevent this kind of error use the SET_DATA when and only when you change some data (some field value in structure passed to SET_DATA differs from structure returned by GET_DATA) else SET_DATA will trigger the BAdI again and again til the error is raised.

    Add comment
    10|10000 characters needed characters exceeded

    • This is quite easy, something such as

      " First read and save a before image
      item_new = item_old = im_item->get_data( ).
      " your code goes here...
      " only when data was actually changed
      if item_new ne item_old.
        im_item->set_data( item_new ).
      endif.
  • Nov 26, 2018 at 08:12 AM

    See SAP-KBA 2439208 and SAP Wiki link regarding "ME_PROCESS_OUT_CUST" and "MEOUT 134".

    Add comment
    10|10000 characters needed characters exceeded