Customizing for SPED EFD-ICMS/IPI
Before executing the SPED EFD-ICMS/IPI (electronic fiscal file) report, make the following Customizing settings:
Note
By government definition, the SPED EFD-ICMS/IPI file must be sent in Portuguese. Therefore, all customizing texts that are relevant for the file, such as the description of materials, must be maintained in Portuguese.
To make the required settings, on Customizing for Financial Accounting (New)
, choose
Assign BCB Country Codes to ISO Country Codes
(or via Transaction SM30, view J_1BEFDV_COUNTRY
).
The report uses country codes as specified by the Central Bank of Brazil (BCB) rather than the ISO country codes, which the SAP system uses. You therefore need to map BCB country codes to ISO country codes.
You also need to make the required settings for the following Customizing activities, even if your company does not use the SAP Standard Modelo 8 and Modelo 9 reports:
Modelo 8 - Special Accounts
.
Modelo 9 - Special Accounts
.
For specific information on how to customize these tables, refer to the report documentation:
On the SAP Easy Access Menu
, choose :
Modelo 8
Directory for calculating IPI tax
.
Modelo 9
Directory for calculating ICMS tax
.
To create an implementation, on Customizing for Financial Accounting (New)
, choose , or go to transaction SE18, BAdI BADI_J_1BEFD
.
You can use the methods of the BAdI to fill in specific registers of the file with customer-specific data.
BAdI interface extensions:
The field TAB_CUST
defined in the changing parameter of BAdI methods is referred to as the BAdI interface extension. You can use the BAdI interface extension to define a new content, a new length, and/or a new type for existing fields in specific registers. The parameters LENGTH
and TYPE
are relevant for the formatting of the file (see method FILLING_RULES
of class CL_J_1BEFD
).
The following implementation example for method SET_BLOCK_0_REG_0005
shows how the BAdI interface extension can be used to change the content of field ENDER
and to change the length of field FANTASIA
:
Syntax
method IF_EX_BADI_J_1BEFD~SET_BLOCK_0_REG_0005.
data: ls_0005 type J_1BEFDS_0_2_0005,
lt_cust type J_1BEFD_CUSTTAB,
ls_cust type BAPIEXT.
clear ls_cust.
ls_cust-field = 'ENDER'.
ls_cust-VALUE = 'This is the new value for ENDER’.
ls_cust-TYPE = 'C'.
ls_cust-LENGTH = '255'.
append ls_cust to lt_cust.
clear ls_cust.
ls_cust-field = 'FANTASIA'.
ls_cust-VALUE = 'This is the new value for FANTASIA'.
ls_cust-TYPE = 'C'.
ls_cust-LENGTH = '60'. “length reduced from 255
append ls_cust to lt_cust.
cs_0005-tab_cust = lt_cust.
endmethod.
For more information, refer to the EFD Content
file attached to SAP Note 1234056
.