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 Stmt

Former Member
0 Likes
545

Hi,

I have material Document number, from this i need to retrieve the sales oder,sales order item , and delivery number. How can i write select stmet for this Query

regards,ram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
521

Hi,

SELECT <F1,F2...>

INTO TABLE <ITAB Internal Table>

FROM <DB TABLE NAME>

WHERE <Condition that u want>.

Regards,

Ranjit Thakur.

<b>Please Mark The Helpful Answer.</b>

4 REPLIES 4
Read only

Former Member
0 Likes
522

Hi,

SELECT <F1,F2...>

INTO TABLE <ITAB Internal Table>

FROM <DB TABLE NAME>

WHERE <Condition that u want>.

Regards,

Ranjit Thakur.

<b>Please Mark The Helpful Answer.</b>

Read only

Former Member
0 Likes
521

Hi,

Material Document coming from MSEG and 3 fileds from LIPS.

regards,ram

Read only

0 Likes
521

HI Ram,

SELECT LIPSFLD1 LIPSFLD2 LIPSFLD3 INTO CORRESPONDING FIELDS OF TABLE ITAB FROM MSEG INNER JOIN LIPS ON MSEGMATNR = LIPSMATNR AND MSEGWERKS = LIPSWERKS WHERE MSEGMBLNR IN SO_MBLNR AND...UR CONDITIONS.

Regards

SAB

Read only

Former Member
0 Likes
521

I think there is no stright forward ,

get the data from mseg and do compare with VBAP like where matnr and werks..

Now you will get multiple sales order for each material ..