Application Development and Automation 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: 
Read only

Select Query

sudhir_uppalapati
Participant
0 Likes
456

Hi All,

I have to retrieve MATNR LFIMG VRKME ARKTX from LIPS where LIPS-VBELN = VFSI-VBELN.

Here i have a value 71 for VBELN which is in both LIPS & VFSI and i am able to retrieve all the fields but i have two 71's in LIPS. so i am gettng the values for the first 71 and i am not getting the values of second 71.

How to get the values of Second 71.

Regards,

Sudhir

3 REPLIES 3
Read only

Former Member
0 Likes
434

pass the POSNR als into the LIPS table.....

can you show the code for the select

then some one can help

Read only

Former Member
0 Likes
434

Hi,

Are you retreiving the data from lips into a internal table ?

if yes then it should get all the lips records for order 71.

If not then you need to pass the posnr also.

regards,

Advait

Read only

Former Member
0 Likes
434

Hi Sudhir,

use the following code.

data:begin of itab occurs o,

MATNR type matnr,

LFIMG type lfimg,

VRKME type vrkme,

ARKTX type arktx,

end of itab.

select lipsmatnr lipslfimg lipsvrkme lipsarktx into table itab

from lips inner join vfsi

on LIPSVBELN = VFSIVBELN.

check the table itab.you will get all the entries.

reward points if helpful.