Skip to Content
0
Former Member
May 28, 2010 at 03:37 AM

get the remaining qty in PO

1507 Views

Hi experts,

I use the following code to get the remaining qty in PO:

SELECT ERFMG from MSEG into wa_qty where  EBELN = PO_NUMBER AND EBELP = PO_ITEM AND MATNR = ARTICLENO .
      QUANTITY = QUANTITY - wa_qty.
ENDSELECT.

But it's very slow.How to optimize it?

thanks.