Show TOC

Function documentationCustomizing for SPED EFD-ICMS/IPI

 

Before executing the SPED EFD-ICMS/IPI (electronic fiscal file) report, make the following Customizing settings:

Note 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.

End of the note.

To make the required settings, on Customizing for Financial Accounting (New), choose Start of the navigation path General Ledger Accounting (New) Next navigation step Periodic Processing Next navigation step Report Next navigation step Statutory Reporting: Brazil Next navigation step SPED Reporting End of the navigation path

  • 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:

Start of the navigation path General Ledger Accounting (New) Next navigation step Periodic Processing Next navigation step Report Next navigation step Statutory Reporting: Brazil End of the navigation path

  • 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 Start of the navigation path Accounting Next navigation step Financial Accounting Next navigation step Accounts Receivable or Accounts Payable Next navigation step Reporting Next navigation step Brazil End of the navigation path:

  • Modelo 8

    Directory for calculating IPI tax.

  • Modelo 9

    Directory for calculating ICMS tax.

Business Add-in (BAdI) Implementations

To create an implementation, on Customizing for Financial Accounting (New), choose Start of the navigation path General Ledger Accounting (New) Next navigation step Periodic Processing Next navigation step Report Next navigation step Statutory Reporting: Brazil Next navigation step SPED Reporting Next navigation step Business Add-Ins Next navigation step BAdI: Filling of Selected Fields in Electronic Fiscal File End of the navigation path, 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 Syntax

  1. 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.
    
End of the code.

For more information, refer to the EFD Content file attached to SAP Note 1234056Information published on SAP site.