Der Betrag in der 349-Deklarationsdatei ist falsch, wenn das Kontrollkästchen EU-Dienst im Dialogfeld MwSt.-Buchung einrichten in der spanischen Version von Microsoft Dynamics NAV aktiviert ist.

Gilt für
Dynamics NAV 2009 Service Pack 1 Microsoft Dynamics NAV 5.0 Service Pack 1

Dieser Artikel bezieht sich auf Microsoft Dynamics NAV für das Gebietsschema spanisch (es).

Symptome

Angenommen, das Kontrollkästchen EU-Dienst ist in der spanischen Version von Microsoft Dynamics NAV im Dialogfeld MwSt.-Buchungseinrichtung aktiviert. Wenn Sie die 349-Deklarationsdatei generieren, ist die Menge in der exportierten Datei falsch.
Dieses Problem tritt in den folgenden Produkten auf:

  • Die spanische Version von Microsoft Dynamics NAV 2009 Service Pack 1 (SP1)
  • Die spanische Version von Microsoft Dynamics NAV 5.0 Service Pack 1 (SP1)

      

Lösung

Hotfixinformationen

Ein unterstützter Hotfix ist jetzt bei Microsoft verfügbar. Es dient jedoch nur zur Behebung des problems, das in diesem Artikel beschrieben wird. Wenden Sie sie nur auf Systeme an, bei denen dieses spezifische Problem auftritt. Dieser Hotfix erhält möglicherweise zusätzliche Tests. Wenn Sie von diesem Problem nicht stark betroffen sind, empfiehlt es sich daher, auf das nächste Microsoft Dynamics NAV 2009 Service Pack oder die nächste Microsoft Dynamics NAV-Version zu warten, die diesen Hotfix enthält.

Hinweis In besonderen Fällen können Gebühren, die normalerweise für Supportanrufe anfallen, storniert werden, wenn ein Technischer Supportmitarbeiter für Microsoft Dynamics und zugehörige Produkte feststellt, dass ihr Problem durch ein bestimmtes Update behoben wird. PLEASE DO NOT TRANSLATE. DOES NOT APPLY TO GERMAN.

            
          

Informationen zur Installation

Microsoft stellt Programmierbeispiele nur zur Veranschaulichung zur Verfügung, ohne ausdrückliche oder stillschweigende Garantie. Dies schließt die stillschweigende Gewährleistung der Marktgängigkeit oder der Eignung für einen bestimmten Zweck ein, ist aber nicht darauf beschränkt. In diesem Artikel wird davon ausgegangen, dass Sie mit der vorgestellten Programmiersprache und den Werkzeugen zum Erstellen und Debuggen von Prozeduren vertraut sind. Die Microsoft Support-Spezialisten können bei der Erläuterung der Funktionalität bestimmter Prozeduren helfen, jedoch werden sie diese Beispiele nicht in Bezug auf eine erweiterte Funktionalität verändern, noch werden sie Prozeduren entwickeln, die auf Ihre besonderen Bedürfnisse zugeschnitten sind.

Hinweis Überprüfen Sie vor der Installation dieses Hotfixs, ob alle Microsoft Navision-Clientbenutzer vom System abgemeldet sind. Dies schließt Microsoft Navision Application Services (NAS)-Clientbenutzer ein. Sie sollten der einzige Clientbenutzer sein, der angemeldet ist, wenn Sie diesen Hotfix implementieren.

Um diesen Hotfix implementieren zu können, benötigen Sie eine Entwicklerlizenz.

Es wird empfohlen, dem Benutzerkonto im Fenster Windows-Anmeldungen oder im Fenster Datenbankanmeldungen die Rollen-ID "SUPER" zuzuweisen. Wenn dem Benutzerkonto die Rollen-ID "SUPER" nicht zugewiesen werden kann, müssen Sie überprüfen, ob das Benutzerkonto über die folgenden Berechtigungen verfügt:

  • Die Berechtigung Ändern für das Objekt, das Sie ändern.
  • Die Execute-Berechtigung für das Systemobjekt-ID 5210-Objekt und für das Systemobjekt-ID 9015-Objekt.

                
Hinweis Sie benötigen keine Rechte für die Datenspeicher, es sei denn, Sie müssen eine Datenreparatur durchführen.

Codeänderungen

