04-07-2009 7:50 AM
Dear ALl,
I have a program need to LIPS link MSEG to calculate the posting quantity.I know in MIGO,table MKPF have field saved the DN number.but not saved the item.
current my program is :
SELECT MKPFMBLNR MSEGERFMG MKPFXBLNR MSEGMATNR
INTO CORRESPONDING FIELDS OF TABLE IT_MSEG
FROM MSEG INNER JOIN MKPF ON MKPFMBLNR = MSEGMBLNR AND
MKPFMJAHR = MSEGMJAHR
WHERE MKPF~XBLNR = LIPS-VBELN AND
MSEG~MATNR =LIPS-MATNR.
now when the LIPS have many material ,then the program get wrong data.because i want get the item from LIPS item.
Please give me some advise,
Thanks
Sun
04-07-2009 7:57 AM
Link LIPS & MSEG with the below Fields
KDAUF KDAUF CHAR 10 0 Sales Order Number
KDPOS KDPOS NUMC 6 0 Item Number in Sales Order
04-07-2009 8:03 AM
04-07-2009 8:11 AM
04-07-2009 8:03 AM
Hi,
There is a link between
VBRP AND LIPS
LIPS-VBELN = VBRP-VBELN
LIPS-POSNR = VBRP-POSNR
04-07-2009 8:20 AM
Hi Sun,
Just open SQVI,
Enter a Quick view name,
and create..
then insert tables,,,(mseg, Lips)
It shows all the possible links,,,
Thanks & regards,
Dileep .C