corep templates to xbrl mapper fernando wagener [email protected] bank of spain

15

Upload: jeremiah-mcclure

Post on 27-Mar-2015

218 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: COREP TEMPLATES TO XBRL MAPPER Fernando Wagener fernando.wagener@bde.es Bank of Spain
Page 2: COREP TEMPLATES TO XBRL MAPPER Fernando Wagener fernando.wagener@bde.es Bank of Spain

COREP TEMPLATES TO XBRL MAPPER

Fernando [email protected]

Bank of Spain

Page 3: COREP TEMPLATES TO XBRL MAPPER Fernando Wagener fernando.wagener@bde.es Bank of Spain

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

Page 4: COREP TEMPLATES TO XBRL MAPPER Fernando Wagener fernando.wagener@bde.es Bank of Spain

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.

Page 5: COREP TEMPLATES TO XBRL MAPPER Fernando Wagener fernando.wagener@bde.es Bank of Spain

How to use (I)

1.Download converttoxbrl.xls

from www.corep.info

Page 6: COREP TEMPLATES TO XBRL MAPPER Fernando Wagener fernando.wagener@bde.es Bank of Spain

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.

Page 7: COREP TEMPLATES TO XBRL MAPPER Fernando Wagener fernando.wagener@bde.es Bank of Spain

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

Page 8: COREP TEMPLATES TO XBRL MAPPER Fernando Wagener fernando.wagener@bde.es Bank of Spain

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

Page 9: COREP TEMPLATES TO XBRL MAPPER Fernando Wagener fernando.wagener@bde.es Bank of Spain

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

Page 10: COREP TEMPLATES TO XBRL MAPPER Fernando Wagener fernando.wagener@bde.es Bank of Spain

How it works (III)

Information about the Corep Templates in the Templates sheet

Page 11: COREP TEMPLATES TO XBRL MAPPER Fernando Wagener fernando.wagener@bde.es Bank of Spain

How it works (IV)

Information about the Corep Templates in Templates sheet: Areas

Page 12: COREP TEMPLATES TO XBRL MAPPER Fernando Wagener fernando.wagener@bde.es Bank of Spain

How it works (V)

Information about the dimensions: automatically imported into Dim and PriDim sheets

Page 13: COREP TEMPLATES TO XBRL MAPPER Fernando Wagener fernando.wagener@bde.es Bank of Spain

How it works (VI)

Output sheet

Page 14: COREP TEMPLATES TO XBRL MAPPER Fernando Wagener fernando.wagener@bde.es Bank of Spain

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

Page 15: COREP TEMPLATES TO XBRL MAPPER Fernando Wagener fernando.wagener@bde.es Bank of Spain

FERNANDO WAGENER - [email protected]

THANK YOU FOR YOUR ATTENTION