Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

A country-specific update for Spain is available for Report 340 in Microsoft Dynamics AX 2009 SP1 and in Microsoft Dynamics AX 2012


View products that this article applies to.

Important This feature is released with following remark:
The file generated was validated by using the COBOL pre-validation program "Prevalidacion_340_2012_v20.exe" released by Agencia Tributaria (AEAT) on Tuesday 24 January 2012.
Note At the date of release, a final validation tool has not been released by the AEAT.

↑ Back to the top



This article applies to Microsoft Dynamics AX for the Spain (es) region.

↑ Back to the top


Introduction

According to the new legislation that is defined by Royal decree 1615/2011 on November 14, 2011, Report 340 in Spain is required to be updated. This legislation became effective November 27, 2011. For more information about the new legislation, please refer to the following document from the Government of Spain Tax office:This update is available for the following products:

  • Microsoft Dynamics AX 2009 Service Pack 1
  • Microsoft Dynamics AX 2012

For more information about Report 340 for Spain, please refer to the Microsoft Dynamics AX Report 340 (Spain) white paper.

The following file is available for download from the Microsoft Download Center:

For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 How to obtain Microsoft support files from online services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.

↑ Back to the top


More Information

Companies in Spain have to submit Report 340 monthly or quarterly. Report 340 contains information about all invoices and taxes that a company issued or received during a specific period. Report 340 is submitted to the tax authorities during the first twenty days of the month or quarter, depending on the size of the company.

Changes to Report 340

The changes to Report 340 include the following:
  • Starting in 2012, companies must submit the report monthly. The first file that references January operations is to be sent during February.
  • New operation Key values are added to Type 2 records.
  • New fields are added to Type 2 records.
  • Report 340 includes information about cash collectables greater than 6,000 euros (EUR).

Note No changes were made as to where the report is located. To locate the report, click General ledger, expand Periodic, expand Sales tax payment, and then select Spanish VAT Reports.

Presentation of Cash Received

Cash Received is a line in the report grid. This line presents the cash that is received from a customer. The line includes a column for each customer and a column for the year of the payment.

For each customer, the report is presented according to the fiscal year to which invoice the payment refers. And then, for that year, all the other payments in cash that are collected are added. If in a period, there has not been any cash received for that customer, the customer does not appear in the report. This occurs although the yearly amount is greater than the threshold amount.

In order to identify the cash payments that are received from a customer, the Cash Ledger Accounts table has to be filled with the accounts on which the cash received is posted.

The Cash Ledger Accounts table is also used for Report 347. To locate the Cash Ledger Accounts table, click General ledger, expand Setup, expand Spanish declaration, and then select Cash ledger accounts.

The detailed fields about the cash receivables in the report can also be seen in the General tab of the Report grid.

Presentation of tenants

  • According to the new legislation, Report 340 must have rental property marked as operation type R. For this purpose, mark the line in the report. To do this, click General and change the Operation type field to R. Then, the fields for Situation code and Tax property account number are enabled, and you have to fill them in.
  • Buildings and properties in any place in Spain together with a Property tax account number.
    Note Buildings and properties in the Basque Country and the Navarra Region are presented separately.
  • Buildings and properties in the Basque Country or the Navarra Region together with the Property tax account number.
  • Buildings and properties that do not have a Property tax account number.
  • Buildings and properties that are not in Spain.

Sold property that is subject to VAT

The sale of property that is subject to the value-added tax (VAT) has to be reported as part of Report 340.

The transaction has to be marked as follows:
  • The Operation Type field must be left blank.
  • The Amount of sale of property subject to VAT field on the General tab must be filled in with an amount.

Other changes to Report 340

  • The addition of the Operation type column in the report
  • The addition of selection criteria so that you can narrow the choice or make a specific selection
  • The addition of a check box to mark a transaction that must be excluded from the report

Hotfix information

A supported hotfix is available from Microsoft. There is a "Hotfix download available" section at the top of this Knowledge Base article. If you are encountering an issue downloading, installing this hotfix, or have other technical support questions, contact your partner or, if enrolled in a support plan directly with Microsoft, you can contact technical support for Microsoft Dynamics and create a new support request. To do this, visit the following Microsoft website:You can also contact technical support for Microsoft Dynamics by telephone by using these links for country specific telephone numbers. To do this, visit one of the following Microsoft websites:

