Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BADI ME_PROCESS_PO_CUST - SET_DATA is causing infinite loop with error

Hi,

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

Diagnosis

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

Procedure

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.

ENDIF.

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..

Thanks,

Praveen

Not what you were looking for? View more on this topic or Ask a question