10-16-2007 6:21 AM
Hello,
Does any one have code for sales orders with out delivery?
Thanks.
10-16-2007 6:33 AM
Check VBUK table to get sales order nos
where VBUK-LFSTK = 'A' ( The delivery status is 'A' if delivery is not created for this sales order.)
and VBUK-VBTYP = 'C' (Order)
and VBUK-VBOBJ = 'A'.
10-16-2007 6:22 AM
Hi,
What do you mean by the code for Sales Order without delivery.
A Sales Order can definitely exist without being delivered.
Cud u please explain ur requirement so that we can help u out.
Thanks and regards,
Himanshu
10-16-2007 6:33 AM
Check VBUK table to get sales order nos
where VBUK-LFSTK = 'A' ( The delivery status is 'A' if delivery is not created for this sales order.)
and VBUK-VBTYP = 'C' (Order)
and VBUK-VBOBJ = 'A'.
10-16-2007 6:36 AM
Hi
Get the Sales order data from VBAK and VBAP tables into ITAB1.
For all entries of this table
fetch the data from LIKP and LIPS into ITAB2
where LIPS-VGBEL = ITAB1-VBELn and LIPS-VGPOS = ITAB1-POSNR.
Now delete the orders data (which are delivered) ITAB2 from ITAb1 table.
Left out Orders in ITAB1 are the orders without deliveries.
Regards
Anji