09-04-2013 6:22 AM
Hi,
I am looking at a link where in get the sales order, line item (ETENR) and corresponding delivery document .
Like
Sale Ordr Posnr Etenr Delivery
12345 10 1 XXXXXXXXXX
12345 10 3 XXXXXXXXXX
12345 10 7 XXXXXXXXXX
I get the sale Oder , Pos No and Line Item from VBEP but i am not able to link the Delivery doc with the correct Line item.
I tried LIKP & LIPS but of not much help.
Can any please let me know how to proceed.
with rgds
Ranjith
09-04-2013 6:34 AM
09-04-2013 6:40 AM
09-04-2013 6:41 AM
Hi Ranjith,
When you have the sales document no. and sales item no. then go to LIPS table and put the sales doc. no. on field VGBEL and the sales item no. on field VGPOS and search.
This will give you the corresponding delivery documents along with the item details from table LIPS.
Regards,
Arnab
09-04-2013 6:50 AM
select VBELN " (Subsequent document-in ur case->delivery no)
POSNN " (Subsequent item->del item no)
from vbfa
into <wa>
where VBELV eq <ur sales doc number> and
POSNV eq <ur sales doc item> and
VBTYP_N eq 'J' and "delivery
VBTYP_V eq 'C'. "order
09-04-2013 6:51 AM