https://userapps.support.sap.com/sap/support/knowledge/en/3639498
3639498 - Freight Included in IPI Calculation Base - Brazil | SAP Knowledge Base Article
There is a legal requirement specifying that freight charges should not be included in the IPI calculation base.
sap knowledgefreightincludedipi