| BUSINESS COMBINATIONS - Pro Forma Information (Details) - Orbotech and three privately-held companies - USD ($) $ in Thousands | 12 Months Ended | |
|---|---|---|
| Jun. 30, 2019 | Jun. 30, 2018 | |
| Business Acquisition | ||
| Revenues | $ 5,154,823 | $ 5,079,654 | 
| Net loss of acquiree since acquisition | $ 1,288,467 | $ 608,542 | 
| X | ||||||||||
| 
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. No definition available. 
 | 
| X | ||||||||||
| 
- Definition The pro forma net Income or Loss for the period as if the business combination or combinations had been completed at the beginning of a period. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 | 
| X | ||||||||||
| 
- Definition The pro forma revenue for a period as if the business combination or combinations had been completed at the beginning of the period. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 | 
| X | ||||||||||
| 
- Details 
 |