br.bcb.scr-3040 (SCR Documento 3040, individual credit-risk data). The document is monthly and its file is XML. It is for an SCD or an SCFI that runs Lender. The catalog publishes its contract, a manual, and a reference mapping from Lerian.
The reference mapping reads three data sources:
- Lender: the three views of the SCR reporting dataset.
- Midaz onboarding: the organization, which gives the CNPJ of the institution.
- Midaz CRM: the holders. Lender publishes no CPF, CNPJ, or name of a holder, so Reporter reads the document and the type of each holder from the CRM and joins them to the Lender rows in memory.
Prepare the data
- Turn on the publication job of Lender, and keep the daily provision measurement on. See SCR reporting dataset.
- Declare the SCR modality of each Brazilian product version in Lender, before the first reference month (BACEN: data-base). Reporter does not generate the file while a contract has no modality.
- The reference mapping reads the data sources named
lender(the Lender database of the tenant),midaz_onboarding, andplugin_crm(the Midaz CRM). Check that the three are on the Data Sources page. - In the scope of the institution, add the three views to the Lender data source, under the table names that the mapping uses. The reference mapping names them
scr_operation_current,scr_maturity_current, andscr_guarantee_current, with no schema. For each view, add the conditionmidaz_organization_idis the organization of the institution. The proposal from Midaz does not cover these views, so write this scope by hand. The scope must also cover theorganizationtable ofmidaz_onboarding, with the conditionidis the organization of the institution. Inplugin_crm, add theholderstable with the conditionorganization_idis the organization of the institution. Reporter refuses the generation when the scope does not cover a table that the mapping reads.
Activate the document
When you activate the document, Reporter pins its version and writes the starting mapping of the subscription. The starting mapping is the reference mapping. To activate the document in the Lerian Console, see Regulatory Filing. Reporter finds a table with no schema in its name when one schema of the data source holds it. Reporter looks for a table with a schema in its name only in that schema. When more than one schema of the data source holds a Lender view, edit the mapping and write each table with its schema (
<schema>__<view>). When the mapping names a schema that does not hold a view, edit the mapping and write the view with no schema. Write the same names in the scope of the institution.
Generate the file
The document has two parameters:
dataBase: the reference month, asYYYY-MM. Reporter accepts a closed month only.remessa: the number of the remittance in the reference month,1by default. Two generations of one reference month are the same filing, and Reporter sets no original or replacement rule. For a new remittance of a reference month, enter the next number yourself.
Fields that you fill
The reference mapping leaves ten required fields to the institution. Give each one a value in the mapping: write the
value of the field, or connect a source to it. A value is the same in every row of the group. For a field that differs by client or by operation, connect a source to it, or correct the draft of a filing. Until a field has a value, Reporter leaves it blank, and the filing cannot be approved.
What you do
- Read the manual of the version that you generate. It states what the mapping reads and what the version does not cover.
- Run the official validator of BACEN on the file. Reporter does not check the file against the XSD of the document.
- Review each
Draftbefore you approve it.

