Alberto,
Go to OBA5 for message 8B797 and change message control to warning. Then you will be able to change the barcode amount.
Take a look on this document if you are getting amount differences in taxes.
Brazilian barcode validation for document entry - Localization Latin America - SCN Wiki
Regards