Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how LIPS item link the MSEG item?

Former Member

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

5 REPLIES 5

Former Member
0 Kudos

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

robert_altenstraer
Active Participant
0 Kudos

Hi

may it´s better to get the data from table: VBFA

Robert

0 Kudos

Dear ALl,

Thanks

the table is VBFA.

I will close this issue.

Former Member
0 Kudos

Hi,

There is a link between

VBRP AND LIPS

LIPS-VBELN = VBRP-VBELN

LIPS-POSNR = VBRP-POSNR

Former Member
0 Kudos

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