XML 64 R45.htm IDEA: XBRL DOCUMENT v3.8.0.1
Summary of major accounting policies - inventory (Details) - USD ($)
$ in Millions
Aug. 31, 2017
Aug. 31, 2016
Inventory [Line Items]    
Inventories $ 8,899 $ 8,956
Retail Pharmacy USA | Operating Segments    
Inventory [Line Items]    
LIFO reserve 3,000 2,800
Inventories 5,900 6,100
Retail Pharmacy International and Pharmaceutical Wholesale | Operating Segments    
Inventory [Line Items]    
Inventories $ 3,000 $ 2,900