Skip to Content
0
Former Member
Apr 13, 2012 at 10:18 AM

PR+PO+GR Link tables

461 Views

Dear Experts,

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,

  1. Go to table EKKN (PO) and pick the value EKKN –AUFNR(order no) , EKKN –EBELN(PO no) , EKKN –MENGE(QTY).

  1. Go to table EKBE (GR)and pick the value EKBE –EBELN(PO no) , EKBE –BELNR(GR no) , EKBE –MENGE(Qty),

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.

Regards,

KPS.