on 10-07-2007 11:32 AM
Hi ,
I have Delivery number (vbeln) from table LIPS and i need to fetch the Purchasing Document Number(ebeln) and our refernece (UNSEZ) from table EKKO?
Can anyone please help to get the relation
Thanx in advance
Hi
If a delivery is created with reference to a Pur order number check the
LIPS-VGBEL and LIPS-VGPOS fields which are nothing but PO number and item numbers(EKKO-EBELN and EKPO-EBELP)
If the Delivery is with respect to Sales order the fields LIPS-VGBEL and VGPOS contain the Sales order No and Item
Otherwise check like this With the help of PO no and Item
EKPO-EBELN and EBELP goto EKBN (account assignment table) and take the VBELN and POSNR fields which are nothing but Sales order no and Item
Pass these 2 fields to LIPS-VGBEL and LIPS-VGPOS you will get the Delivery no(LIPS-VBELN)
Regards
Anji
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.