You can configure 4-byte autonomous system number (ASN) capability at the BGP4 global level.
device# configure terminal
device(config)# router bgp
device(config-bgp-router)# capability as4-enable