Skip to Content
Sep 21, 2011 at 12:00 AM

Set KBETR in purchase order conditions with SET_CONDITIONS


Hello, my question is:

This is my code at a system with Netweaver 7.01

LOOP AT lt_conditions INTO ls_conditions.

CASE ls_conditions-kschl.

WHEN '[condition]'.

ls_conditions-kbetr = '9.999'.

MODIFY lt_conditions FROM ls_conditions TRANSPORTING kbetr.

CALL METHOD im_item->set_conditions


im_conditions = lt_conditions.



Here is the error messages from the system.

Data from Business Add-In ME_PROCESS_PO_CUST not adopted

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.

The note

Note 803749 - ME_PROCESS_PO_CUST Business Add-In: Endless loop

makes reference to the structures MEPOITEM_TECH and MEPOSCHEDULE_TECH but neither of both structures have KBETR, whereby don't exist any reason for the error.

Any idea for modify KBETR at PROCESS_ITEM or dodge the error.

Thanks in advance.

Edited by: Pedro Pablo López Pérez on Sep 21, 2011 2:00 AM