corep templates to xbrl mapper fernando wagener [email protected] bank of spain
TRANSCRIPT
Why develop a mapper with Excel VB?
• Concept
– It’s a low cost tool which converts COREP Templates written in Excel into an XBRL instance
• It has been developed in Excel using VBA• It’s not a latest technology, but it’s a useful solution• The file with the corep templates should be generated with the
coreptest.xlt tool, a data entry facility available in the corep webpage
• It’s an appropriate environment because the data source is in Excel format
Why develop a mapper with Excel VB? (II)
• Benefits– Easy to use
• Very user friendly– Efficient, reliable and useful for testing instances
• Fast, good for intensive testing– Easy to understand its internal operation
• The code can be followed perfectly by people who program Excel macros– Autonomous: the taxonomy is included in the Excel file
• It doesn’t need to have the taxonomy files available• It doesn’t have links to external information or databases
– No Internet connection required• It’s not an on-line tool: once the file has been downloaded, you don’t need to be
connected to the Internet.– Open code
• You simply need the Microsoft Excel application to see or edit the code.
How to use (I)
1.Download converttoxbrl.xls
from www.corep.info
How to use (II)2. Open converttoxbrl.xls: if the file is opened directly from the
Webpage, it will not work properly. It must be downloaded.
3. 3. Open the corep file: the Find file button can be used to open the file with the COREP templates
4. 4. Select the corep file: once opened, the file must be selected from the scroll-down box.
How to use (III)
5. Press Generate XBRL
The xbrl instance will be generated in the same folder as the corep file
You can also see the results in the Output sheet
How it works (I)
The internal operation is divided into two phases:
I) The generation of the Output sheet with all data required
II) The generation of the XBRL instance from the Output sheet
XBRL instance
Output sheet Info XBRL
Info Templates Info Dimensions
Import taxonomy
Phase II
Phase I
How it works (II)
I) The generation of the Output sheet with all data required
– It’s the most difficult step because the corep templates are very irregular.
– The tool must know several parameters about the templates.– The cells with data must have their dimensions perfectly
defined– The tool runs throughout all the templates looking for cells
with values.– When it founds a cell with an item, it identifies the dimension
depending on the column and the row where it is located.z
How it works (III)
Information about the Corep Templates in the Templates sheet
How it works (IV)
Information about the Corep Templates in Templates sheet: Areas
How it works (V)
Information about the dimensions: automatically imported into Dim and PriDim sheets
How it works (VI)
Output sheet
How it works (VII)
II) The generation of the XBRL instance from the Output sheet
– It only takes the information included in the Output sheet and exports it in XBRL format
XBRL instance
Output sheet Info XBRL
Info Templates Info Dimensions
Import taxonomy
Phase II
Phase I