Note

This routine was adjusted to comply with the General Personal Data Protection Law (Statute No. 13.70), so that some fields containing data regarded as sensitive and/or personal are blurred, becoming illegible.


This routine receives the CNAB bank return in text format according to the parameter definition.
The bank return file may come with any extension. That is why the system converts these files into the standard database, so data can be read.
 

 Important:
To make it possible to send a file, the following registrations must be made:
CNAB Payable - Configurator
Bank Parameters - Financial
Cnab Occurrences File - Financial



 Important:

  • In Cnab return, bills posting is multifunctional, which means this process can be done in different branches.
  • You can define the use of an official account if set in the Bank Parameters routine.
  • When parameter MV_TLOTCNB is set to 1, you can define if the postings from a CNAB return must be grouped by sub-batch.


If the Schedule routine and the EAI Adapter are configured, integration between TIN (TOTVS Real State Enterprising) and Protheus is possible for sending and receiving XML files according to the XSD ratified by TOTVS®.  


Procedures

To return Cnab Payable:

  1. In the Return of Cnab Payable Maintenance window, select Parameters.

The system displays the routine parameterization screen.

 Important:
If needed, use the MV_LOCREC parameter to enter the directory of the CNAB file that will return from the bank and be processed.


 2. Set the parameters and confirm.

Observe the File name field and enter BRAZIL.


3. In the CNAB Mod.2 configuration screen, add a line:

Identification: 1H

Description: Batch header


4. Click [f4] to view the Cnab Payable return layout screen.

The screen is displayed without content.

Fill in the data position in the return file according to your bank manual.

Observe the question:

Process Branch? - The options All Branches or Current Branch are available.


 Important:
For the perfect execution, when selecting All Branches, the IDCNAB resource for multiple branches must be installed.


5. Confirm the edition.

 Important:
Positions are defined in the batch header.

Information concerning the batch current account is obtained after reading a batch header.

Check if the information obtained in the return file corresponds to the company's banking accounts file.

If banking accounts were registered using special characters (hyphens, dots, etc.), it is required to adapt the information sent back by the bank to the current account code registered in the Banks File (SA6).


6. Then, select Receive File.

7. The system then starts searching and converting data from the file according to the parameters configured.

 Tip:
If any parameter is incorrect, the system will display an error message and the solution.



SEE ALSO