Sales order -goods issued
I am trying to find out the "Sales orders" for which "Goods issued" is complete for all items under the "Sales order".
Can we use VBUK-GBSTK for finding the status of Sales order for this purpose? or Is there any other field name that should be used to find this?
Any Help is appreciated
Joffy John replied
From VBFA find the delivery document nos. against that Sales Order then with delivery document no check VBUK table to get the status of that delivery. (PGI done or not)
********logic to find whether PGI done or not
Shipped or not.
SELECT SINGLE * FROM vbuk WHERE vbeln = wa_vbfa-vbeln
AND vbtyp = 'J'
AND vbobj = 'L'.
IF vbuk-wbstk = 'C'. "PGI done for that delviery