To make an automatic Nota Fiscal creation possible, it is necessary to determine the CFOP code. You can maintain the table for CFOP determination by choosing the Customizing path for
CFOP determination.You can assign a CFOP code to a combination of the fields:
The item type is determined by the field
Item category . The determination is done via the Customizing table Sales item type . You can maintain this table by choosing the Customizing path for sales item type.
If Billing cannot determine a CFOP using the table CFOP determination, you must enter a CFOP manually. This must be done in the preceding document (delivery slip or sales order).

As it is not allowed to sell materials intended for consumption, the system does not automatically determine the CFOP for materials which have ‘consumption’ as usage.