GOODWILL AND INTANGIBLE ASSETS - Intangible Table by Major Class (Details) - USD ($)
$ in Thousands
Nov. 30, 2016
Aug. 31, 2016
Finite-Lived Intangible Assets [Line Items]    
Gross Carrying Amount $ 850,496 $ 795,826
Accumulated Amortization (299,204) (285,675)
Net Carrying Amount 551,292 510,151
Customer-related    
Finite-Lived Intangible Assets [Line Items]    
Gross Carrying Amount 586,852 532,753
Accumulated Amortization (173,160) (159,774)
Net Carrying Amount 413,692 372,979
Technology    
Finite-Lived Intangible Assets [Line Items]    
Gross Carrying Amount 98,949 100,363
Accumulated Amortization (51,108) (48,270)
Net Carrying Amount 47,841 52,093
Patents    
Finite-Lived Intangible Assets [Line Items]    
Gross Carrying Amount 120,335 118,906
Accumulated Amortization (58,974) (57,951)
Net Carrying Amount 61,361 60,955
Other    
Finite-Lived Intangible Assets [Line Items]    
Gross Carrying Amount 44,360 43,804
Accumulated Amortization (15,962) (19,680)
Net Carrying Amount $ 28,398 $ 24,124