Created two PR from ME51N this t code and assigned to maintenance order .
BTW PO for PR but if GR is pending for one PR.
System should give user the error message for the pending GR, TECO should not happen.
Logic i created was,
EKBE-ELIKZ (delivery completed) IF(EKKN –MENGE= EKBE –MENGE) AND EKBE-ELIKZ=‘X’
but if once total QTY for GR is 20 mea
first time its receiving 10 later, second time its receiving 10.
now GR is received. but in tables two GR no r there. last completed GR no row is assigning 'X'
Want to compare the qty wheather its received r pending?
Valuable answers are appreciable.