|**DEBT (Tables)**                          | 12 Months Ended                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
|------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|**Debt Disclosure [Abstract]**             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
|Schedule of Long-term Debt Instruments     | Long-term debt, carried at face value net of unamortized discounts, premiums and debt issuance costs, included the following as of June 30:20222021Senior unsecured notes and debentures:3.80%, $300 due November 2021$—$3003.05%, $600 due September 2022—5993.50%, $500 due December 2024—4983.10%, $400 due October 20273983983.90%, $500 due May 20284974974.40%, $500 due May 2029493—1.80%, $500 due May 20304944924.60%, $600 due May 2032592—Total2,4742,784Less: Current maturities of long-term debt—300Long-term debt$2,474$2,484
|                                           |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
|                                           | 2022                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
|Senior unsecured notes and debentures:     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
|3.80%, $300 due November 2021              | $                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
|3.05%, $600 due September 2022             | —                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
|3.50%, $500 due December 2024              | —                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
|3.10%, $400 due October 2027               | 398                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
|3.90%, $500 due May 2028                   | 497                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
|4.40%, $500 due May 2029                   | 493                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
|1.80%, $500 due May 2030                   | 494                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
|4.60%, $600 due May 2032                   | 592                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
|Total                                      | 2,474                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
|Less: Current maturities of long-term debt | —                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
|Long-term debt                             | $                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
|Schedule of Line of Credit Facilities      | The Company’s borrowing capacity under the revolving credit agreements and other financing arrangements as of June 30 was as follows:20222021Revolving credit facility$1,200$1,200Foreign and other credit lines3435Total$1,234$1,235                                                                                                                                                                                                                                                                                                       
|                                           |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
|                                           | 2022                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
|Revolving credit facility                  | $                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
|Foreign and other credit lines             | 34                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
|Total                                      | $                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

X- ReferencesNo definition available.
+ Details**Name:**
us-gaap_DebtDisclosureAbstract**Namespace Prefix:**
us-gaap_**Data Type:**
xbrli:stringItemType**Balance Type:**
na**Period Type:**
duration X- DefinitionTabular disclosure of long-debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the entity, if longer.
+ ReferencesReference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 3 -Subparagraph (SX 210.12-04(a)) -URI https://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 1A -URI https://asc.fasb.org/extlink&oid=124435984&loc=d3e28541-108399Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 6 -URI https://asc.fasb.org/extlink&oid=126973232&loc=d3e21506-112644Reference 5: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 55 -Paragraph 69B -URI https://asc.fasb.org/extlink&oid=123466577&loc=SL123495735-112612Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 2 -URI https://asc.fasb.org/extlink&oid=124435984&loc=d3e28551-108399Reference 7: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 55 -Paragraph 69E -URI https://asc.fasb.org/extlink&oid=123466577&loc=SL123495743-112612Reference 8: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 7 -URI https://asc.fasb.org/extlink&oid=126973232&loc=d3e21521-112644Reference 9: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 8 -URI https://asc.fasb.org/extlink&oid=126973232&loc=d3e21538-112644Reference 10: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=123599511&loc=d3e64711-112823Reference 11: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 55 -Paragraph 8 -URI https://asc.fasb.org/extlink&oid=114775985&loc=d3e28878-108400Reference 12: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=126973232&loc=d3e21475-112644
+ Details**Name:**
us-gaap_ScheduleOfDebtInstrumentsTextBlock**Namespace Prefix:**
us-gaap_**Data Type:**
dtr-types:textBlockItemType**Balance Type:**
na**Period Type:**
duration X- DefinitionTabular disclosure of short-term or long-term contractual arrangements with lenders, including letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line.
+ ReferencesReference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682
+ Details**Name:**
us-gaap_ScheduleOfLineOfCreditFacilitiesTextBlock**Namespace Prefix:**
us-gaap_**Data Type:**
dtr-types:textBlockItemType**Balance Type:**
na**Period Type:**
duration