Dear experts
I want to add an extra/new condition to the PO condition table in special cases.
For that I want to use: IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM
It cannot be controlled via the pricing schema, because sometimes, an extra condition needs to be added and sometimes not.
I have in the new condition structure, set me->gv_conditions-updkz = 'I'. – for Insert
When I using the me->go_item->set_conditions( gt_conditions ) then the system goes into endless loop.
Then I have tried to implement this code
DATA(lo_header) = io_item->get_header( ).
DATA lo_order TYPE REF TO cl_po_header_handle_mm.
lo_order ?= lo_header.
lo_header->set_changed( ).
IF NOT lo_order->my_recheck_queue IS INITIAL.
CLEAR lo_order->my_recheck_queue.
ENDIF.
But that did not do the work.
The conditions were not updated at all.
I have investigated many SAP knowledges notes and answers, but I have not seemed a solution for this case.
So I wander, if it is possible to use set_conditions within the PROCESS_ITEM can be used to add extra conditions. So any thoughts? Or suggestions?
Thanks for your time.