In NF-e layout 3.10 the field finNFe ( NFe purpose ) has 4 valid values:
3=NF-e de ajuste; ( Adjustment )
4=Devolução de mercadoria ( Goods Return )
There are two ways in SAP ERP to map this data to XML:
1ª- Using Nota Fiscal Document Type ( defined in view J_1BAAV ):
SPRO -> Cross-Application Components -> General Application Functions -> Nota fiscal -> Define Nota Fiscal Types
The possible values are defined below:
You can see a reference table with the SAP mapping from document type to FinNfe done inside the FORM BLOCK_B:
1 ou R -> 1 – NF-e normal;
2 -> 2 – NF-e complementar;
8 -> 3 – NF-e de ajuste;
6 -> 4 – Devolução de mercadoria.
2ª- Using combination of CFOP and finNFe in the view J_1BAGNV (after implementing SAP Note “2057373 [3.10] Field finNFe is defined by CFOP )
SPRO -> Logistics – General -> Tax on Goods Movements -> Brazil -> CFOP Codes -> Define CFOP Codes and Assign Version
It’s important to highlight that the priority is the information from view J_1BAGNV. So, if you configure finNfe in this view for a specific CFOP the program will not use the Nota Fiscal Document type to determine finNfe.
On behalf of Renan Correa