2COREP TEMPLATES TO XBRL MAPPER Fernando WagenerBank of Spain
3Why develop a mapper with Excel VB? ConceptIt’s a low cost tool which converts COREP Templates written in Excel into an XBRL instanceIt has been developed in Excel using VBAIt’s not a latest technology, but it’s a useful solutionThe file with the corep templates should be generated with the coreptest.xlt tool, a data entry facility available in the corep webpageIt’s an appropriate environment because the data source is in Excel format
4Why develop a mapper with Excel VB? (II) BenefitsEasy to useVery user friendlyEfficient, reliable and useful for testing instancesFast, good for intensive testingEasy to understand its internal operationThe code can be followed perfectly by people who program Excel macrosAutonomous: the taxonomy is included in the Excel fileIt doesn’t need to have the taxonomy files availableIt doesn’t have links to external information or databasesNo Internet connection requiredIt’s not an on-line tool: once the file has been downloaded, you don’t need to be connected to the Internet.Open codeYou simply need the Microsoft Excel application to see or edit the code.
6How to use (II)Open converttoxbrl.xls: if the file is opened directly from the Webpage, it will not work properly. It must be downloaded.3. Open the corep file: the Find file button can be used to open the file with the COREP templates4. Select the corep file: once opened, the file must be selected from the scroll-down box.
7You can also see the results in the Output sheet How to use (III)Press Generate XBRLThe xbrl instance will be generated in the same folder as the corep fileYou can also see the results in the Output sheet
8How it works (I) Phase II Phase I The internal operation is divided into two phases:I) The generation of the Output sheet with all data requiredII) The generation of the XBRL instance from the Output sheetPhase IIPhase I
9I) The generation of the Output sheet with all data required How it works (II)I) The generation of the Output sheet with all data requiredIt’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 definedThe 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
10How it works (III)Information about the Corep Templates in the Templates sheet
11How it works (IV)Information about the Corep Templates in Templates sheet: Areas
12How it works (V)Information about the dimensions: automatically imported into Dim and PriDim sheets
14II) The generation of the XBRL instance from the Output sheet How it works (VII)II) The generation of the XBRL instance from the Output sheetIt only takes the information included in the Output sheet and exports it in XBRL formatPhase IIPhase I
15THANK YOU FOR YOUR ATTENTION FERNANDO WAGENER -THANK YOU FOR YOUR ATTENTION