cancel
Showing results for 
Search instead for 
Did you mean: 

Sales order -goods issued

Former Member
0 Kudos

Hi

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

Thanks

VRV

Accepted Solutions (1)

Accepted Solutions (1)

jj
Active Contributor
0 Kudos

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

ENDIF.

Answers (2)

Answers (2)

Former Member
0 Kudos

T.Code: VF04 will give list of Deliveries due for Billing. This will refer that PGI is done for them.

Hopefully this answers your question.

Regards,

Rajesh Banka

Reward points if helpful.

Former Member
0 Kudos

One way is to find the order number in vbfa field to check whether material document (post goods) exists. In this way you can check whether pgi has been done or not.

pl reward ponts if u find it useful