FSCM Configuration Link
FSCM Configuration Link
I have a requirement on ME21n or ME22n, I need to do validation on material type and it is not successful, I
need to trough error message. I made that development according to requirement in EXIT ME_PROCESS_PO_CUST
(PROCESS_ITEM).
How did you add your customer fields/screen: the old exit MM06E005 or the BAdI ME_GUI_PO_CUST.
Nevertheless, read first KBA 1927793 - ME_PROCESS_PO_CUST not triggered at custom field copy / change
in ME21n / ME22n.
BADI ME_PROCESS_PO_CUST is not designed to be triggered on changing the values of custom fields.
You could code your check in
Method CHECK of ME_PROCESS_PO_CUST which will always been executed before SAVE and yet
allow to raise errors.
Customer exit EXIT_SAPMM06E_012 of MM06E005
PO_NUMBER = im_ekko-ebeln.
wa_po_item-PO_ITEM = wa_ekpo-ebelp.
* EVERS to be derived
wa_po_item-QUANTITY = '32'.
APPEND wa_po_item to lt_po_item .
wa_po_itemx-PO_ITEM = wa_ekpo-ebelp.
wa_po_itemx-QUANTITY = 'X'.
APPEND wa_po_itemx to lt_po_itemx.
ENDLOOP.
CALL FUNCTION 'BAPI_PO_CHANGE' IN BACKGROUND TASK
EXPORTING
purchaseorder = PO_NUMBER
NO_MESSAGING = 'X'
NO_MESSAGE_REQ = 'X'
NO_AUTHORITY = 'X'
NO_PRICE_FROM_PO = 'X'
TABLES
RETURN = lt_return
POITEM = lt_po_item
POITEMX = lt_po_itemx.