XML 50 R37.htm IDEA: XBRL DOCUMENT v3.8.0.1
SHARE-BASED COMPENSATION Allocated Share-based compensation expense (Details) - USD ($)
$ in Millions
3 Months Ended 6 Months Ended 12 Months Ended
Apr. 30, 2018
Apr. 30, 2017
Apr. 30, 2018
Apr. 30, 2017
Oct. 31, 2017
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]          
Share-based compensation expense $ 12 $ 15 $ 43 $ 36  
Inventory          
Share-based Compensation, Allocation and Classification in Financial Statements          
Capitalized share-based compensation     0   $ 0
Cost of Products and Services          
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]          
Share-based compensation expense 3 3 10 9  
Research and Development Expense          
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]          
Share-based compensation expense 1 1 4 3  
Selling, General and Administrative Expenses          
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]          
Share-based compensation expense $ 8 $ 11 $ 29 $ 24