Skip to Content
Jan 02, 2015 at 04:04 AM

BADI ME_PROCESS_PO_CUST - SET_DATA is causing infinite loop with error



I am using ME_PROCESS_PO_CUST implementation and we are changing address no. in PO delivery address tab at item level.

We are getting infinite loop issue followed by "Data from Business Add-In ME_PROCESS_PO_CUST not adopted".

Documentation -

Message no. MEPO151


An endless loop occurred during the processing of the Business Add-In ME_PROCESS_PO_CUST. The system terminated the processing.


Contact your system administrator.

Procedure for System Administration

Check whether standard fields are changed in the implementation of the Business Add-In ME_PROCESS_PO_CUST.

Changes to standard fields that are part of the Include structure MEPOITEM_TECH and/or MEPOSCHEDULE_TECH are generally not allowed. In addition, no field values that are not changeable through the field settings in the Enjoy transactions can be changed in the BAdI. Correct the implementation accordingly.

In order to avoid this error we have used code -

DATA l_po1 TYPE REF TO cl_po_header_handle_mm.

l_po1 ?= im_header.

IF NOT l_po1->my_recheck_queue IS INITIAL.

CLEAR l_po1->my_recheck_queue.


This code is avoiding error message and infinite loop but it is not copying address no. in delivery address tab of transaction ME21N.

if anyone faced similar problem,please let me know with your reply..