In the SAP NFE solution, it is possible to define the government status codes through a customizing table.
In order to access it, go to SPRO -> SAP IMG Reference -> SAP GRC Nota Fiscal Electronica -> Define Authority's Status Code.
The Status Codes descriptions will be associated to the language you're logged on (but it is also possible to translate the descriptions through the Goto -> Translation menu).
Alternativelly, it is possible to upload the Status Codes and descriptions from a pre-defined txt file, through the /XNFE/GOVERMENT_STATUS_LOAD report in the SAP NFE solution.
For that, the txt file needs to contain a header line and, for each Status Code, one line with the status number (3 digits) and the description, separated by tab.
When you execute the report, you need two input parameters: the location of the txt file (it can be in your local machine) and the language of the Status Codes descriptions.
The Government Status Codes are included in the Government Implementation Guide (Manual de Integração do Contribuinte), section 5.1.1.
You can copy them from there and paste them in a txt file. However, you'll also need to separate the status code and the description with a tab.
You can use MS Excel for that.
The following link contains a ready-to-go txt file with the Status Codes and Descriptions in Portuguese (PT): NFe_status_codes_-_PT.zip
Karsten Kötter has uploaded a link for a file with the descriptions in English (EN): NFe_status_codes_-_EN.zip
To transport the status code data to other systems, you can add the relevant customizing content to a request.
For that, follow these steps:
- On the NFE system, go to SPRO -> SAP IMG Reference -> SAP GRC Nota Fiscal Electronica -> Define Authority's Status Code
- On the menu, go to Table View -> Transport;
- Create or select the request you want to use to transport these values;
- Mark all entries ( F7 );
- Click on "Include in Request" button;
- Click on "Save" button.
Obs: This view is language dependent, so you need to repeat these steps for each language you need to use on your NFE system.