Hi experts,
I need to make some checks before saving a purchase order. I'm using badi IF_EX_ME_PROCESS_PO_CUST. If I change Payment termns at header level (and some other conditiones) an error message must be shown .
At method PROCESS_HEADER it's working fine, I compare all fields required and then I give the error
mmpur_business_obj_id lw_mepoheader-id.
mmpur_message_forced 'E' 'ZMM01' '049' l_zterm '' '' ''.
At method CHECK I do the same.
When I save the PO I get the error and it's not possible to save.
The problem is when I change Payment terms and hold the PO (this is the first time I use the button "Hold"). PROCESS_HEADER and CHECK work fine but at the end the PO is saved with the wrong data, I want to keep the previous payment terms. Even if I call to method set_data at method CHECK, when I debug method POST I have the new value.
Is there anything I can do so when holding the PO this field is not changed?
thanks in advance,
Maria