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

Former Member
0 Likes
540

Hi,

I have 3 tables CRMM_BUT_SET0140,CRMM_BUT_LNK0141,

BUT000.

CRMM_BUT_SET0140 has SET_GUID and DSITRICT fields.

CRMM_BUT_LNK0141 has PARTNER_GUID

4 REPLIES 4
Read only

Former Member
0 Likes
517

use inner join and select required fields

Read only

Former Member
0 Likes
517

wht u want here?

Read only

Former Member
0 Likes
517

Hi,

sorry..

I have 3 tables CRMM_BUT_SET0140,CRMM_BUT_LNK0141,

BUT000.

CRMM_BUT_SET0140 has SET_GUID and DSITRICT fields.

CRMM_BUT_LNK0141 has PARTNER_GUID and SET_GUID fields.

BUT000 has PARTNER_GUID and PARTNER fields.

I need to extract PARTNER AND DISTRICT fields..

Regards,

Sai

Read only

0 Likes
517

hi sai,

This sample code might help u out..

Inner joins using 3 tables

Try this ( example) :-

SELECT stpostlnr stpoidnrk mastmatnr maramtart stpo~menge

INTO CORRESPONDING FIELDS OF TABLE zmat1 FROM mast

JOIN stpo ON stpostlnr = maststlnr

JOIN mara ON maramatnr = mastmatnr

WHERE stpostlty = 'M' "AND stpoidnrk IN s_matnr

AND mast~werks = 1000.

Thankyou,

Regards.