|**ACCUMULATED OTHER COMPREHENSIVE LOSS**                                                                                                   | 12 Months Ended                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
|------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|**Accumulated Other Comprehensive Income (Loss), Net of Tax [Abstract]**                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
|ACCUMULATED OTHER COMPREHENSIVE LOSS                                                                                                       | ACCUMULATED OTHER COMPREHENSIVE LOSSThe components of accumulated other comprehensive loss were as follows:2017(1)2016(2)(In millions)Foreign currency translation, net of income taxes of $1 million and $29 million at June 30, 2017 and July 1, 2016, respectively$(113)$(131)Net unrealized loss on hedging derivatives, net of income taxes of $11 million at June 30, 2017 and July 1, 2016(17)(18)Unrecognized postretirement obligations, net of income taxes of$89million and $213 million at June 30, 2017 and July 1, 2016, respectively(146)(346)$(276)$(495)(1)Accumulated foreign currency translation losses of$52 million(net of income taxes of$14 million) were reclassified to earnings in fiscal 2017 as a result of the divestitures of CapRock and IT Services and are included in “Discontinued operations, net of income taxes” in our Consolidated Statement of Income.(2)Reclassifications out of accumulated other comprehensive loss in fiscal 2016 were not material.
|                                                                                                                                          
|                                                                                                                                           |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
|                                                                                                                                           |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
|                                                                                                                                           |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
|                                                                                                                                           |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
|Foreign currency translation, net of income taxes of $1 million and $29 million at June 30, 2017 and July 1, 2016, respectively            | $                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
|Net unrealized loss on hedging derivatives, net of income taxes of $11 million at June 30, 2017 and July 1, 2016                           | (17                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
|Unrecognized postretirement obligations, net of income taxes of$89million and $213 million at June 30, 2017 and July 1, 2016, respectively | (146                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
|                                                                                                                                           |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
|                                                                                                                                           |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
|                                                                                                                                           |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
|(1)                                                                                                                                        | Accumulated foreign currency translation losses of$52 million(net of income taxes of$14 million) were reclassified to earnings in fiscal 2017 as a result of the divestitures of CapRock and IT Services and are included in “Discontinued operations, net of income taxes” in our Consolidated Statement of Income.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
|                                                                                                                                           |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
|(2)                                                                                                                                        | Reclassifications out of accumulated other comprehensive loss in fiscal 2016 were not material.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

X- ReferencesNo definition available.
+ Details**Name:**
us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAbstract**Namespace Prefix:**
us-gaap_**Data Type:**
xbrli:stringItemType**Balance Type:**
na**Period Type:**
duration X- DefinitionThe entire disclosure for comprehensive income, which includes, but is not limited to, 1) the amount of income tax expense or benefit allocated to each component of other comprehensive income, including reclassification adjustments, 2) the reclassification adjustments for each classification of other comprehensive income and 3) the ending accumulated balances for each component of comprehensive income.
+ ReferencesReference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -URI http://asc.fasb.org/topic&trid=2134417
+ Details**Name:**
us-gaap_ComprehensiveIncomeNoteTextBlock**Namespace Prefix:**
us-gaap_**Data Type:**
nonnum:textBlockItemType**Balance Type:**
na**Period Type:**
duration