Hinweis Testen Sie Codekorrekturen immer in einer kontrollierten Umgebung, bevor Sie die Korrekturen auf Ihre Produktionscomputer anwenden.
Gehen Sie wie folgt vor, um das Problem zu beheben:

  1. Ändern Sie den Code in den Abschnitten "DatenelementNummer 5" im Bericht Deklaration erstellen (88) wie folgt:
    Vorhandener Code 1

                                  BEGIN
                                    REPEAT
    
                                      //Delete the following line.
                                      VATInvSales.RESET;
    
                                      VATInvSales.SETRANGE(VATInvSales.Type,VATInvSales.Type::Sale);
                                      VATInvSales.SETRANGE(VATInvSales."Document Type",VATInvSales."Document Type"::Invoice);
    

    Ersetzungscode 1

                                  BEGIN
                                    REPEAT
    
                                      //Add the follwing lines.
                                      LastTransactionNo := 0;
                                      VATInvSales.RESET;
                                      VATInvSales.SETCURRENTKEY("Transaction No."); 
                                      //End of the lines.                               
    
                                      VATInvSales.SETRANGE(VATInvSales.Type,VATInvSales.Type::Sale);
                                      VATInvSales.SETRANGE(VATInvSales."Document Type",VATInvSales."Document Type"::Invoice);
    

    Vorhandener Code 2

                                              IF "VAT Registration No." <> '' THEN BEGIN
                                                IF AmountToIncludein349 <> 0 THEN BEGIN
    
                                                  //Delete the following lines.
                                                  OpTriang := 'X';
                                                  AmountOpTri := AmountOpTri + AmountToIncludein349
                                                  //End of the lines.                                           
    
                                                END ELSE BEGIN
                                                  OpTriang := 'X';
    

    Ersetzungscode 2

                                              IF "VAT Registration No." <> '' THEN BEGIN
                                                IF AmountToIncludein349 <> 0 THEN BEGIN
    
                                                  //Add the following lines.
                                                  IF VATInvSales."Transaction No." <> LastTransactionNo THEN BEGIN
                                                    OpTriang := 'X';
                                                    AmountOpTri := AmountOpTri + AmountToIncludein349;
                                                  END;
                                                  //End of the lines.                                           
    
                                                END ELSE BEGIN
                                                  OpTriang := 'X';
    

    Vorhandener Code 3

                                          // OpTriang := 'X';
                                          // AmountOpTri := AmountOpTri + VATInvSales.Base;
                                        UNTIL VATInvSales.NEXT = 0;
                                      END;
    

    Ersatzcode 3

                                          // OpTriang := 'X';
                                          // AmountOpTri := AmountOpTri + VATInvSales.Base;
    
                                          //Add the following line.
                                          LastTransactionNo := VATInvSales."Transaction No.";
    
                                        UNTIL VATInvSales.NEXT = 0;
                                      END;
    

    Vorhandener Code 4

                                        UNTIL VATInvSales.NEXT = 0;
                                      END;
    
                                      //Delete the following line.
                                      VATInvSales.RESET;
    
                                      VATInvSales.SETRANGE(VATInvSales.Type,VATInvSales.Type::Sale);
                                      VATInvSales.SETRANGE(VATInvSales."Document Type",VATInvSales."Document Type"::Invoice);
    

    Ersatzcode 4

                                        UNTIL VATInvSales.NEXT = 0;
                                      END;
    
                                      //Add the following lines.
                                      LastTransactionNo := 0;
                                      VATInvSales.RESET;
                                      VATInvSales.SETCURRENTKEY("Transaction No."); 
                                      //End of the lines.
    
                                      VATInvSales.SETRANGE(VATInvSales.Type,VATInvSales.Type::Sale);
                                      VATInvSales.SETRANGE(VATInvSales."Document Type",VATInvSales."Document Type"::Invoice);
    

    Vorhandener Code 5

                                              ((VATInvSales."Country/Region Code" = CountryCode) AND LocationDiffCountryCode) THEN BEGIN
                                              IF "VAT Registration No." <> '' THEN BEGIN
    
                                               //Delete the following lines.
                                               IF AmountToIncludein349 <> 0 THEN
                                                 NormalAmount := NormalAmount + AmountToIncludein349
                                               ELSE
                                               //End of the lines.
    
                                                 NormalAmount := NormalAmount + VATInvSales.Base;
                                              END ELSE
    

    Ersetzungscode 5

                                              ((VATInvSales."Country/Region Code" = CountryCode) AND LocationDiffCountryCode) THEN BEGIN
                                              IF "VAT Registration No." <> '' THEN BEGIN
    
                                               //Add the following lines.
                                               IF AmountToIncludein349 <> 0 THEN BEGIN
                                                 IF VATInvSales."Transaction No." <> LastTransactionNo THEN
                                                   NormalAmount := NormalAmount + AmountToIncludein349;
                                               END ELSE
                                               //End of the lines.                                        
    
                                                 NormalAmount := NormalAmount + VATInvSales.Base;
                                              END ELSE
    

    Vorhandener Code 6

                                          END;
                                          // NormalAmount := NormalAmount + VATInvSales.Base;
                                        UNTIL VATInvSales.NEXT = 0;
                                      END;
    

    Ersatzcode 6

                                          END;
                                          // NormalAmount := NormalAmount + VATInvSales.Base;
    
                                          //Add the following line.
                                          LastTransactionNo := VATInvSales."Transaction No.";
    
                                        UNTIL VATInvSales.NEXT = 0;
                                      END;
    

    Vorhandener Code 7

                                      END;
    
                                      //Delete the following line.
                                      VATInvSales.RESET;
    
                                      VATInvSales.SETRANGE(Type,VATInvSales.Type::Sale);
                                      VATInvSales.SETRANGE("Document Type",VATInvSales."Document Type"::Invoice);
    

    Ersetzungscode 7

                                      END;
    
                                      //Add the following lines.
                                      LastTransactionNo := 0; 
                                      VATInvSales.RESET;
                                      VATInvSales.SETCURRENTKEY("Transaction No."); 
                                      //End of the lines.
    
                                      VATInvSales.SETRANGE(Type,VATInvSales.Type::Sale);
                                      VATInvSales.SETRANGE("Document Type",VATInvSales."Document Type"::Invoice);
    

    Vorhandener Code 8

                                              ((VATInvSales."Country/Region Code" = CountryCode) AND LocationDiffCountryCode) THEN BEGIN
                                              IF "VAT Registration No." <> '' THEN BEGIN
    
                                                //Delete the following lines.
                                                IF AmountToIncludein349 <> 0 THEN
                                                  AmountEUService := AmountEUService + AmountToIncludein349
                                                ELSE
                                                //End of the lines.                                         
    
                                                  AmountEUService := AmountEUService + VATInvSales.Base;
                                              END ELSE
    

    Ersatzcode 8

                                              ((VATInvSales."Country/Region Code" = CountryCode) AND LocationDiffCountryCode) THEN BEGIN
                                              IF "VAT Registration No." <> '' THEN BEGIN
    
                                                //Add the following lines.
                                                IF AmountToIncludein349 <> 0 THEN BEGIN
                                                  IF VATInvSales."Transaction No." <> LastTransactionNo THEN
                                                    AmountEUService := AmountEUService + AmountToIncludein349;
                                                END ELSE
                                                //End of the lines.                                         
    
                                                  AmountEUService := AmountEUService + VATInvSales.Base;
                                              END ELSE
    

    Vorhandener Code 9

                                            END;
                                          END;
                                        UNTIL VATInvSales.NEXT = 0;
    

    Ersatzcode 9

                                            END;
                                          END;
    
                                          //Add the following line.
                                          LastTransactionNo := VATInvSales."Transaction No.";
    
                                        UNTIL VATInvSales.NEXT = 0;
    
  2. Ändern Sie den Code in den Abschnitten "Data Item Number 6" im Bericht Make 349 Declaration (88) wie folgt:
    Vorhandener Code 1

                                  BEGIN
                                    REPEAT
    
                                      //Delete the following line.
                                      VATInvPurch.RESET;
    
                                      VATInvPurch.SETRANGE(VATInvPurch.Type,VATInvPurch.Type::Purchase);
                                      VATInvPurch.SETRANGE(VATInvPurch."Document Type",VATInvPurch."Document Type"::Invoice);
    

    Ersetzungscode 1

                                  BEGIN
                                    REPEAT
    
                                      //Add the following lines.
                                      LastTransactionNo := 0;
                                      VATInvPurch.RESET;
                                      VATInvPurch.SETCURRENTKEY("Transaction No.");
                                      //End of the lines.                          
    
                                      VATInvPurch.SETRANGE(VATInvPurch.Type,VATInvPurch.Type::Purchase);
                                      VATInvPurch.SETRANGE(VATInvPurch."Document Type",VATInvPurch."Document Type"::Invoice);
    

    Vorhandener Code 2

                                              IF "VAT Registration No." <> '' THEN BEGIN
                                                IF AmountToIncludein349 <> 0 THEN BEGIN
    
                                                  //Delete the following lines.
                                                  OpTriang := 'X';
                                                  AmountOpTri := AmountOpTri + AmountToIncludein349;
                                                  //End of the lines.                                           
    
                                                END ELSE BEGIN
                                                  OpTriang := 'X';
    

    Ersetzungscode 2

                                              IF "VAT Registration No." <> '' THEN BEGIN
                                                IF AmountToIncludein349 <> 0 THEN BEGIN
    
                                                  //Add the following lines.
                                                  IF VATInvPurch."Transaction No." <> LastTransactionNo THEN BEGIN
                                                    OpTriang := 'X';
                                                    AmountOpTri := AmountOpTri + AmountToIncludein349;
                                                  END;
                                                  //End of the lines.
    
                                                END ELSE BEGIN
                                                  OpTriang := 'X';
    

    Vorhandener Code 3

                                          // OpTriang := 'X';
                                          // AmountOpTri := AmountOpTri + VATInvPurch.Base;
                                        UNTIL VATInvPurch.NEXT = 0;
                                      END;
    
    

    Ersatzcode 3

                                          // OpTriang := 'X';
                                          // AmountOpTri := AmountOpTri + VATInvPurch.Base;
    
                                          //Add the following line.
                                          LastTransactionNo := VATInvPurch."Transaction No.";
    
                                        UNTIL VATInvPurch.NEXT = 0;
                                      END;
    

    Vorhandener Code 4

                                        UNTIL VATInvPurch.NEXT = 0;
                                      END;
    
                                      //Delete the following line.
                                      VATInvPurch.RESET;
    
                                      VATInvPurch.SETRANGE(VATInvPurch.Type,VATInvPurch.Type::Purchase);
                                      VATInvPurch.SETRANGE(VATInvPurch."Document Type",VATInvPurch."Document Type"::Invoice);
    

    Ersatzcode 4

                                        UNTIL VATInvPurch.NEXT = 0;
                                      END;
    
                                      //Add the following lines.
                                      LastTransactionNo := 0;
                                      VATInvPurch.RESET;
                                      VATInvPurch.SETCURRENTKEY("Transaction No.");
                                      //End of the lines.                               
    
                                      VATInvPurch.SETRANGE(VATInvPurch.Type,VATInvPurch.Type::Purchase);
                                      VATInvPurch.SETRANGE(VATInvPurch."Document Type",VATInvPurch."Document Type"::Invoice);
    

    Vorhandener Code 5

                                              ((VATInvPurch."Country/Region Code" = CountryCode) AND LocationDiffCountryCode) THEN BEGIN
                                              IF "VAT Registration No." <> '' THEN BEGIN
    
                                                //Delete the following lines.
                                                IF AmountToIncludein349 <> 0 THEN
                                                  NormalAmount := NormalAmount + AmountToIncludein349
                                                ELSE
                                                //End of the lines.
    
                                                  NormalAmount := NormalAmount + VATInvPurch.Base;
                                              END ELSE
    

    Ersetzungscode 5

                                              ((VATInvPurch."Country/Region Code" = CountryCode) AND LocationDiffCountryCode) THEN BEGIN
                                              IF "VAT Registration No." <> '' THEN BEGIN
    
                                                //Add the following lines.
                                                IF AmountToIncludein349 <> 0 THEN BEGIN
                                                  IF VATInvPurch."Transaction No." <> LastTransactionNo THEN
                                                    NormalAmount := NormalAmount + AmountToIncludein349;
                                                END ELSE
                                                //End of the lines.
    
                                                  NormalAmount := NormalAmount + VATInvPurch.Base;
                                              END ELSE
    

    Vorhandener Code 6

                                          END;
                                          // NormalAmount := NormalAmount + VATInvPurch.Base;
                                        UNTIL VATInvPurch.NEXT = 0;
                                      END;
    

    Ersatzcode 6

                                          END;
                                          // NormalAmount := NormalAmount + VATInvPurch.Base;
    
                                          //Add the following line.
                                          LastTransactionNo := VATInvPurch."Transaction No.";
    
                                        UNTIL VATInvPurch.NEXT = 0;
                                      END;
    

    Vorhandener Code 7

                                        UNTIL VATInvPurch.NEXT = 0;
                                      END;
    
                                      //Delete the following line.
                                      VATInvPurch.RESET;
    
                                      VATInvPurch.SETRANGE(Type,VATInvPurch.Type::Purchase);
                                      VATInvPurch.SETRANGE("Document Type",VATInvPurch."Document Type"::Invoice);
    

    Ersetzungscode 7

                                        UNTIL VATInvPurch.NEXT = 0;
                                      END;
    
                                      //Add the following lines.
                                      LastTransactionNo := 0;
                                      VATInvPurch.RESET;
                                      VATInvPurch.SETCURRENTKEY("Transaction No.");
                                      //End of the lines.                            
    
                                      VATInvPurch.SETRANGE(Type,VATInvPurch.Type::Purchase);
                                      VATInvPurch.SETRANGE("Document Type",VATInvPurch."Document Type"::Invoice);
    

    Vorhandener Code 8

                                            THEN BEGIN
                                              IF "VAT Registration No." <> '' THEN BEGIN
    
                                                //Delete the following lines.
                                                IF AmountToIncludein349 <> 0 THEN
                                                  AmountEUService := AmountEUService + AmountToIncludein349
                                                ELSE
                                                //End of the lines.                                         
    
                                                  AmountEUService := AmountEUService + VATInvPurch.Base;
                                              END ELSE
    

    Ersatzcode 8

                                            THEN BEGIN
                                              IF "VAT Registration No." <> '' THEN BEGIN
    
                                                //Add the following lines.
                                                IF AmountToIncludein349 <> 0 THEN BEGIN
                                                  IF VATInvPurch."Transaction No." <> LastTransactionNo THEN
                                                    AmountEUService := AmountEUService + AmountToIncludein349;
                                                END ELSE
                                                //End of the lines.                                         
    
                                                  AmountEUService := AmountEUService + VATInvPurch.Base;
                                              END ELSE
    

    Vorhandener Code 9

                                            END;
                                          END;
                                        UNTIL VATInvPurch.NEXT = 0;
    

    Ersatzcode 9

                                            END;
                                          END;
    
                                          //Add the following line.
                                          LastTransactionNo := VATInvPurch."Transaction No.";
    
                                        UNTIL VATInvPurch.NEXT = 0;
    
  3. Fügen Sie eine neue globale Variable im Bericht Make 349 Declaration (88) hinzu, und geben Sie dann die Variable wie folgt an:

    • Name: LastTransactionNo@1100072
    • DataType: Integer

