Presentation on theme: "COREP TEMPLATES TO XBRL MAPPER Fernando Wagener Bank of Spain."— Presentation transcript:
COREP TEMPLATES TO XBRL MAPPER Fernando Wagener Bank of Spain
Why develop a mapper with Excel VB? Concept –Its a low cost tool which converts COREP Templates written in Excel into an XBRL instance It has been developed in Excel using VBA Its not a latest technology, but its 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 Its 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 doesnt need to have the taxonomy files available It doesnt have links to external information or databases –No Internet connection required Its not an on-line tool: once the file has been downloaded, you dont 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
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 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 Templates Info Dimensions Import taxonomy Info XBRL Phase II Phase I
How it works (II) I) The generation of the Output sheet with all data required –Its 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 Templates Info Dimensions Import taxonomy Info XBRL Phase II Phase I
FERNANDO WAGENER - THANK YOU FOR YOUR ATTENTION