Assume that the number of PO is 100. After receiving 60, you think that the material quality of the vendor is poor, and the remaining 40 is rejected. On the Delivery tab, select the Delivery Completed flag, this flag is very important, because with this flag, the remaining 40 will not be involved in transportation during the run MRP. but it does not seem to prevent you from continuing to receive the goods. You may need to use Exit.
SMOD: activate MBCF0002-> EXIT_SAPMM07M_001-> ZXMBCU02.ZXMBCU02For example, a very simple small judgment can be used.
DATA: I _ELIKZ LIKE EKPO-ELIKZ.
Select single elikz polici_elikz FROM EKPO
Where ebeln = I _MSEG-EBELN
And ebelp = I _MSEG-EBELP.
IF I _ELIKZ = 'x '.
MESSAGE E001 (00) WITH 'po/ITEM: 'I _ MSEG-EBELN I _MSEG-EBELP' has delivery complete indictor, you cannot have mgoods receept any more '.
ENDIF.
In fact, this exit is very useful. It is also used to determine that materials cannot be shipped if the moving average (or standard) price is absent.
PO has not been handed in, manual delivery is completed, please note