01-11-2006 12:59 PM
Hi,
I got a requirement to develop BDC.In VL01N->delivery type having ZLKB & ZKKB.If the sales order is having delivery type as ZLKB, i want to pass PLWN as shipping point,if delivery type is ZKKB , i want to enter KHWN in shipping point. Where can i find relation between shipping point & sales order.
reward guaranteed
priya
01-11-2006 1:04 PM
Hi,
There is a shipping point field(VSTEL) in the Sales order item table(VBAP)..
Would VBAP-VSTEL be of help for you to relate?
Thanks,
Renjith
01-11-2006 1:04 PM
Hi,
There is a shipping point field(VSTEL) in the Sales order item table(VBAP)..
Would VBAP-VSTEL be of help for you to relate?
Thanks,
Renjith
01-11-2006 1:13 PM
Yours looks like a delivery create and the deliverry type is LIKP-LFART which gets determined based on the sales order or the type that u give on the screen.
VBAP-VSTEL is the shippinpoint as Ranjit has said , maybe u can use these to compare,
01-11-2006 1:20 PM
Hi Vijay
Your answer is good.But how to get sales order & item based on delivery type.
thanks
priya
01-11-2006 1:27 PM
I think you might be having delivery number, along delivery type. take the delivery number and get the sales order,item from lips by passing the delivery.
(lips-vgbel,lips-vgpos) sales order and item.
with the order,item assign the vstel of order in vbap.
regards
vijay
01-11-2006 1:28 PM
Hi
You can find out the link between delivery and order type in TVAK table: field LFARV.
So:
SELECT SINGLE * FROM TVAK WHERE AUART = VBAK-AUART.
IF TVAK-LFARV = 'ZLKB' OR
TVAK-LFARV = 'ZKKB'.
....
VBAP-VSTEL = ....
Max
Message was edited by: max bianchi
01-11-2006 2:29 PM
01-11-2006 1:19 PM
Based on the delivery get the sales order number, item.
pass these to VBAP and find the shipping point attached.
regards
vijay
01-11-2006 1:24 PM
Hi priya,
1. VBAK - vbeln
VBLK - lfart
The above are the required tables.
regards,
amit m.
01-11-2006 1:29 PM
Hi,
You have delivery type LFART at hand. Then query LIKP table for all the dliveries that belong to LFART = your LFART. For all the dleiveries picked go to VBAP and pass the Delivery number for VBAP-VGBEL = LIKP-VBELN and pick the VBAP-VSTEL and VBAP-VBELN that u need.
Shobana