Voraussetzungen

Sie müssen eines der folgenden Produkte installiert haben, um diesen Hotfix anwenden zu können:

  • Die spanische Version von Microsoft Dynamics NAV 2009 Service Pack 1 (SP1)
  • Die spanische Version von Microsoft Dynamics NAV 5.0 Service Pack 1 (SP1)

Sie müssen den spanischen 349-Bericht installiert haben, um diesen Hotfix anwenden zu können.
Weitere Informationen finden Sie auf der folgenden Microsoft-Website:
Spanisch 349 Bericht
Darüber hinaus muss das Paket "MwSt. 2010" installiert sein, um diesen Hotfix anwenden zu können.
Weitere Informationen finden Sie auf der folgenden Microsoft-Website:
Microsoft Dynamics NAV Support for Vat 2010

Informationen zur Deinstallation

Sie können diesen Hotfix nicht entfernen.

Status

Microsoft hat bestätigt, dass dies ein Problem bei den Microsoft-Produkten ist, die im Abschnitt „Gilt für“ aufgeführt sind.

Hinweis: Dies ist ein Artikel vom Typ "SCHNELL VERÖFFENTLICHEN", der direkt in der Microsoft-Supportorganisation erstellt wurde. Die Informationen in diesem Artikel werden ohne Gewähr als Reaktion auf auftretende Probleme bereitgestellt. Aufgrund ihrer schnellen Bereitstellung können sie typografische Fehler enthalten und jederzeit ohne vorherige Ankündigung geändert werden. Andere Überlegungen finden Sie unter Nutzungsbedingungen.