2 COREP TEMPLATES TO XBRL MAPPER Fernando WagenerBank of Spain
3 Why 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
4 Why 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.
6 How 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.
7 You 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
8 How 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
9 I) 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
10 How it works (III)Information about the Corep Templates in the Templates sheet
11 How it works (IV)Information about the Corep Templates in Templates sheet: Areas
12 How it works (V)Information about the dimensions: automatically imported into Dim and PriDim sheets
14 II) 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
15 THANK YOU FOR YOUR ATTENTION FERNANDO WAGENER -THANK YOU FOR YOUR ATTENTION