2008 Jan 08 9:18 AM
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
2008 Jan 08 9:20 AM
2008 Jan 08 9:23 AM
2008 Jan 08 9:51 AM
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
2008 Jan 08 9:57 AM
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.