PartnersCustomersIn special cases, charges that are ordinarily incurred for support calls may be canceled if a Technical Support Professional for Microsoft Dynamics and related products determines that a specific update will resolve your problem. The usual support costs will apply to any additional support questions and issues that do not qualify for the specific update in question.

↑ Back to the top


Installation information

If you have customizations for one or more of the methods or the tables that are affected by this hotfix, you must follow these steps:
  1. Review the changes that are documented in the .xpo file.
  2. Apply these changes in a test environment before you apply the hotfix in a production environment.
For more information about how to install this hotfix, click the following article number to view the article in the Microsoft Knowledge Base:
 
893082 How to install a Microsoft Dynamics AX hotfix

Prerequisites

You must have Microsoft Dynamics AX 2009 Service Pack 1 (SP1) or Microsoft Dynamics AX 2012 installed to apply this hotfix.


Known Issues

The hotfix for Microsoft Dynamics AX 2009 does not include a label file that has a Spanish translation. To obtain the correct label file, please contact technical support.
 

Restart requirement

If you are prompted to restart the computer, you must restart the computer after you apply this hotfix.

Objects that are affected

Microsoft Dynamics AX 2009 SP1
This hotfix affects the following existing objects:
\Reports\TaxBookReport_ES
\Data Dictionary\Tables\TaxReportLines
\Data Dictionary\Tables\TaxReportTable
\Classes\TaxReportToAscii340
\Classes\TaxReport_ES
\Forms\TaxReportLines
\Forms\TaxReportTable
This hotfix also includes the following new objects:
\Macros\TaxReport340
\Data Dictionary\Base Enums\SituationCode
\Data Dictionary\Extended Data Types\PropertyTaxNumber
\Classes\TaxReportToAscii340LineProcessor


 
Microsoft Dynamics AX 2012
This hotfix affects the following existing objects:
 
\Macros\TaxReport340
\Data Dictionary\Tables\TaxReportLines
\Data Dictionary\Tables\TaxReportTable
\Data Dictionary\Tables\TmpCustVendVolume
\Classes\TaxRepRecordNumbering_DocNum_ES
\Classes\TaxRepRecordNumbering_Manual_ES
\Classes\TaxRepRecordNumbering_NumSequence_ES
\Classes\TaxReportToAscii340
\Classes\TaxReport_ES
\Forms\TaxReportLines
\Forms\TaxReportTable

This hotfix also includes the following new objects:
 
\Data Dictionary\Base Enums\SituationCode
\Data Dictionary\Extended Data Types\PropertyTaxNumber
\Classes\TaxReportToAscii340LineProcessor
 

File information

This hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
 
