SELECT DISTINCT D.BUSINESS_UNIT , C.SOLD_TO_CUST_ID , CL.LANGUAGE_CD , CL.NAME1 , AL.DESCR FROM PS_SET_CNTRL_REC SC , PS_SCON_HDR A , PS_SCON_HDR_LNG AL , PS_SCON_LINE B , PS_SCON_CUST_CGRP C , PS_SCON_PROD_PGRP D , PS_CUSTOMER_LANG CL WHERE A.SETID = AL.SETID AND A.CNTRCT_ID = AL.CNTRCT_ID AND A.SETID = B.SETID AND A.CNTRCT_ID = B.CNTRCT_ID AND B.SETID = C.SETID AND B.CNTRCT_ID = C.CNTRCT_ID AND C.SETID = D.SETID AND C.CNTRCT_ID = D.CNTRCT_ID AND B.LINE_NBR = D.LINE_NBR AND A.SCON_STATUS = 'A' AND B.UNIT_OF_MEASURE <> ' ' AND SC.RECNAME = 'CUSTOMER' AND SC.SETCNTRLVALUE = D.BUSINESS_UNIT AND CL.SETID = SC.SETID AND CL.CUST_ID = C.SOLD_TO_CUST_ID
|