SELECT A.BUSINESS_UNIT , A.INVOICE_ID , B.INVOICE_LINE , B.PLOG_ID , B.SHEET_ID , B.LINE_NBR , L1.LANGUAGE_CD , L2.DESCR , L1.DESCRSHORT FROM PS_SPF_INVOICE_HDR A , PS_SPF_INVOICE_DTL B , PS_PAYTRMS_SPF_VW C , PS_PYMT_TR_HD_LANG L1 , PS_VENDOR_ADDR_VW F , PS_VENDOR_ADDR_LVW L2 , PS_SET_CNTRL_GROUP R , PS_SET_CNTRL_GROUP S WHERE B.PLOG_ID <> ' ' AND A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.INVOICE_ID = B.INVOICE_ID AND A.PYMNT_TERMS_CD = C.PYMNT_TERMS_CD AND R.SETCNTRLVALUE = A.BUSINESS_UNIT AND R.SETID = C.SETID AND R.REC_GROUP_ID = 'FS_14' AND A.VENDOR_ID = F.VENDOR_ID AND A.ADDRESS_SEQ_NUM = F.ADDRESS_SEQ_NUM AND A.BUSINESS_UNIT = S.SETCNTRLVALUE AND S.REC_GROUP_ID = 'FS_38' AND F.SETID = S.SETID AND C.SETID = L1.SETID AND C.PYMNT_TERMS_CD = L1.PYMNT_TERMS_CD AND L2.SETID = F.SETID AND L2.VENDOR_ID = F.VENDOR_ID AND L2.ADDRESS_SEQ_NUM = F.ADDRESS_SEQ_NUM AND L2.EFFDT = F.EFFDT
|