Data Medium Exchange (Arquivo Remessa) 
Bank File Format
Brazilian localization supports three bank file formats for DME:
Instruction Code
The instruction code specifies further processing of the duplicata. Basic instruction codes are part of the localization Brazil. However, if required, additional instruction codes may be added though customizing.
Please note the following convention:
Instruction Code 1 = Codigo de Occorencia
Instruction Code 2/3 = Instruçoes de Cobrança
The instruction code can be entered into each individual item. When creating a duplicata, the entered instruction code is transported into the duplicata. If there is no instruction code entry in the open item, instruction code defaults (e.g. REMESSA) are set either through the customer master or the respective house bank. For more details on the maintenance of instruction codes, please refer to the respective standard R/3 documentation.
Agência Cobradora
If the field Agência Cobradora in the DME layout is to be filled, please enter corresponding data into the open item field Reference number 2.
Automatic Collection
Banco Bradesco offers automatic collection through DME. Please flag Collection for the respective bank account in the customer master record and create a payment method requiring the maintenance of partner bank data. For further control, you may also flag the corresponding "collection" flag for this payment method.
Codigo da Empresa
For DME, some Brazilian banks require a bank internal company code ID. The respective field in the bank file layout is called
Codigo da empresa .For example, this applies to Banco Bradesco and is particularly important in the context of DME file reception from Banco Bradesco, because here the link to the relevant general ledger bank accounts is made through the
Codigo da empresa (see Automatic Bank File Reception). The file layouts in A/R and A/P allow for different number ranges (20 digits in A/R, only 8 digits in A/P).To maintain the bank-internal company code, choose Financial accounting
® General ledger accounting ® Bank related accounting ® Bank related accounting business transactions ® Bank transaction ® Define DME user Ids.
For a given Codigo da empresa , only one account number may be maintained. If you have several accounts at one bank, you must use a different ID for each account.