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: 

select query

Former Member
0 Kudos
79

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

Former Member
0 Kudos
56

use inner join and select required fields

Former Member
0 Kudos
56

wht u want here?

Former Member
0 Kudos
56

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

0 Kudos
56

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.