Microsoft Dynamics AX 2009 SP1
File name File version File size Date Time Platform
Axupdate.exe Not Applicable 61,288 31-Jan-2012 17:48 x86
Kb2653463-glp-cons.cab Not Applicable 4,154,223 31-Jan-2012 17:48 Not Applicable
Kb2653463-glp-ee.cab Not Applicable 4,260,502 31-Jan-2012 17:48 Not Applicable
Kb2653463-glp-il.cab Not Applicable 360,555 31-Jan-2012 17:48 Not Applicable
Kb2653463-glp-tr.cab Not Applicable 1,363,199 31-Jan-2012 17:48 Not Applicable
Kb2653463-syp-cons.cab Not Applicable 4,784,901 31-Jan-2012 17:48 Not Applicable
Kb2653463-syp-ee.cab Not Applicable 4,727,627 31-Jan-2012 17:48 Not Applicable
Kb2653463-syp-il.cab Not Applicable 3,931,888 31-Jan-2012 17:48 Not Applicable
Kb2653463-syp-syp.cab Not Applicable 3,930,025 31-Jan-2012 17:48 Not Applicable
Kb2653463-syp-tr.cab Not Applicable 4,588,744 31-Jan-2012 17:48 Not Applicable
Licensetermsar.rtf Not Applicable 101,414 16-Nov-2011 09:33 Not Applicable
Licensetermscs.rtf Not Applicable 92,705 16-Nov-2011 09:33 Not Applicable
Licensetermsda.rtf Not Applicable 102,543 16-Nov-2011 09:33 Not Applicable
Licensetermsde.rtf Not Applicable 119,313 16-Nov-2011 09:33 Not Applicable
Licensetermsen.rtf Not Applicable 111,795 16-Nov-2011 09:33 Not Applicable
Licensetermses.rtf Not Applicable 98,313 16-Nov-2011 09:33 Not Applicable
Licensetermset.rtf Not Applicable 104,484 16-Nov-2011 09:33 Not Applicable
Licensetermsfi.rtf Not Applicable 107,418 16-Nov-2011 09:33 Not Applicable
Licensetermsfr.rtf Not Applicable 133,197 16-Nov-2011 09:33 Not Applicable
Licensetermshe-il.rtf Not Applicable 4,258 16-Nov-2011 09:33 Not Applicable
Licensetermshu.rtf Not Applicable 94,304 16-Nov-2011 09:33 Not Applicable
Licensetermsis.rtf Not Applicable 36,112 16-Nov-2011 09:33 Not Applicable
Licensetermsit.rtf Not Applicable 117,765 16-Nov-2011 09:33 Not Applicable
Licensetermsja.rtf Not Applicable 107,092 16-Nov-2011 09:33 Not Applicable
Licensetermslt.rtf Not Applicable 125,197 16-Nov-2011 09:33 Not Applicable
Licensetermslv.rtf Not Applicable 106,681 16-Nov-2011 09:33 Not Applicable
Licensetermsnb-no.rtf Not Applicable 118,245 16-Nov-2011 09:33 Not Applicable
Licensetermsnl.rtf Not Applicable 112,657 16-Nov-2011 09:33 Not Applicable
Licensetermspl.rtf Not Applicable 118,887 16-Nov-2011 09:33 Not Applicable
Licensetermspt-br.rtf Not Applicable 102,982 16-Nov-2011 09:33 Not Applicable
Licensetermsru.rtf Not Applicable 151,400 16-Nov-2011 09:33 Not Applicable
Licensetermssv.rtf Not Applicable 117,960 16-Nov-2011 09:33 Not Applicable
Licensetermsth.rtf Not Applicable 156,708 16-Nov-2011 09:33 Not Applicable
Licensetermstr.rtf Not Applicable 105,693 16-Nov-2011 09:33 Not Applicable
Licensetermszh-hans.rtf Not Applicable 100,528 16-Nov-2011 09:33 Not Applicable
Axsetupsp.exe 5.0.1100.45 1,636,200 31-Jan-2012 17:46 x86
Cabextractor.dll Not Applicable 18,800 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.dll 5.0.1100.9 150,440 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 538,488 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 17,336 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 534,392 31-Jan-2012 17:48 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 530,296 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 534,392 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,824 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 534,392 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,824 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 530,296 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 530,296 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 538,488 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,824 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 538,488 31-Jan-2012 17:48 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1500.1212 16,320 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 534,392 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,824 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 530,296 31-Jan-2012 17:48 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 530,296 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 542,584 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 17,848 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 530,296 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 534,392 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 530,296 31-Jan-2012 17:47 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 530,296 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 534,392 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,824 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 534,392 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 546,680 31-Jan-2012 17:48 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 18,872 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 530,296 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 558,968 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 20,408 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 530,296 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 16-Nov-2011 09:50 x86
Axsetupsp.resources.dll 5.0.1100.40 526,200 31-Jan-2012 17:46 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 15,800 16-Nov-2011 09:50 x86
Cabextractor.dll Not Applicable 22,384 31-Jan-2012 17:48 x64
Microsoft Dynamics AX 2012
File name File version File size Date Time Platform
Aximpactanalysis.exe Not Applicable 60,280 05-Nov-2011 07:36 x86
Axupdate.exe Not Applicable 60,264 05-Nov-2011 07:36 x86
Licensetermsar.rtf Not Applicable 2,170 08-Nov-2011 00:05 Not Applicable
Licensetermscs.rtf Not Applicable 91,099 16-Aug-2011 01:16 Not Applicable
Licensetermsda.rtf Not Applicable 101,043 16-Aug-2011 01:16 Not Applicable
Licensetermsde.rtf Not Applicable 116,496 16-Aug-2011 01:16 Not Applicable
Licensetermsen.rtf Not Applicable 110,067 16-Aug-2011 01:16 Not Applicable
Licensetermses.rtf Not Applicable 96,850 16-Aug-2011 01:16 Not Applicable
Licensetermset.rtf Not Applicable 102,778 16-Aug-2011 01:16 Not Applicable
Licensetermsfi.rtf Not Applicable 105,989 16-Aug-2011 01:16 Not Applicable
Licensetermsfr.rtf Not Applicable 129,869 16-Aug-2011 01:16 Not Applicable
Licensetermshe-il.rtf Not Applicable 43,376 16-Aug-2011 01:16 Not Applicable
Licensetermshu.rtf Not Applicable 92,863 16-Aug-2011 01:16 Not Applicable
Licensetermsis.rtf Not Applicable 36,275 16-Aug-2011 01:16 Not Applicable
Licensetermsit.rtf Not Applicable 114,947 16-Aug-2011 01:16 Not Applicable
Licensetermsja.rtf Not Applicable 105,778 16-Aug-2011 01:16 Not Applicable
Licensetermslt.rtf Not Applicable 122,400 16-Aug-2011 01:16 Not Applicable
Licensetermslv.rtf Not Applicable 105,289 16-Aug-2011 01:16 Not Applicable
Licensetermsnb-no.rtf Not Applicable 115,558 16-Aug-2011 01:16 Not Applicable
Licensetermsnl.rtf Not Applicable 109,756 16-Aug-2011 01:16 Not Applicable
Licensetermspt-br.rtf Not Applicable 101,382 16-Aug-2011 01:16 Not Applicable
Licensetermsru.rtf Not Applicable 148,307 16-Aug-2011 01:16 Not Applicable
Licensetermssv.rtf Not Applicable 115,138 16-Aug-2011 01:16 Not Applicable
Licensetermsth.rtf Not Applicable 153,644 16-Aug-2011 01:16 Not Applicable
Licensetermstr.rtf Not Applicable 104,210 16-Aug-2011 01:16 Not Applicable
Licensetermszh-hans.rtf Not Applicable 99,131 16-Aug-2011 01:16 Not Applicable
Dynamicsax2012-kb2653463-foundation.axmodel 6.0.947.972 148,392 06-Feb-2012 02:23 Not Applicable
Dynamicsax2012-kb2653463-syplabels.axmodel 6.0.947.972 698,280 06-Feb-2012 02:23 Not Applicable
Axsetupsp.exe 6.0.947.853 1,361,768 16-Jan-2012 05:40 x86
Axutillib.dll 6.0.947.0 817,512 16-Aug-2011 01:16 x86
Microsoft.dynamics.servicing.operations.dll 6.0.888.436 35,752 16-Aug-2011 01:16 x86
Axsetupsp.resources.dll 6.0.947.491 382,848 05-Nov-2011 07:36 x86
Axsetupsp.resources.dll 6.0.947.491 370,560 05-Nov-2011 07:36 x86
Axsetupsp.resources.dll 6.0.947.491 374,656 05-Nov-2011 07:36 x86
Axsetupsp.resources.dll 6.0.947.491 374,656 05-Nov-2011 07:36 x86
Axsetupsp.resources.dll 6.0.947.491 370,560 05-Nov-2011 07:36 x86
Axsetupsp.resources.dll 6.0.947.491 378,752 05-Nov-2011 07:36 x86
Axsetupsp.resources.dll 6.0.947.491 370,560 05-Nov-2011 07:36 x86
Axsetupsp.resources.dll 6.0.947.491 374,656 05-Nov-2011 07:36 x86
Axsetupsp.resources.dll 6.0.947.491 370,560 05-Nov-2011 07:36 x86
Axsetupsp.resources.dll 6.0.947.491 374,656 05-Nov-2011 07:36 x86
Axsetupsp.resources.dll 6.0.947.491 370,560 05-Nov-2011 07:36 x86
Axsetupsp.resources.dll 6.0.947.491 407,424 05-Nov-2011 07:36 x86

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: kbexpertiseinter, kbexpertiseadvanced, kbnoloc, kbqfe, kbhotfixserver, kbsurveynew, kbmbsmigrate, kb, kbautohotfix, kbmbsquickpub, kbmbspartner

↑ Back to the top

Article Info
Article ID : 2653463
Revision : 2
Created on : 6/16/2017
Published on : 6/16/2017
Exists online : False
Views : 357